Jump to content
Excelsior Forums
Sign in to follow this  
Guest fgao15

No classes contains static method "main([Ljava/lang/String;)V"

Recommended Posts

Guest fgao15

I am trying to compile an executable. But the compiler kept telling me

No classes contains static method "main([Ljava/lang/String;)V"

The project file is as follows

-OUTPUTNAME=db

-PACKRESOURCES+

-CLASSABSENCE=HANDLE

-IGNOREMEMBERABSENCE+

-GENSTACKTRACE+

-JETVMPROP=-Djet.stack.trace

-MAIN=DatabaseServer

-lookup=*.exe=../../bin

-LOOKUP=*.jar=../../jar

-LOOKUP=*.dll=../../lib

!module db.jar

!module thirdParty.dll

!module myAll.dll

The main class DatabaseServer is in db.jar and it definitely has main() in it. However,? my executable has to use another two DLLs. That's why I included two dlls at the end of the project file.

Can anybody tell me what I did wrong?

Thanks,

Share this post


Link to post
Share on other sites

The most probably that super class of DatabaseServer is located in your DLLs (thirdParty.dll or myAll.dll), however you did not tell the compiler where to look for symbolic information about it

(did not specify -lookup=*.sym, -lookup=*.bod etc.)

Please read carefully JET User's Guide, Chapter "Dynamic linking", Section "Multi-component applications" (http://www.excelsior-usa.com/jetdoc.html) for details.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×