Comments (10)
Hello
As I noticed Launch4J works with the key CurrentVersion which is located in windows registry :
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment
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:
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.8.0_05
Then from there you should have the JDK OR JRE path with JavaHome Key EX:
[JavaHome]=[C:\Program Files\java\jdk8-u5]
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 :
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft]
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
"CurrentVersion"="1.8.0_05"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.8.0_05]
"JavaHome"="C:\\Program Files\\java\\jdk8-u5"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Prefs]
from openjdk-unofficial-builds.
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.
from openjdk-unofficial-builds.
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.
from openjdk-unofficial-builds.
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.
from openjdk-unofficial-builds.
@kolAflash , @petrouchka
New installers in 7u40_2.4.1
support environment variables and windows registry. I've tested these features on win7 x64, but they may not work across all windows versions. Please reopen this issue (or file a new one) in case of errors.
from openjdk-unofficial-builds.
Any ETA on when this will be fixed? Because i have issues with the installer too
from openjdk-unofficial-builds.
@Rikitik Did you see #7 (comment) ?
from openjdk-unofficial-builds.
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
from openjdk-unofficial-builds.
Hi,
All current windows installers support adding registry keys. You most
probably will need to run the installer with right click+"As
Administrator" for registry access to work, though.
On 10/24/2014 06:03 PM, Rikitik wrote:
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
Reply to this email directly or view it on GitHub:
#7 (comment)
-Alex
from openjdk-unofficial-builds.
I think this part needs some improvements, here are my suggestions:
- Launch4J was not able to find the Java Runtime Environment registry key, it looks for JAVA_HOME or JRE_HOME environment variables and try to run the app if either of them are available
- If Launch4J was not able to find any of the above, it asks from the user to enter the path or browse to the Java_HOME directory
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
from openjdk-unofficial-builds.
Related Issues (20)
- Keytool is not available in OpenJDK 7 for Linux HOT 3
- Is it possible to create a silent install on windows? HOT 2
- JPEG decoder is broken in IcedTea builds HOT 1
- FreeType-related error HOT 2
- Problem with classes in rt.jar which appears with GWT HOT 4
- Openjdk 8 Support HOT 55
- Hangs with Eclipse Kepler in combination with OpenJDK 7 update 40 build 43 HOT 3
- 'java -version' output is not consistent with other distributions HOT 2
- Virus detected in OpenJDK 6 installer HOT 6
- GlobNote doesn't start with OpenJDK HOT 2
- will openJDK work for java EE? HOT 2
- JRE is already installed HOT 2
- No JavaScript Support HOT 7
- Version name difference can cause issues with Android SDK and/or ant HOT 2
- Error when installing 64 bits version in Windows 7 HOT 7
- Double-Clicking on .jar files in Windows HOT 2
- Method sun.misc.Unsafe#copyMemory(Object,long,Object,long,long) should be ported back into jdk6 build HOT 2
- browser plug-in HOT 4
- Update FreeType library in windows builds HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openjdk-unofficial-builds.