I
Ivan
I'm trying to teach myself Java. I downloaded AND installed j2se, and
set the JAVA_HOME path. I installed gcj as a compiler, and it seems to
work just fine..
But that's when all my problems start.
I end up with a file called HelloWorld.o
Perhaps I'm not using the compiler correctly..
But when I type java HelloWorld.o I come up with error Exception in
thread "main" java.lang.NoClassDefFoundError: HelloWorld/o
Let me know what am doing wrong plz..
Using Linux SuSE, and below is a copy of my HelloWorld script, which
I've adequately named HelloWorld.java
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World");
}
set the JAVA_HOME path. I installed gcj as a compiler, and it seems to
work just fine..
But that's when all my problems start.
I end up with a file called HelloWorld.o
Perhaps I'm not using the compiler correctly..
But when I type java HelloWorld.o I come up with error Exception in
thread "main" java.lang.NoClassDefFoundError: HelloWorld/o
Let me know what am doing wrong plz..
Using Linux SuSE, and below is a copy of my HelloWorld script, which
I've adequately named HelloWorld.java
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World");
}