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

AltStyle によって変換されたページ (->オリジナル) /