This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: GCJ 3.2 for Win32: Updated Snapshot
- From: Tom Tromey <tromey at redhat dot com>
- To: Øyvind Harboe <oyvind dot harboe at zylin dot com>
- Cc: <java at gcc dot gnu dot org>
- Date: 11 Dec 2002 15:00:53 -0700
- Subject: Re: GCJ 3.2 for Win32: Updated Snapshot
- References: <16B602A8A0347C41B07009FE4C29012F228467@isp-ex2k.intellimade.net>
- Reply-to: tromey at redhat dot com
>>>>> "Ø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