directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Lundberg (JIRA)" <j...@apache.org>
Subject [jira] Created: (DIRSTUDIO-283) Windows installer uses the JRE set by JAVA_HOME, so Studio will not start if JAVA_HOME is pointing to 1.4
Date Sun, 24 Feb 2008 09:54:14 GMT
Windows installer uses the JRE set by JAVA_HOME, so Studio will not start if JAVA_HOME is pointing
to 1.4
---------------------------------------------------------------------------------------------------------

                 Key: DIRSTUDIO-283
                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-283
             Project: Directory Studio
          Issue Type: Bug
          Components: studio-installer
    Affects Versions: 1.0.1, 1.1.0
         Environment: Windows XP, JAVA_HOME=C:\Program\Java\jdk1.4.2_16
Installed JREs: 1.4.2_16, 1.5.0_13, 1.6.0_03
Tested on Directory Studio 1.0.1 and 1.1.0-RC1
            Reporter: Dennis Lundberg


After installing Directory studio I try to start it. This fails with an error message, telling
me to look at the logfile (attached). Basically it's saying it can't run Studio because it
is compiled with Java 1.5.

Other installers for Windows, that creates an executable file to run a program written in
Java, usually have one of two options:
- Allow you to select which JRE to use during installation
- A configuration file where you can set the path to the JRE you want to use

I found a configuration file in ${installdir}/configuration/config.ini, but I didn't find
any instructions on how to change the used JRE. Perhaps it is not possible.

I need to have JAVA_HOME set to 1.4 because that's what I need when running java from the
command line. However other GUI-based java applications doesn't seem to mind this.

As a, not so pretty, work-around I have created a .bat file that resets JAVA_HOME temporarily
and the calls the Studio executable.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message