CAST HIGHLIGHT - Code Reader - Installation - Java not detected on your system. Please install openJDK 11

After downloading Code reader for Windows,when I trying to launch the application, the following error message is seen: "Java not detected on your system. Please install OpenJDK 11."

Java is installed on the system (I have versions 11, 15, and 18).

 

cast-error.png

 

Workaround or Action Plan

 

The detection of Java is not seen by the scanner tool during installation can be either due to:

Java is not installed on the machine,

or

the installation path is not defined in the Environment variables.

 

To define JAVA_HOME in the environment variables and point it to Java 11, follow these steps:

 

Open Environment Variables:

  • Right-click on This PC or My Computer and select Properties.
    Click on Advanced System Settings on the left side.
    In the System Properties window, click on the Environment Variables button.


Create or Edit JAVA_HOME:

  • In the Environment Variables window, look for the System Variables section.
    If JAVA_HOME already exists:
    Select it and click Edit.
    If it doesn't exist:
    Click New to create a new system variable.
    Set the JAVA_HOME Path:
  • In the Variable name field, enter JAVA_HOME.
    In the Variable value field, enter the path to your JDK 11 installation folder (for example C:\Program Files\Java\jdk-11).


Update the PATH Variable:

  • In the same Environment Variables window, locate the Path variable under System variables.
    Select it and click Edit.
    Add a new entry that points to the bin directory inside your JDK 11 installation folder (e.g., C:\Program Files\Java\jdk-11\bin).
    Save and Apply:
  • Click OK to save the changes.
    Close all remaining windows by clicking OK.


Verify the Setup:

Open a Command Prompt and run:

echo %JAVA_HOME%
You should see the path to JDK 11.

To confirm the Java version, run:


java -version
It should display Java 11.

 

 


 

 

 

Additional Resources

CAST Highlight Troubleshooting Guides

CAST Highlight Product Documentation

 

 

Zendesk Ticket Number 

48202

Have more questions? Submit a request

Comments

Powered by Zendesk