This is the mail archive of the java-discuss@sourceware.cygnus.com 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]

Re: My own problem with gcj


> 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



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