• Post Reply Bookmark Topic Watch Topic
  • New Topic

First code  RSS feed

 
bill swan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the name of your class Spotrunto or SpotRunTo? Same question for your class file name Spotrunto.class or SpotRunTo.class?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!