Results 1 to 10 of 10
- 09-25-2008, 06:50 AM #1
- 09-25-2008, 07:03 AM #2
- 09-25-2008, 07:59 AM #3
Sorry, I mean what I need to set in environment (variables).
- 09-25-2008, 09:17 AM #4
Ah, I got the point. You want to set the class path.
Actually you can do it in two ways.
1) If you are working on command prompt, you can set the class path at the time of working on with Java applications. But this is not a good choice actually, reason is that each time you start work need to set the class path.
Say you install Java in following path,
2) On Environment Variables, on Path variable of User Variables at the class path to the end of it.
- 09-25-2008, 11:18 AM #5Member
- Join Date
- Sep 2008
- Rep Power
2 variable needed PATH and CLASSPATH
In PATH add path of bin directory of java
IN CLASSPATH add psth of lib directory of java
classpath=C:\Program Files\Java\jdk1.5.0_06\lib;Sagar Birari
Development & Technical Blog
- 09-25-2008, 11:28 AM #6
- 09-25-2008, 05:14 PM #7
You don't NEED to set any environment variables to run a java program. You can always specify full paths to the command and the full classpath on the commandline.
Setting the environment variables shortens what you have to type in, prevents typos on long paths and can make it easier. However, forgotten settings for the classpath can come back to bite you.
- 09-26-2008, 04:20 AM #8
Yes, that's my first option. ;) But the worst thing there is each time you have to set the path. You can do it in many ways. Simple way I use is,
And also if you want you can edit the autoexec.bat file. So need to worry about the class path when you running application again.
- 09-26-2008, 07:56 AM #9
Thanks to All for giving information :)
- 09-26-2008, 04:14 PM #10
- By michael.dunkling in forum New To JavaReplies: 12Last Post: 07-18-2008, 10:22 PM
- By c26354 in forum New To JavaReplies: 12Last Post: 06-30-2008, 04:09 PM
- By mew in forum New To JavaReplies: 3Last Post: 12-11-2007, 01:44 PM
- By Warren in forum New To JavaReplies: 1Last Post: 11-28-2007, 05:14 PM
- By Fish in forum New To JavaReplies: 6Last Post: 06-25-2007, 09:20 PM