-
Notifications
You must be signed in to change notification settings - Fork 68
Java path in Windows registry #7
Comments
Windows environment settings is a tricky part because of administrator privileges. Now installer can be used by ordinary user and mandatory registry access will break it. Maybe it will be better allow user to choose whether installer should create registry keys - add another installation option "create registry keys". I'll look at it on next openjdk release preparation. |
Hello, I wanted to add OpenJDK in http://compilibre.sourceforge.net/index_fr-FR.html , with LibreOffice, FAR and many more softwares that require JAVA. But it is too hard for a normal user to add a registry key or to set a variable. So, I will wait a new version of OpenJDK with PATH and JAVA_HOME or/and the registry key set by the installer. |
I'll look at it. Now I'm awaiting for new source releases: openjdk7 update should be released in a month and openjdk6 update may also be released soon. |
@kolAflash , @petrouchka |
Any ETA on when this will be fixed? Because i have issues with the installer too |
@Rikitik Did you see #7 (comment) ? |
Yes i tried adding manuel reg keys not working for me, can't say i'm pro at adding regkeys though. i assumed a string would be sufficient |
Hi, All current windows installers support adding registry keys. You most On 10/24/2014 06:03 PM, Rikitik wrote:
-Alex |
Hello for example if CurrentVersion=1.8.0_05 the app try to look at a folder key 1.8.0_05 underneath of Java Runtime Environment so the path to look up is: Then from there you should have the JDK OR JRE path with JavaHome Key EX: Then it can run properly. Here is exported registry myfile.reg content. TAKE NOTE YOU SHOULD CHANGE THE VALUES TO YOUR VERSION AND YOUR PATH :
|
I think this part needs some improvements, here are my suggestions:
I consider this as a bug because the app is very dependent to one way of looking for existing JRE and if in any case that way breaks, the app itself will break too |
Can you make the windows installer add this registry stuff with the correct OpenJDK installation-path?
===BEGIN===
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.7]
"JavaHome"="C:\Programme\Java\OpenJDK7_u6\jre"
===END===
It's needed by some (maybe all) Window Software to find Java. Until now, I've successfully tested it with "openjdk-1.7.0-u6-unofficial-b24-windows-i586.zip" and this software:
Thanks!
kolAflash
The text was updated successfully, but these errors were encountered: