This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: My own problem with gcj
- To: <java-discuss@sourceware.cygnus.com>
- Subject: Re: My own problem with gcj
- From: "Joshua R. Poulson" <jrp@pun.org>
- Date: Wed, 16 Jun 1999 14:58:03 -0700
- References: <21D757CECBD2D211AD5D00105A2974A73417B3@EXCHANGE>
- Reply-To: "Joshua R. Poulson" <jrp@pun.org>
> Java from Sun's JDK would choke on this, too,
> because all you have here is a class. There
> is no entry point.
>
> Try adding a main() to your program.
The solution is the command line:
$ gcj --main=Example -o Example Example.java
Annoying.
Of course, when I try to run it it can't find libgcj, because the libgcj
install puts it in the wrong place.
I had to add to my LD_RUN_PATH:
$ export LD_RUN_PATH=/u/jrp/SunOS/lib:/u/jrp/SunOS/sparc-sun-solaris2.6/lib
Everything else, including gcc, puts its libraries in /u/jrp/SunOS/lib for me
(In other words I do configure --prefix=/u/jrp/SunOS). libgcj puts it in this
weird directory.
Latest snapshots, old snapshots, doesn't make a difference.
--jrp