Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.

    GIF shows where to locate </> in the thread and or post editor toolbar.
    To learn more about how to use our BBCode feature, review our "How to post your code into threads" here.

    Thank you, Code Forum.

Java Problems installing java

What to do now is look in Eclipse for a configuration parameter where you can set the correct location of the JRE or JDK. It's obviously looking for it in the wrong place.
 
To fix it properly and save yourself pain later. I would:

Download and install the Java 11 JRE of your choice for Windows purposes.
Download and install a Java 11 JDK of your choice for Eclipse/Development purposes.
Locate the JDK install folder, probably C:\Program Files\Java\jdk...... and copy it to a new development folder like C:\Java\
Rename that JDK folder "jdk"

The windows installed JRE will set the Environment variable "JAVA_HOME" and add "JAVA_HOME/bin" to the PATH variable. You can check and diagnose issues with these in the windows settings Environment... advanced etc.

To make eclipse use the JDK, update the jvm parameter in the eclipse.ini file to point to your JDK.

If at a later stage you want to do additional JVM work, such as Scala, Spark, or other non-Java languages that use the JVM, you can install a JDK8 additionally and use it for per-project compiles and runs within eclipse. Note: Very little of the non-Java open source JVM space has migrated to Java 11+ as the license agreements are not compatible.
 
As a general rule (punishable by death in my team, only joking). Paths/folders that will be used from or relating to software should NOT HAVE SPACES or punctuation in them. These things will ruin you day when you come to setting environment paths etc.
 

Buy us a coffee!

Buy me a coffee.
Back
Top Bottom