gcj compile issues
Roy Britten
roy.britten at gmail.com
Tue Feb 28 21:30:14 UTC 2006
Hi,
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.
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?
Thanks,
Roy.
$ uname -a
Linux smallgreybox 2.6.12-10-686 #1 Mon Feb 13 12:18:37 UTC 2006 i686
GNU/Linux
$ java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
$ i586-mingw32msvc-gcc -o hello.exe hello.c # successfully creates windows
binary from C code
$ gcj -C Hello.java # successfully creates class file from Java code
$ gcj --main=Hello -o Hello.exe Hello.java
gcj: libgcj.spec: No such file or directory
$ gcj -v
Using built-in specs.
Reading specs from libgcj.spec
gcj: libgcj.spec: No such file or directory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060301/b8fab60d/attachment.html>
More information about the ubuntu-users
mailing list