2 Replies - 3616 Views - Last Post: 31 July 2011 - 04:26 PM Rate Topic: -----

#1 successguru   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 31-July 11

‘javac’ is not recognized as an internal or external command

Posted 31 July 2011 - 04:07 PM

I'm now to java with the guide i have. i created a path when i use command prompt i reserve the massage ‘javac’ is not recognized as an internal or external command. what did i doe wrong?. blow is my attachmentAttached Image
Is This A Good Question/Topic? 0
  • +

Replies To: ‘javac’ is not recognized as an internal or external command

#2 sepp2k   User is offline

  • D.I.C Lover
  • member icon

Reputation: 2770
  • View blog
  • Posts: 4,429
  • Joined: 21-June 11

Re: ‘javac’ is not recognized as an internal or external command

Posted 31 July 2011 - 04:11 PM

Either you don't have a JDK installed or you do, but it wasn't properly added to your path.

Note that the Java Runtime Environment (which you do have installed) does not include a java compiler, you'll need the Java Development Kit for that.
Was This Post Helpful? 0
  • +
  • -

#3 CarDriver   User is offline

  • D.I.C Regular
  • member icon

Reputation: 65
  • View blog
  • Posts: 431
  • Joined: 17-February 11

Re: ‘javac’ is not recognized as an internal or external command

Posted 31 July 2011 - 04:26 PM

Start by navigating to your JDK bin file outside of the command prompt. On the top you should see all of the directories you went through to get there. Right click on that, copy it, and go to your control panel.

In the control panel, you should click on "System and security." From there, click "System."

On the left, you should click on "Advanced system settings." Click "Environment variables" at the bottom of the screen that pops up.

Where it says "System variables," scroll down and look for the "Path" variable. Double click that, and next to "Variable value," type a semicolon then paste what you copied.

Hope that worked.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1