Java javac is not regonized as an internal or external command -
this question has answer here:
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:
- select start, select control panel. double click system, , select advanced tab.
- click environment variables. in section system variables, find path environment variable , select it. click edit. if path environment variable not exist, click new.
- in edit system variable (or new system variable) window, specify value of path environment variable. click ok. close remaining windows clicking ok.
windows vista:
- from desktop, right click computer icon.
- choose properties context menu.
- click advanced tab (advanced system settings link in vista).
- click environment variables. in section system variables, find path environment variable , select it. click edit. if path environment variable not exist, click new.
- in edit system variable (or new system variable) window, specify value of path environment variable. click ok. close remaining windows clicking ok.
windows 7:
- from desktop, right click computer icon.
- choose properties context menu.
- click advanced system settings link.
- click environment variables. in section system variables, find path environment variable , select it. click edit. if path environment variable not exist, click new.
- 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
Post a Comment