• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error when testing...any help will be appreciated

 
Jacob James
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get the following error, I think my class paths are all well defined. I seem to be doing everything ok, but I just can't create my class file from the java file. Please do explain what do these errors mean

 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have one of two problems:

1) You are specifying the wrong class names, or have not imported the classes into your source code.

2) You do not have your classpath correctly set to include the jar file containing those classes.

You can consult the SDK docs on how to set the classpath for (2). (1) should be fairly easy to fix if applicable.
 
Jacob James
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I have (2) set correctly, so it must be (1)...I've tried different permutations but nothing is improving, can someone give me some assistance on this front.

Thanks
 
Jacob James
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pls help needed
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the compiler can't find your packages, then your CLASSPATH is set wrong -- simple as that. Have a look at the JavaRanch FAQ for a helpful guide.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic