directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Lundberg (JIRA)" <>
Subject [jira] Commented: (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 10:28:14 GMT


Dennis Lundberg commented on DIRSTUDIO-283:

Thanks Pierre-Arnaud

I tried your suggestion, but unfortunately I was unable to make it work. It would make for
a much nicer way to configure it.

If the JRE detection won't make it into 1.1.0, perhaps a sample ApacheDirectoryStudio.ini
file can be included in the installation. It would contain a few comment lines with instruction
on how to configure the JVM and one, commented out, line with an example configuration.

Let me know if you need a test pilot for the JRE detection.

> 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:
>             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
>         Attachments: 1203845632593.log
> 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.

View raw message