Any JAVA experts "Could not find Java 2 runtime error

by Raydal
3 replies
Hope someone can help me here.

I've scoured the internet and have not found a working solution
EXCEPT to change the registry "current version" for Javasoft to 1.6
but the program should run with the latest Java since Java is backward
compatible.

So why would the program run by just making that registry change
and not with the latest Java RE?

-Ray Edwards
#any java experts could #error #find #java #runtime
  • Profile picture of the author David B
    That message means that your Java app can't find a JRE/JDK to run with. How are you trying to execute the Java program? From a command line prompt? or from a shell script?

    You may want to check you Path variable to make sure it has the correct JRE included. Or you could try from a command prompt something like c:\path\to\jre.desired.version\bin\java YourProgram
    {{ DiscussionBoard.errors[9227963].message }}
  • Profile picture of the author minirich
    First thing look at the path system variable:
    for linux: echo $PATH
    for window : path
    And see if the location of your jre is listed.
    Hope that helps
    Mike
    {{ DiscussionBoard.errors[9346034].message }}
  • Profile picture of the author ashish sharma
    Select Start, select Control Panel. double click System, and select the Advanced tab.
    Click Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
    In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK. Close all remaining windows by clicking OK
    {{ DiscussionBoard.errors[9385556].message }}

Trending Topics