[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Java Executable



Am Dienstag, 21. Dezember 2004 07:47 schrieb Michael Koch:
> Am Montag, 20. Dezember 2004 22:16 schrieb Matt Young:
> > I am trying to ficure out how to compile a java source file
> > directly to a native binary executable for linux.  IS this
> > possible?  I have been trying to get GCJ to work but it is
> > complaining about a missing file.  Here is the output:
> >
> > #> gcj-3.4 HelloWorld.java
> > GCJ-3.4; libgcj.spec: No such file or directory
> >
> > I'm a noob but I would really love to get this working.
>
> apt-get install libgcj5-dev.

and please use a command like this to compile to native:

gcj-3.4 -o hello --main=HelloWorld HelloWorld.java


Michael
-- 
Homepage: http://www.worldforge.org/



Reply to: