helloworld.java源文件如下:
public class helloworld
{
public static void main(String[] args)
{
System.out.println("hello world!");
}
}
使用gcj编译java程序的时候,出现下面的错误
linux@linux:~/java]$ gcj helloworld.java
/usr/lib/gcc/i586-suse-linux/4.0.2/../../../crt1.o: Infunction`_start':../sysdeps/i386/elf/start.S:115: undefined reference to `main'
collect2: ld returned 1 exit status