Java Preferences won't start
Anthony Petrov
anthony.petrov at oracle.com
Tue May 21 00:40:47 PDT 2013
Hi Mike,
Below is the output from both commands. Still, the 7u10 is preferred by
this tool for some reason.
> [anthony at mac ~]$ /usr/libexec/java_home -V
> Matching Java Virtual Machines (3):
> 1.7.0_10, x86_64: "Java SE 7" /Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/Contents/Home
> 1.8.0, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home
> 1.7.0_06, x86_64: "Java SE 7" /Library/Java/JavaVirtualMachines/jdk1.7.0_06.jdk/Contents/Home
>
> /Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/Contents/Home
> [anthony at mac ~]$ /usr/libexec/java_home -X
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
> <plist version="1.0">
> <array>
> <dict>
> <key>JVMArch</key>
> <string>x86_64</string>
> <key>JVMBlacklisted</key>
> <false/>
> <key>JVMBundleID</key>
> <string>com.oracle.java.7u10.jdk</string>
> <key>JVMEnabled</key>
> <true/>
> <key>JVMHomePath</key>
> <string>/Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/Contents/Home</string>
> <key>JVMIsBuiltIn</key>
> <false/>
> <key>JVMName</key>
> <string>Java SE 7</string>
> <key>JVMPlatformVersion</key>
> <string>1.7</string>
> <key>JVMVendor</key>
> <string>Oracle Corporation</string>
> <key>JVMVersion</key>
> <string>1.7.0_10</string>
> </dict>
> <dict>
> <key>JVMArch</key>
> <string>x86_64</string>
> <key>JVMBlacklisted</key>
> <false/>
> <key>JVMBundleID</key>
> <string>com.oracle.java.8u.jdk</string>
> <key>JVMEnabled</key>
> <true/>
> <key>JVMHomePath</key>
> <string>/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home</string>
> <key>JVMIsBuiltIn</key>
> <false/>
> <key>JVMName</key>
> <string>Java SE 8</string>
> <key>JVMPlatformVersion</key>
> <string>1.8</string>
> <key>JVMVendor</key>
> <string>Oracle Corporation</string>
> <key>JVMVersion</key>
> <string>1.8.0</string>
> </dict>
> <dict>
> <key>JVMArch</key>
> <string>x86_64</string>
> <key>JVMBlacklisted</key>
> <false/>
> <key>JVMBundleID</key>
> <string>com.oracle.java.7u06.jdk</string>
> <key>JVMEnabled</key>
> <true/>
> <key>JVMHomePath</key>
> <string>/Library/Java/JavaVirtualMachines/jdk1.7.0_06.jdk/Contents/Home</string>
> <key>JVMIsBuiltIn</key>
> <false/>
> <key>JVMName</key>
> <string>Java SE 7</string>
> <key>JVMPlatformVersion</key>
> <string>1.7</string>
> <key>JVMVendor</key>
> <string>Oracle Corporation</string>
> <key>JVMVersion</key>
> <string>1.7.0_06</string>
> </dict>
> </array>
> </plist>
--
best regards,
Anthony
On 05/20/2013 07:01 PM, Mike Swingler wrote:
> What does "/usr/libexec/java_home -V" say? If 1.8 isn't in there, try "/usr/libexec/java_home -X".
>
> Regards,
> Mike Swingler
> Apple Inc.
>
> On May 20, 2013, at 6:04 AM, Anthony Petrov <anthony.petrov at oracle.com> wrote:
>
>> I've tried that to no avail. I've even restarted my Mac, still the same issue - java_home only sees the 7u10 by default. I.e.:
>>
>> [anthony at mac ~]$ set | grep JAVA
>> [anthony at mac ~]$ /usr/libexec/java_home
>> /Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/Contents/Home
>> [anthony at mac ~]$ /usr/libexec/java_home -v 1.8
>> /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home
>>
>> So, it does see the 1.8 installation when requested explicitly, but won't choose it by default for some reason.
>>
>> Any clues?
>>
>> PS. My PATH doesn't contain anything suspicious either:
>>
>> [anthony at mac ~]$ set | grep PATH
>> PATH=/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/export/anthony/bin/mac:/export/anthony/bin
>>
>> --
>> best regards,
>> Anthony
>>
>> On 05/18/13 01:30, Michael Hall wrote:
>>> On May 17, 2013, at 9:47 AM, Anthony Petrov wrote:
>>>
>>>> In my .bash_profile I just have the following:
>>>>
>>>> export JAVA_HOME=`/usr/libexec/java_home`
>>>
>>> Why do you have that?
>>> If you comment it out and then start a new shell window, or quit and restart Terminal, what happens?
>>> I know you said you did unset but who knows?
>>>
>>> Michael Hall
>>>
>>> trz nio.2 for OS X http://www195.pair.com/mik3hall/index.html#trz
>>>
>>> HalfPipe Java 6/7 shell app http://www195.pair.com/mik3hall/index.html#halfpipe
>>>
>>> AppConverter convert Apple jvm to openjdk apps http://www195.pair.com/mik3hall/index.html#appconverter
>>>
>>>
>>>
>>>
>>>
>
More information about the macosx-port-dev
mailing list