gmasterscm / ama

Ask me anything!
https://blog.sindresorhus.com/answering-anything-678ce5623798
5 stars 1 forks source link

jvm not found #26

Open krlosh opened 6 years ago

krlosh commented 6 years ago

Although I have installed and configured jvm 1.8, a jvm error message is shown.

When I ask for java -version in command windows I got java version "1.8.0_141" Java(TM) SE Runtime Environment (build 1.8.0_141-b15) Java HotSpot(TM) 64-Bit Server VM (build 25.141-b15, mixed mode)

psantosl commented 6 years ago

Let me check, not sure if we need 1.9. We use it to parse Java and C++ code. @violetaGitHub or @miryamGSM, thoughts?

mig42 commented 6 years ago

Hi @krlosh, Java 1.8 or higher should be enough. Can you share the error message being displayed?

krlosh commented 6 years ago

Message error is: A higher JVM version is required. Please install JVM version 8 or higher and add it to the path environment variable: https://www.java.com/es/download/ I also have other JVMs (1.7...) installed, but 1.8 is the default one

miryamGSM commented 6 years ago

Hi @krlosh,

We have seen windows installations having a bad/corrupt/useless "C:\Windows\System32\java.exe" "tool" which is supposed to be like a "pseudo-symlink" to the latest JVM installed on the machine.

That causes the failure since System32 is usually before any other path at the PATH environment variable.

In this case, you can remove (temporally) the file in order to solve the issue. Could you check it?

Thanks in advance ;)

krlosh commented 6 years ago

Hi, I've renamed C:\Windows\System32\java.exe and semantic diff is working. Thanks for your help!!!