Sunday, October 26, 2014

How to make working javac on windows command line

Follow these steps:

  1. Open my Computer.
  2. Go to program files - x86 (if applicable)
  3. Find "java"
  4. Open it and select jdk(yournumber)
  5. Select Bin.
  6. Right click the bar up the top and choose copy link as text, You should copy something like this: C:\Program Files\Java\jdk1.7.0_71\bin
  7. Paste that into notepad, as you need it soon!
  8. Open the Start Menu.
  9. Right click Computer.
  10. Select Properties.
  11. Click "Advanced System Settings"
  12. Click "Environment Variables"
  13. You'll see two Boxes, in the top one Select "New..."
  14. in Variable Name type "PATH"
  15. In Variable Value, get that thing in Notepad you Pasted in and paste it there.
  16. Press "OK"
  17. Press "Apply"

No comments:

Post a Comment