Hi,
I'm still relatively new to linux so I was hoping someone might know a
quick answer to this question, when I try to run a very simple program I
wrote it gives me the error:
Exception in thread main java.lang.NoClassDefFoundError: lab1/java
It didn't give me any errors when I compiled
I once got this error in windows when I didn't have my PATH set propperly
Some info here
http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/classpath.html
I remember in windows I had to set the CLASSPATH=. That's a fullstop
(period to americans I think)
Mike
Patrick Coffey wrote:
Hi,
Mkae sure you set your CLASSPATH to the location of your java class that
contains a main. You can either set it in your shell. Or as an argument
to the java vm.
In other words. If I have a class defined as
class Foo {
public static void main(String[] args){
System.out.println("Hello