This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem embedding resources


Anthony Green ha scritto:

Try --main=package.HelloWorld

The argument to --main is supposed to be a fully qualified class name,
not a path.

AG




yes, it's real I made it. but while this resolves the creation of the exe file, the problem of the resource is the same: if the main class is in the same folder of the .o file it's all ok, but if the main is in a package, and the .o file is in the runtime directory the exe throws the "null argument exception"; the resource is not seen. I'm continuing to try, maybe it can be a problem of identification of the right path during the compilation.


i.e.:

gcj -s -fjni --main=HelloWorld -s -o HelloWorld.exe HelloWorld.java swtgif.o

HelloWorld.exe works ok

cj -s -fjni --main=package.HelloWorld -s -o HelloWorld.exe package/HelloWorld.java swtgif.o

null argument exception is thrown


camilla



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]