GCJ 3.2 for Win32: Updated Snapshot
Tom Tromey
tromey@redhat.com
Wed Dec 11 14:26:00 GMT 2002
>>>>> "Ãyvind" == Ãyvind Harboe <oyvind.harboe@zylin.com> writes:
Ãyvind> Q: if all I want to do is to create a monolithic .exe file from
Ãyvind> my already compiled Java app to ease deployment, then do I need
Ãyvind> to compile the SWT source?
It depends on what you mean.
Your compiled code can't currently have direct references (references
via reflection are ok) to non-compiled code.
How you compile SWT is up to you -- you can compile the .java files,
the .class files, or the .jar file.
Ãyvind> Is there some simple way to rewrite my java.exe command line to
Ãyvind> a gcj command line to produce the monolithic .exe file?
Ãyvind> I was imagining something like:
Ãyvind> java -classpath=swt.jar;app.jar;bar.jar com.foo.bar
Ãyvind> =>
Ãyvind> gcj -fjni --main=com.foo.bar swt.jar app.jar bar.jar -o bigapp.exe
It seems like this should work.
If it doesn't, I'd say that is a bug.
Tom
More information about the Java
mailing list