• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

First code

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
reply
    Bookmark Topic Watch Topic
  • New Topic