Results 1 to 2 of 2
Thread: how to set the class path
- 08-21-2009, 12:26 PM #1
Member
- Join Date
- Aug 2009
- Posts
- 1
- Rep Power
- 0
how to set the class path
Hi all,
I have written the simple java program to print the data, but i am not able to run it.
its giving an error javac is not recognized as an external or internal command
so for this i think the class path is not set properly
or tell me the procedure from begging how to run the java programs
- 08-21-2009, 01:04 PM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 339
- Rep Power
- 5
No, if the executable can't be found, it's the PATH that's the problem. You need to add the Java bin directory to the system path.
For example, on my Windows XP system PATH, the Java entry looks like this:
C:\dev\Java\jdk1.5.0_12\bin;
You might also like to set JAVA_HOME to the Java directory (e.g. C:\dev\Java\jdk1.5.0_12).Last edited by dlorde; 08-21-2009 at 01:09 PM.
Similar Threads
-
Cannot find class in same path.
By ribbs2521 in forum New To JavaReplies: 4Last Post: 05-07-2009, 05:25 PM -
Load class file which resides in local path c:\
By praveen.kb in forum Advanced JavaReplies: 2Last Post: 08-12-2008, 01:55 PM -
trying to get class name & path
By sandor in forum New To JavaReplies: 4Last Post: 08-12-2008, 01:38 PM -
Setting up class path for Eclipse
By tsantana in forum EclipseReplies: 1Last Post: 04-07-2008, 07:05 PM -
Log4J.jar in class path
By eva in forum New To JavaReplies: 0Last Post: 01-02-2008, 06:39 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks