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

Stefan Seelmann commented on DIRSTUDIO-283:
-------------------------------------------

Thanks Dennis for your report.

I have another workaround: As Apache Directory Studio is based on Eclipse RCP, 
all Eclipse command line options are valid for Studio. You could start Studio 
by appending "-vm <path to java executable>" to the command line. Another 
option is to create the config file "ApacheDirectoryStudio.ini" with proper 
content. 

I added this information to our FAQ: 
  http://directory.apache.org/studio/faqs.html#FAQs-HowtosettheJavaVMtouse%3


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

Reply via email to