0

Hi all,
i have installed jdk1.7 , now i want to set the class path.. because i am compiling my program its giving an error.....javac is not recognized as an internal or external commond.
please help me to set the class path.......and how to able to run my program.

4
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by ramguru
0

You need to set path not a classpath for javac (compiler) and java (launcher).

PATH=......;c:\Program Files\Java\Jdk1.7\Bin
0

In the command prompt type: set path=%path%;<java_home>/bin; The <java_home> is the path/directory where the java was installed.

For example, the java is installed in C:\java,

The java_home is C:\java and the path is c:\java\bin.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.