![]() |
|
[Java] 'javac' is not recognized as an internal or external command, operable program or bat - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Java] 'javac' is not recognized as an internal or external command, operable program or bat (/showthread.php?tid=5757484) |
'javac' is not recognized as an internal or external command, operable program or bat - o hai there - Nov 24, 2017 https://hackforums.net/showthread.php?tid=4571413 Following that tutorial right here, and well, I apparently have not installed JDK 9 Correctly, or I didn't set my paths right possibly? PHP Code RE: 'javac' is not recognized as an internal or external command, operable program or bat - matt - Nov 24, 2017 (Nov 24, 2017 12:55 AM)o hai there Wrote: https://hackforums.net/showthread.php?tid=4571413 javac is a command for the java compiler (JDK) which is not included in your version of java (JRE) You must install java JDK to use the javac command The JDK's can be found here http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Also you're using Java 8 not Java 9 RE: 'javac' is not recognized as an internal or external command, operable program or bat - o hai there - Nov 24, 2017 (Nov 24, 2017 04:23 AM)Midnigh t Blue™ Wrote: javac is a command for the java compiler (JDK) which is not included in your version of java (JRE) What I downloaded was JDK-9.0.1x64 off of http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html Retrying now, making sure to allow all features and subfeatures of Public JRE Installed to C:\Program Files\Java sucesfully installed and closed javac still not working in cmd in my java fold at program files there is JDK and JRE 9 Oh I set my a couple of my variables to my x86 program folder which has jdk 8 in it. my new path: %USERPROFILE%\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Java\jdk-9.0.1\bin;C:\Program Files\Java\jdk-9.0.1\include well shit I fixed one problem but javac is still not recognized. RE: 'javac' is not recognized as an internal or external command, operable program or bat - Hapi - Nov 24, 2017 (Nov 24, 2017 01:25 PM)o hai there Wrote: What I downloaded was JDK-9.0.1x64 off of http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html You might want to try adding; "C:\Program Files\Java\jdk-9.0.1\bin\javac.exe" Go to that folder and copy the link, just incase it is different. Then you want to close your command prompt, open it again and it should work. What application are you running that it's saying javac is not recongnized? RE: 'javac' is not recognized as an internal or external command, operable program or bat - o hai there - Nov 24, 2017 (Nov 24, 2017 03:20 PM)LeFF Wrote: You might want to try adding; "C:\Program Files\Java\jdk-9.0.1\bin\javac.exe" Alright, edited my Path Variable to "%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Java\jdk-9.0.1\bin;C:\Program Files\Java\jdk-9.0.1\include;C:\Program Files\Java\jdk-9.0.1\bin\javac.exe". And it stills seems to be saying the same thing, I was testing it out through Command Prompt by typing java -help, and javac -help RE: 'javac' is not recognized as an internal or external command, operable program or bat - GenericSkid - Nov 24, 2017 OP you're using %jdk%/include, but javac is in %jdk/bin. There is no compiler or other tools in %jre%/bin. Lastly, have you tried the oldest trick in the book? (restarting) RE: 'javac' is not recognized as an internal or external command, operable program or bat - Marduno - Nov 24, 2017 Paths man, fix ur paths on windows. |