?
Solved

problems with class paths

Posted on 2006-05-20
6
Medium Priority
?
191 Views
Last Modified: 2013-11-23
Hi,
I am trying to set up the claths paths on my windows xp machine. I go to environment variables and make new user variable.
I then write in the variable name:   classpath and in variable value:   .;C:\Program Files\Java\jdk1.5.0_06\jre\lib\rt.jar

I want to be able to compile files primarily off my a: drive but would like to compile them off any where on the machine.

Currently if I write:     a:\> javac test.java   , I just get 'javac' not recognised as an internal batch command etc..

I have read other similar question on ee, but I think the answsers given where to older versions and they said that with java 1.3 some bits were not needed. It has confused me a little, so In would like to know an up-to-date answer..
Thanks
John
0
Comment
Question by:jdav3579
  • 4
  • 2
6 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 16724486
You need to set the PATH variable, not the classpath. Add the in directory of the jdk to it
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 16724487
in=bin
0
 

Author Comment

by:jdav3579
ID: 16724509
I'm sorry, I dont quite understand what that means:

Is like this:
variable name:   PATH and in variable value:  

I then have to add in=bin somewhere in this piece do I?:   .;C:\Program Files\Java\jdk1.5.0_06\jre\lib\rt.jar
cheers

0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 86

Accepted Solution

by:
CEHJ earned 1400 total points
ID: 16724521
Add the following to PATH

;C:\Program Files\Java\jdk1.5.0_06\bin
0
 

Author Comment

by:jdav3579
ID: 16724530
Fantastic mate!!
I think it must have been an old tutorial I was reading, the version it was using was 1.4....
cheers.

0
 
LVL 86

Expert Comment

by:CEHJ
ID: 16724600
:-)

Classpath is something you don't necessarily need but should come to understand:

http://mindprod.com/jgloss/classpath.html
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses
Course of the Month14 days, 16 hours left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question