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

Re: Java Executable



Mon, 20 Dec 2004 16:16:06 -0500, 
Matt Young <matty@jax-trans.com> wrote: 

> 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.

$ gcj-3.4 -o helloworld --main=HelloWorld HelloWorld.java

compiles for me, but the output is bad, I'll file a bug report in
bugzilla gcj

Cheers,

PS: for the record:

arnaud@oz:/tmp$ cat Hello.java
public class Hello{
  public static void main(String[] args) {
    System.out.println("hello");
  }
}

arnaud@oz:/tmp$ gcj-3.4 -o hello --main=Hello Hello.java
arnaud@oz:/tmp$ ./hello
?
arnaud@oz:/tmp$ gcj-3.3 -o hello --main=Hello Hello.java
arnaud@oz:/tmp$ ./hello
hello
arnaud@oz:/tmp$


-- 
  .''`. 
 : :' :rnaud
 `. `'  
   `-    



Reply to: