File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes error when testing...any help will be appreciated Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "error when testing...any help will be appreciated" Watch "error when testing...any help will be appreciated" New topic
Author

error when testing...any help will be appreciated

Jacob James
Greenhorn

Joined: Jun 07, 2004
Posts: 9
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

Joined: May 29, 2003
Posts: 1258
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.


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
Jacob James
Greenhorn

Joined: Jun 07, 2004
Posts: 9
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

Joined: Jun 07, 2004
Posts: 9
pls help needed
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24184
    
  34

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.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error when testing...any help will be appreciated