This is the mail archive of the java@gcc.gnu.org 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]
Other format: [Raw text]

Re: problem with GCJ while running java code


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.


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