I recently uninstalled all Oracle Java products and installed OpenJDK from https://jdk.java.net/11/, on my Windows 10 system, because I'm planning to develop some Java applications. In order to install it I simply unzipped the jdk in another folder and set the JAVA_HOME
environment variable accordingly. Then I've installed the Eclipse IDE and everything worked fine. However, I have another program (not developed by me) which stopped working complaining that it needs a Java Runtime Environment. I thought that the OpenJDK provides me all the tools to make Java applications run, but I'm surely missing something.
What have I tried: I read this thread from stackoverflow, but I don't want to build my own JRE, just have one on my computer capable of running the java applications I have already installed. (The fact that I can run the Java applications I'm creating and not external ones is a bit weird).
I've also tried to follow the guidance of this thread and that's the output of the two commands that the first answer advises to run:
C:\Users\MyUser>java --version
openjdk 11.0.2 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
C:\Users\MyUser>javac --version
javac 11.0.2
Thanks a lot in advance for your help.
Best Answer
I think you have a couple different issues at play here.