« Return to Thread: problem with GCJ while running java code

Re: problem with GCJ while running java code

by Andrew Haley :: Rate this Message:

Reply to Author | View in Thread

gforgcc wrote:

> Hi friends
> I have a problem while running a java code with GCJ...
> i recently cross compiled GCC for arm with added language option as java. so
> i got arm-unknown-linux-gnu-gcj..
> My java code is
>
> class helloworld
> {
>     static public void main(String argc[])
>    {
>          System.out.println("Hello World !");
>    }
> }
>
> so i am crosscompiling my java code like this...
> arm-unknown-linux-gnu-gcj -g --main=helloworld -o helloworld helloworld.java
> and running like this
> ./helloworld
> the above should print Hello World ! as far as my understanding since GCJ
> does not require JVM
> while compiling and running it is not giving any error or warning..

We need to know

Exactly which gcc / gcj
Exactly which linux
Exactly which options you used to configure gcc / gcj

Andrew.

 « Return to Thread: problem with GCJ while running java code