problem embedding resources

Camilla Orlandi corlandi@land.it
Thu Oct 20 14:22:00 GMT 2005


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



More information about the Java mailing list