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

Emmanuel Lecharny commented on DIRSTUDIO-1070:
----------------------------------------------

I suspect that when running {{/usr/libexec/java_home -V}}, the *first* line is 
teh default Java on your system. This is what I get :

{noformat}
localhost:apacheds elecharny$ /usr/libexec/java_home -V
Matching Java Virtual Machines (5):
    1.8.0_60, x86_64:   "Java SE 8"     
/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home
    1.8.0_45, x86_64:   "Java SE 8"     
/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home
    1.7.0_55, x86_64:   "Java SE 7"     
/Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home
    1.6.0_65-b14-462, x86_64:   "Java SE 6"     
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
    1.6.0_65-b14-462, i386:     "Java SE 6"     
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
{noformat}
 and when I run {{java --version}} :

{noformat}
localhost:apacheds elecharny$ java -version
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
{noformat}

Still, I can't start the latest download, unless I add this line in the 
{{ApacheDirectoryStudio.app/Contents/MacOS/ApacheDirectoryStudio.ini}} file :

{noformat}
-vm
/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home
{noformat}

(note that there is a newline after {{-vm}}. How stupid...)

I *hate* the way Mac OSX deal with Java :/

> Can't start on OS X using Java8
> -------------------------------
>
>                 Key: DIRSTUDIO-1070
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-1070
>             Project: Directory Studio
>          Issue Type: Bug
>    Affects Versions: 2.0.0-M9 (2.0.0.v20150606-M9)
>         Environment: OSX 10.10
> Installed JavaSE, JavaSDK
>            Reporter: Florian Heigl
>            Priority: Blocker
>
> Well it won't even run without installing a old Java6 SDK.
> That would be problematic since DS Studio is what I use for maintaining the 
> really critical stuff, so I would prefer to not get attacked anywhere I go by 
> having old Java crud installed.
> It seems it would mostly be a matter of modifying the plist file.
> The DS FAQ has some info about setting the java version but OS X is not 
> mentioned in those howtos.
> I'm going to try poking at the file, but most probably i'll fail and just sit 
> there and sob.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to