Hi,<br>
<br>
I have plans to compile (under Ubuntu) Java programs to native MS
Windows executables. I have installed mingw32, mingw32-binutils and
mingw32-runtime as well as gcj, gcj-4.0, gcj-4.0-base, java-gcj-compat,
libgcj6, libgcj6-awt, libgcj6-common, and libgcj-common. I'm using the
sun JVM. I'm running Ubuntu 5.10.<br>
<br>
I can compile a windows binary using the MingW32 gcc, and a Java class
file using gcj. I haven't found a good howto for creating a Windows
binary from Java code under Linux. I suspect that there's some
classpath issues or some such to be sorted. Can someone who has done
this before point me to the solution?<br>
<br>
Thanks,<br>
Roy.<br>
<br>
$ uname -a<br>
Linux smallgreybox 2.6.12-10-686 #1 Mon Feb 13 12:18:37 UTC 2006 i686 GNU/Linux<br>
$ java -version<br>
java version "1.5.0_06"<br>
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)<br>
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)<br>
$ i586-mingw32msvc-gcc -o hello.exe hello.c # successfully creates windows binary from C code<br>
$ gcj -C Hello.java # successfully creates class file from Java code<br>
$ gcj --main=Hello -o Hello.exe Hello.java<br>
gcj: libgcj.spec: No such file or directory<br>
$ gcj -v<br>
Using built-in specs.<br>
Reading specs from libgcj.spec<br>
gcj: libgcj.spec: No such file or directory<br>
<br>