Find centralized, trusted windows 10 javac not working free download and collaborate around the technologies you use most.
Connect and share knowledge within a single location that is structured and easy to search. And when I executed the command "javac" it works, but now, when I open other console, it doesn't work, or when I restart the console, this command is not recognized. Then it worked. There was one person who said to restart the command prompt after you modify the environment variables; that was it for me.
While you are testing different configurations, make sure to relaunch the command prompt before testing. It seems like there are at least 2 different ways of setting this up. I went with the following:. That's it. No need for quotes around anything. No double forward slashes or anything else.
I had the same issue on Windows 10 - the java -version command was working but javac -version was not. There are three things I did:. I did not need to add the ; for Windows For some reason it worked for me to add quotation marks to the path folder on windows Add java path to environment variables and move it to the top of all the paths available there. It worked for me. Kind of beating a dead horse now but, I want to clarify one thing that may not be quite so obvious.
Yes indeed you need to edit the PATH environment variable as already stated many times. Why did this matter? On my machine I have to log in as an Administrator to edit environment variables. So editing the User variables was not helping because I run the command prompt under my login non-admin account.
Also, I found that closing the command windows 10 javac not working free download window, and re-opening it after the PATH variable update was required. Changing the order of the values, adding semi-colons, etc. Then i started setup necessary tools like IntelliJ, Java jdk,jre, eclipse so on. In cmd, java -version worked but javac compiler got unrecognized.
I checked and all windows 10 javac not working free download, the files in the folders, path are correct and so on. Everything worked fine then. Points to remember, do as the image shows. Move the highlighted bar up using move windows 10 javac not working free download button, this will help. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 6 years, 3 months ago. Active 1 year, 1 month ago. Viewed k times. What could be the problem? Improve this question. Bogota 1 1 silver badge 13 13 bronze badges.
The procedure is the same as under Windows 7. I think that I had to put one ";" at the end in the Path, but I'm not sure. But thanks for you time and your help. Add a comment. Active Oldest Votes. Improve this answer. SLaks SLaks k gold badges silver badges bronze badges.
Leo: the fact that "java" works only proves that the JRE is in the path. It does not prove that the JDK is in the path. You must do so yourself.
Leo: See my second paragraph. Really, I don't know what was the problem, I was playing with the Variables of Path and then it works. Her's how Windows 10 javac not working free download configure System variable on Windows 10 javac not working free download 10 :. David Arenburg Mahesh Sonavane Mahesh Sonavane 1 1 silver badge 3 3 bronze badges. Amit Phaltankar 2, 2 2 gold badges 18 18 silver badges 33 33 bronze badges. For some reason in Windows 10, this won't work. Check out this answer: stackoverflow.
Maybe a bit late, but i had same problem. Click on "Move up" button for Java path and move it at top. It fixed problem for me. Crispy Crispy 61 1 1 silver badge 1 1 bronze badge. This worked for me on a fresh install of Windows 10 on JDK 1. The only other things in my windows 10 javac not working free download were npm and Visual Studio Code. Sreeni Sreeni 75 10 10 bronze badges. There are three things I did: 1 I downloaded the latest jdk not the jre and installed it.
Test the java -version and javac -version commands again. Manan Gupta Manan Gupta 21 4 4 bronze badges. And I'm confused, because I don't know what could be the problem. Ram kaatiya Ram kaatiya 1. Sanjoy Paul Sanjoy Paul 1. Daniel Knowlton Daniel Knowlton 51 2 2 bronze badges.
If you have set all PATH variables correctly after installation, just restart it. I restarted and checked it again in cmd ,it worked. Reji 3, 2 2 gold badges 19 19 silver badges 24 24 bronze badges. Kenan Baku Kenan Baku 1. Then Choose Environment Variable. Ramachandrudu R Ramachandrudu R 1. Aditya Rana Aditya Rana This is beside the point. Please have a look at the accepted answer.
Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Migrating metrics from InfluxDB to M3. Podcast Is crypto the key to a democratizing the metaverse? Featured on Meta. Reducing the weight of our footer. Upcoming responsive Activity page. Community input needed: The rules for collectives articles. Visit chat.
Linked 4. Related Hot Network Questions. Question feed. Stack Overflow works best with JavaScript enabled.