How do I get my Java 1.5 installation to appear in Java Preferences?

Discussion in 'Apple' started by Dave A, Jul 13, 2012.

  1. Dave A

    Dave A Guest

    Hi,

    I'm using Mac 10.7.4. I have installed Java 1.5 (in addition to Java 6, which already comes installed) as per the instructions here -- http://www.s-seven.net/java_15_lion . What that means is that I have set up my Java installations like so

    Daves-MacBook-Pro:Versions davea$ pwd
    /System/Library/Frameworks/JavaVM.framework/Versions
    Daves-MacBook-Pro:Versions davea$ ls -al
    total 64
    drwxr-xr-x 13 root wheel 442 Jul 13 09:08 .
    drwxr-xr-x 11 root wheel 374 Apr 29 11:55 ..
    lrwxr-xr-x 1 root wheel 10 Apr 29 11:53 1.4 -> CurrentJDK
    lrwxr-xr-x 1 root wheel 10 Apr 29 11:53 1.4.2 -> CurrentJDK
    lrwxr-xr-x 1 root wheel 10 Jul 13 09:08 1.5 -> ./1.5.0_30
    lrwxr-xr-x 1 root wheel 10 Jul 13 09:08 1.5.0 -> ./1.5.0_30
    drwxr-xr-x 9 root wheel 306 Jul 13 09:12 1.5.0_30
    lrwxr-xr-x 1 root wheel 10 Apr 29 11:53 1.6 -> CurrentJDK
    lrwxr-xr-x 1 root wheel 10 Apr 29 11:53 1.6.0 -> CurrentJDK
    drwxr-xr-x 8 root wheel 272 Apr 29 11:55 A
    lrwxr-xr-x 1 root wheel 1 Apr 29 11:53 Current -> A
    lrwxr-xr-x 1 root wheel 22 Jul 13 08:34 Info.plist -> ./Resources/Info.plist
    drwxr-xr-x 3 root wheel 102 Jul 13 08:34 MacOS


    When I open Utilities -> Java Preferences, however, only Java SE 6 (64-bit) and Java SE 6 (32-bit) appear. What do I need to do to get my Java 5 installation to show up in Java Preferences?

    Thanks, - Dave
     
    Dave A, Jul 13, 2012
    #1
    1. Advertisements

  2. Dave A

    David Ritz Guest

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    There are a couple of things I can spot, in the directory listing you
    provide.

    The first is the existence of a
    /System/Library/Frameworks/JavaVM.framework/Versions/MacOS/ directory.
    I suspect that this directory belongs in
    /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0_30/.

    $ ls -alF /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0_30/
    total 4
    drwxr-xr-x 9 root wheel 306 Jul 13 11:58 ./
    drwxr-xr-x 12 root wheel 408 Jul 13 11:52 ../
    drwxr-xr-x 10 root wheel 340 Jun 21 2011 Classes/
    drwxr-xr-x 35 root wheel 1190 Jul 13 11:47 Commands/
    drwxr-xr-x 8 root wheel 272 Jun 21 2011 Home/
    lrwxr-xr-x 1 root wheel 22 Jul 13 11:57 [email protected] -> ./Resources/Info.plist
    drwxr-xr-x 43 _update_sharing wheel 1462 Jun 21 2011 Libraries/
    drwxr-xr-x 3 root wheel 102 Jul 13 11:58 MacOS/
    drwxr-xr-x 24 root wheel 816 Jul 13 11:54 Resources/

    $ ls -alF /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0_30/MacOS/
    total 4
    drwxr-xr-x 3 root wheel 102 Jul 13 11:58 ./
    drwxr-xr-x 9 root wheel 306 Jul 13 11:58 ../
    lrwxr-xr-x 1 root wheel 27 Jul 13 11:58 [email protected] -> ../Libraries/libjava.jnilib

    The second error I noticed is, you seem to be missing a listing for
    /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK.

    $ ls -alF /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK
    lrwxr-xr-x 1 root wheel 59 Jun 13 16:49 /System/Library/Frameworks/JavaVM.framework/Versions/[email protected] -> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents

    That being said, I went through the trouble of following install
    directions for Java 1.5, as outlined at
    <http://www.s-seven.net/java_15_lion>. While I feel I exercised
    extreme care, in following these complex instructions, I, too, do not
    see 'J2SE 5.0' in either the 32-bit or 64-bit version, as pictured at
    <http://www.s-seven.net/images/java_lion_prefs.jpg>.

    My only suggestion is, to go through the full install again, being
    extremely careful to copy, from the directions, and paste, into the
    command line, each and every of the nineteen steps (plus sub-steps)
    outlined in the directions.

    Beyond that, I suspect you should address your questions to:

    <blog [at] s [hyphen] seven [dot] net>

    - --
    David Ritz <>
    Be kind to animals; kiss a shark.

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.19 (Darwin)
    Comment: Public Keys: <http://dritz.home.mindspring.com/keys.txt>

    iEYEARECAAYFAlAAXz0ACgkQUrwpmRoS3usSMACfSLk49V1wEySHgs+tErxY/nS7
    lJYAoOzPd+qJYweWP4wX6Q5JY4+r/c5y
    =vcXT
    -----END PGP SIGNATURE-----
     
    David Ritz, Jul 13, 2012
    #2
    1. Advertisements

  3. Ten years ago when I was quite adroit at Linux and ten years younger, I
    believe I would have told you that you have a linking problem. Back
    then, ISTR pointing newer libraries to older libraries through linking,
    symbolically, of course. I'd "ln -s" older libraries to newer or vice
    versa and wouldn't have both 1.4 and 1.4.2 as links in the same
    directory.
    On the other hand, I thought about not posting this and holding myself
    up to ridicule, but what the hell.

    leo
     
    Leonard Blaisdell, Jul 14, 2012
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.