• 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

basic setup question

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi everybody. i'm in a bit of a fix. i haven't programmed or even read this stuff for almost a year. i just found out i have to take the certification exam by the end of the month!!
i'm setting up the jdk on my laptop...i have "d:\jdk1.3.1\bin" specified in my system path. when i try and run a simple program named Test.java, i'm getting an error...
"error: cannot read: Test.java"
i know the program is right. i think i screwed up the jdk set up....please help.
 
Ranch Hand
Posts: 625
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I assume you're using windows. I'm using linux, but I had to modify my classpath, so that it can find the Java Api's. Have you modified your classpath? I think there are instructions at Sun's site if you haven't been there yet.

 
donny clarke
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanx for the reply, sean.
i'm an idiot. i wasn't in the same directory as my file.
 
Sean Casey
Ranch Hand
Posts: 625
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds like something I would do. Good luck in your preparations. Let me know if I can help. I took the exam a few months ago.

- Sean
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For multi-class examples, you�ll need to set up your CLASSPATH variable.
Assuming your Java test directory is d:\jdk1.3.1\test and windows, set it from the command line - set CLASSPATH=d:\jdk1.3.1\test
Please have a look at - http://developer.java.sun.com/developer/technicalArticles/Interviews/Packaging/
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic