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: GCJ 3.2 for Win32: Updated Snapshot


>>>>> "Ø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


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