servlets Execution
Hi
I am Ramya.I have aproblem with servlet program execution.I have placed my .java file in classes folder and i tried to compile the program....its giving error as javac is not recognized as an internal or external command.......i tried setting the classpath to
%CLASSPATH%;.;common/lib/servlet-api.jar
but this shd be done if progaram compiles and gives error on servlets.
Pls give me the solution as soon as possible.
Regards
Ramya
# 1
> javac is not recognized as an internal or external command
This has nothing to do with the classpath. Javac.exe is a Windows executable, not a class file.
To run javac.exe, run it using the full path:C:\>c:\path_to_jdk\bin\javac HelloWorld.java
Or navigate to the path where javac.exe resides and then run it:C:\>cd path_to_jdk\bin
C:\path_to_jdk\bin>javac HelloWorld.java
Or add the path to javac.exe to the path (note: this is different from the classpath). Press [winkey+pause], go to tab Advanced, then Environment variables. In the User environment variables add the following two variables:JAVA_HOME = c:\path_to_jdk
PATH = %JAVA_HOME%\bin;
Close all command console boxes and start a new one. Then you don't need to give the path to javac.exe everytime.