Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need help in compiling servlet

 
shivang sarawagi
Ranch Hand
Posts: 155
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to compile the servlet file from command prompt,
i opened command prompt and changed the directory structure to my file location i:e C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\BeerV1\WEB-INF\src\com\example\web\BeerSelect.java

and then executed the command javac BeerSelect.java
but i am encountering the following error :javac is not recognized as internal or external command, operable program or batch file

Please anyone help. What am i missing ??
 
Neel Sharma
Greenhorn
Posts: 12
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shivangi, Can you try installing Java again and make sure you set you Java_Home correctly.

I hope this helps you : http://pandazen.wordpress.com/2009/01/03/javac-is-not-recognized-as-an-internal-or-external-command/



Thanks
Neel
 
Ram Narayan.M
Ranch Hand
Posts: 247
Chrome Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please add jdk path in which you have installed in "PATH" environment variable...
 
bhanu chowdary
Ranch Hand
Posts: 256
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alternatively, you can use the complete path of javac.exe in the bin directory of your jdk installation. But setting the PATH environment variable is preferred so that you can use the javac command directly.
 
Deepthi Tanguturi
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First check installation of java.
Set JAVA_HOME as path variable and also set classpath as rt.jat,tools.jar files.Once you set these paths please restart the command prompt.
 
Abhay Choubey
Ranch Hand
Posts: 34
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First check java is installed properly or not. Then set a path of your java in system variable. Than execute it it will run.
May be there is problem with your java installation or problem with setting the path of java.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic