1 Replies - 678 Views - Last Post: 31 March 2010 - 03:08 PM Rate Topic: -----

#1 Guest_LongHairofDeath*


Reputation:

Javac Is Not Recognized as an Internal or External Command

Posted 31 March 2010 - 02:28 PM

I have an assignment due on Friday, and I need to use Tomcat to do it properly. I have got it installed, but when I went to configure it with a HelloWorld.java file, I discovered that Javac would not work.

I don't want to change my path, because I just altered it for Tomcat, but will if I have to.

Any idea what I can do?
Is This A Good Question/Topic? 0

Replies To: Javac Is Not Recognized as an Internal or External Command

#2 nick2price  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 559
  • View blog
  • Posts: 2,826
  • Joined: 23-November 07

Re: Javac Is Not Recognized as an Internal or External Command

Posted 31 March 2010 - 03:08 PM

All you should have to do is go into your environment variable settings, and add the location of you javac.exe file to your PATH variable. Its usually in the Bin folder.

Or you can do it through command
C:\foo\bar\> set PATH=%PATH%;C:\j2sdk1.4.2_01\bin
C:\foo\bar\> javac Filename.java

Replace C:\j2sdk1.4.2_01 with the actual path to bin\javac.exe
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1