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

invalid path error

Kevin Knowles
Ranch Hand

Joined: Dec 29, 2002
Posts: 45
I'm trying to compile and run some of Bruce Eckels' sample programs from TIJ 2nd Ed. from JCreator LE. But I get the error about the path.
I have the packages that are to be imported and I know where they are, but how do I get Java and JCreator to know where they are?
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9053
    
  12
What is your path? What command are you using to compile? Are you compiling from JCreator or from the DOS command line? What is the exact error you are getting?


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Kevin Knowles
Ranch Hand

Joined: Dec 29, 2002
Posts: 45
OK, well I'm compiling inside JCreator most of the time. Now I am not getting compiler errors but run time errors. For example, the "frog.java" for chapter 7 (should have said 3rd edition not 2nd) compiles/makes but gives me the following run time error:
Exception in thread "main" java.lan.NoClassDefFoundError: com/bruceeckel/simpletest.TestStream
at com.bruceeckel.simpletest.Test.<init>(Test.Java:25)
at Frog.<clinit>(Frog.java:75)
Press any key to continue...
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9053
    
  12
Have you set your classpath inside JCreator?
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9053
    
  12
booleo,
Please change your display name back to fit the standards stated in the policy. Thanks.
[ December 30, 2002: Message edited by: Marilyn de Queiroz ]
Kevin Knowles
Ranch Hand

Joined: Dec 29, 2002
Posts: 45
Marilyn de Queiroz:
Yes, I've set the class inside JCreator. I went to project settings and added the class path to the JDK profile setting.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: invalid path error