This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

invalid path error

 
Kevin Knowles
Ranch Hand
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9059
12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Kevin Knowles
Ranch Hand
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9059
12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you set your classpath inside JCreator?
 
Marilyn de Queiroz
Sheriff
Posts: 9059
12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic