I have the following java program on my hard drive
Code:
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World");
}
}
I've tried typing the command
Code:
$ gcj HelloWorld.java
but all I get is this
Code:
$ gcj HelloWorld.java
/usr/lib/gcc-lib/i486-slackware-linux/3.3.6/../../../crt1.o(.text+0x18): In function `_start':
../sysdeps/i386/elf/start.S:115: undefined reference to `main'
collect2: ld returned 1 exit status
This is simple code. Can anyone tell me why it is not compiling?