Opened 6 years ago
Closed 6 years ago
#17490 closed defect (othersoftware)
Cannot start JOSM with JDK instead of JRE
Reported by: | Josmi | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Installer Windows | Version: | tested |
Keywords: | jdk | Cc: |
Description
OS: Windows 7 (64 bit)
JOSM: 14824
JDK: 11.0.2 (64 bit), no other Java version installed
When launching josm.exe, a window pops up, saying:
"This application requires a Java Runtime Environment 1.8.0
The registry refers to a nonexistent Java Runtime Environment installation or the runtime is corrupted."
When using a command prompt to launch "java -jar 'C:\Program Files (x86)\JOSM\josm-tested.jar'", the result is:
"Error: opening registry key 'Software\JavaSoft\Java Runtime Environment'
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment."
It seems as if JOSM was looking for a JRE-specific registry key, ignoring the path to the JDK key which is:
HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/JDK/11.0.2
Note: There is no JRE version of Java 11 from Oracle, only JDK.
Attachments (0)
Change History (3)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
Keywords: | jdk added |
---|---|
Priority: | critical → normal |
comment:3 by , 6 years ago
Resolution: | → othersoftware |
---|---|
Status: | new → closed |
Make sure that you set java_home and path. You can do this in a *.cmd file similar to this:
Note that path has to point to sub directory bin.