Skip to content
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

constantly getting "java runtime could not be located" messages #19

Open
mttindustries opened this issue Jan 26, 2020 · 7 comments
Open
Assignees
Labels
help wanted Extra attention is needed

Comments

@mttindustries
Copy link

I've been constantly getting this constantly getting "java runtime could not be located" messages evertime I load VSC. I've followed all the instructions in the plugin details page. I've installed the java development platform and i've pointed all my settings to the correct location
C:\Program Files\Java\jdk-13.0.2

but it's still not working

@Umoxfo
Copy link
Owner

Umoxfo commented Jan 26, 2020

Sorry, I could not reproduce your issue.

Please reinstall the latest JDK and add ";C:\Program Files\Java\jdk-13.0.2\bin" to the environment variable PATH.

@Umoxfo Umoxfo pinned this issue Jan 26, 2020
@mttindustries
Copy link
Author

yeah I tried that. Reinstalled JDK, updated the environmental variable path to include the \bin directory on the end. Tried updating viscode settings to do the same. didn't work. Tried reinstalling the extension, didn't work. tried it without the /bin/ in settings... still doesn't work

@Umoxfo Umoxfo added the help wanted Extra attention is needed label Jan 27, 2020
@Umoxfo
Copy link
Owner

Umoxfo commented Jan 27, 2020

Please try to restart the VSCode in order to load reliably the changed environment variables.,,

@mttindustries
Copy link
Author

yes i've done that too each step. I even installed and new installation of viscode, restarted the computer even and it still does it

@ghost
Copy link

ghost commented Mar 15, 2020

Have the same problem...
Stopped working today.

@colvacdir
Copy link

colvacdir commented Mar 16, 2020

I'm also getting the error, but only on an earlier version of VSCode. The latest insider build doesn't show the error? They are both using the EXACT same path.

W3C Validation: 2.6.1
macOS: 10.12.6
Java: 1.8.0_241-b07
Path: /Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/Contents/Home/jre

VSCode: 1.41.1
Error: "Java runtime could not be located."

VSCode: 1.44.0-insider
No Error

@Umoxfo
Copy link
Owner

Umoxfo commented Mar 17, 2020

Sorry for the inconvenience.
It lacked testing in the macOS environment, so I set up GitHub Actions to test in a cross-platform environment.

@Umoxfo Umoxfo self-assigned this Mar 17, 2020
@Umoxfo Umoxfo unpinned this issue Mar 17, 2020
@Umoxfo Umoxfo pinned this issue Mar 17, 2020
@Umoxfo Umoxfo unpinned this issue Mar 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants