• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

need help in compiling servlet

 
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ??
 
Greenhorn
Posts: 12
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 247
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please add jdk path in which you have installed in "PATH" environment variable...
 
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
All of the following truths are shameless lies. But what about this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic