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] 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:16:14 GMT

    [ https://issues.apache.org/jira/browse/DIRSTUDIO-283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12571889#action_12571889
] 

Dennis Lundberg commented on DIRSTUDIO-283:
-------------------------------------------

OK, I googled a bit and found a better work-around. Apparently you can add a command line
switch to set which JVM the application should use. So I added this to the end of the target
of my Windows shortcut:

   -vm C:\Program\Java\jre1.5.0_13\bin\javaw.exe

Perhaps this can be added to the user guide [1], either under "Download an install" or "Running
Apache Directory Studio". At least until the installer allows the user to choose JVM during
installation.


[1] http://directory.apache.org/studio/static/users_guide/apache_directory_studio/

> 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
>         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.


Mime
View raw message