-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The java.home variable defined in VS Code settings points to a missing folder #690
Comments
You can try the following;
|
Below worked for me.
As vsCode docs say, on Windows you have to escape "\" character while setting java.home json in vsCode's settings. |
good morning, i already tried "java.home": "C:\Program Files\Java\jdk1.8.0_191\" but not working @snjeza.... I going continue trying sorry for my english |
@danieltedev did you try to use double backslashes? ( |
sorry my message removed the double backslashes, but yes, I used double backslashes |
have you tried using forward slashes ( |
You say that you've set the settings in vsCode to point to |
I sorry, I should have talked about all the tests I did.... I already tried: |
I have the same problem. Cant use Java in VS Code. |
Sorry I figured out what I did wrong, I put the settings inside the workspace and for this reason it was not working. |
what did you mean by this??
|
Bruh. I set following in User Settings:
But it still cannot locate actually installed JDK. Using path to Java SE Development Kit |
Same problem |
I had the same problem. What I did additionally is setting the environment variable too. |
Hi! i had the same problem. try downloading this AdoptOpenJDK\jdk-11.0.8.10-hotspot\ then configure your system variables like this tutorial https://javatutorial.net/set-java-home-windows-10 |
Hey, i was facing the same issue, i tried all the solutions above but they did not work and still gave an error. This is not a fix in itself, so, i hope someone does find a better way out, but till that point in time, this is a monkey fix |
Since vscode-java 0.65.0, "java.home" needs to point to a JDK 11 installation, so the Java Language Server can run. You can still use a JDK 1.8 (actually anything from 1.5 to 14) to compile your projects, if you configure the "java.configuration.runtimes" preference, as documented in https://github.com/redhat-developer/vscode-java/wiki/JDK-Requirements. |
I have found the solution for this issue that worked for me, I installed the Java.deb file and then the issue got removed. |
Better using java.home settings by workspace. Given vscode for mobile app dev using react-native with 32-bit JDK but some Java apps using 64-bit JDK version of 11 or later, workspace settings should help. |
are you sure that it's working?? |
I just had the same problem and I noticed that the problem was in the workspace configuration, so, you need to change the "java.home" path in both, User json and Workspace json, following the rule of using "\" (doble slash) and setting the same path in both. |
I met the same problem too in win10 with settings.json "java.home": "C:\Program Files\Java\jdk-11.0.10", |
@bphariharan1301 |
java.home is deprecated please use "java.jdt.ls.java.home" in stead. |
I'm facing with same issue on my ubuntu vscode |
Hi! if you have jre and jdk in your machine at the same time, uninstall one of them (uninstalling jre works for me). JDK already have jre embedded. |
The java.home variable defined in VS Code settings points to a missing folder
Environment
Steps To Reproduce
user settings vscode: "java.home": "C:\Program Files\Java\jdk1.8.0_161"
system environment variable: name variable = JAVA_HOME / value variable = c:\Program Files\Java\jdk1.8.0_191
system environment variable: name variable = JDK_HOME / value variable = c:\Program Files\Java\jdk1.8.0_191
error: The java.home variable defined in VS Code settings points to a missing folder
I have already taken a look at all the problems already reported but I did not find a solution, can you help me?
The text was updated successfully, but these errors were encountered: