Java javac is not regonized as an internal or external command -


i starting learn basic java apparently need able code bukkit plugins minecraft , i'm stuck on following issue.

i have made helloworldapp.java in folder c/test wont want supposed do. , please try dumb down coding, etc

this how invoked it:

c:\users\matthew\desktop>cd c:\test  c:\test>javac helloworldapp.java 'javac' not recognized internal or external command, operable program or batch file.  c:\test> 

you need setup java in path.

windows xp:

  1. select start, select control panel. double click system, , select advanced tab.
  2. click environment variables. in section system variables, find path environment variable , select it. click edit. if path environment variable not exist, click new.
  3. in edit system variable (or new system variable) window, specify value of path environment variable. click ok. close remaining windows clicking ok.

windows vista:

  1. from desktop, right click computer icon.
  2. choose properties context menu.
  3. click advanced tab (advanced system settings link in vista).
  4. click environment variables. in section system variables, find path environment variable , select it. click edit. if path environment variable not exist, click new.
  5. in edit system variable (or new system variable) window, specify value of path environment variable. click ok. close remaining windows clicking ok.

windows 7:

  1. from desktop, right click computer icon.
  2. choose properties context menu.
  3. click advanced system settings link.
  4. click environment variables. in section system variables, find path environment variable , select it. click edit. if path environment variable not exist, click new.
  5. in edit system variable (or new system variable) window, specify value of path environment variable. click ok. close remaining windows clicking ok.

https://docs.oracle.com/javase/tutorial/essential/environment/paths.html


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -