V
vlenin66
Hi,
My little helloword uses package:
package javaapplication2;
I can compile and execute it with javac/java:
en@gepem:~/NetBeansProjects/JavaApplication2/src$ javac
javaapplication2/Main.java
en@gepem:~/NetBeansProjects/JavaApplication2/src$ java
javaapplication2.Main
Hello Hattyú
However, when I try to compile it using gcj, I get this:
~/NetBeansProjects/JavaApplication2/src$ gcj --main=Main
javaapplication2/Main.java -o Main
/tmp/ccqiWhM6.o: In function `main':
cc2ARovz.i.text+0x1d): undefined reference to `Main::class$$'
collect2: ld returned 1 exit status
I use /usr/bin/gcj.4.1 on linux.
What do I miss?
Thanks!
My little helloword uses package:
package javaapplication2;
I can compile and execute it with javac/java:
en@gepem:~/NetBeansProjects/JavaApplication2/src$ javac
javaapplication2/Main.java
en@gepem:~/NetBeansProjects/JavaApplication2/src$ java
javaapplication2.Main
Hello Hattyú
However, when I try to compile it using gcj, I get this:
~/NetBeansProjects/JavaApplication2/src$ gcj --main=Main
javaapplication2/Main.java -o Main
/tmp/ccqiWhM6.o: In function `main':
cc2ARovz.i.text+0x1d): undefined reference to `Main::class$$'
collect2: ld returned 1 exit status
I use /usr/bin/gcj.4.1 on linux.
What do I miss?
Thanks!