By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,353 Members | 1,555 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,353 IT Pros & Developers. It's quick & easy.

Configuration (path and classpath)

P: 6
Hi all,
I have a problem configuring my system at home, what do I need in the path, and what do I need in the classpath to get java to compile and run. I have Windows 2000 and the latest download from sun.java.
It works (java) on the XP system (at work) but not at home running 2000, I'm sure something is not configured correctly.

Any help (Please)
Thanks,
BMD.
PS, Soon I will post about how to have a button load a new window with data from an txt or xls file. Got to get it running first.
Nov 12 '07 #1
Share this Question
Share on Google+
6 Replies


10K+
P: 13,264
Hi all,
I have a problem configuring my system at home, what do I need in the path, and what do I need in the classpath to get java to compile and run. I have Windows 2000 and the latest download from sun.java.
It works (java) on the XP system (at work) but not at home running 2000, I'm sure something is not configured correctly.

Any help (Please)
Thanks,
BMD.
PS, Soon I will post about how to have a button load a new window with data from an txt or xls file. Got to get it running first.
Right click My computer navigate to environment variables and add the path of your Java bin directory to your system's path variable and restart your computer.
Nov 13 '07 #2

100+
P: 118
in windows 95/98 you can set the path permanently in autoexec. bat , you can add this line SET PATH=....... , the path to your javac.
Nov 13 '07 #3

P: 6
BMD
I was told I need the jdk location in the path and the javac location in the calss path. I'm running very old win 2000.
Thanks for the quick replies.
BMD
Nov 14 '07 #4

10K+
P: 13,264
I was told I need the jdk location in the path and the javac location in the calss path. I'm running very old win 2000.
Thanks for the quick replies.
BMD
Well then have you added the Java bin directory to your path then?
Nov 14 '07 #5

100+
P: 118
If you put the bin in your classpath , you will be home and dry.
Nov 14 '07 #6

10K+
P: 13,264
If you put the bin in your classpath , you will be home and dry.
The classpath specifies where to find the class files during compilation. It is different from the path which specifies where the java tools are located. The bin thus goes in the path not the classpath.
Nov 14 '07 #7

Post your reply

Sign in to post your reply or Sign up for a free account.