• 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

invalid path error

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you set your classpath inside JCreator?
 
Marilyn de Queiroz
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Alas, poor Yorick, he knew this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic