I have downloaded and installed
java on Ubuntu debian linux.
I can get the HelloWorld program to work.
When I try to pass arguments to my program using
public static void main(
String[] args)
I can use args.length OK, but when I want to reference args[0] it compiles but I get runtime error:
Exception in
thread "main" java.lang.NoClassDef.Found.Error: while resolving class: Spotrunto
I have put the following into my .bashrc in my home directory:
export PATH=$PATH:/backup/jdk1.5.0_08/bin
Do I need to set any other variables such as CLASSPATH?
Thank-you.