what is the location of the jdk ?

Discussion in 'Mac OS X System & Mac Software' started by jeanmarie, May 21, 2001.

  1. jeanmarie

    jeanmarie
    uix_expand uix_collapse
    Member

    Joined:
    Sep 27, 2000
    Messages:
    21
    Likes Received:
    0
    i'm reading the install instructions in
    "Installing and configuring Tomcat" from ONJava.com
    onjava.com/pub/a/onjava/2001/03/29/tomcat.html?page=2
    and i wonder whats the jdk location in os x.
    off topic : i can remember apps asking for it in os9 too, do you know its location in this os too ?

    thanks for your help



    jean-marie
     
  2. rharder

    rharder
    uix_expand uix_collapse
    Do not read this sign.

    Joined:
    Mar 29, 2001
    Messages:
    1,189
    Likes Received:
    0
    It's something like this:

    /System/Library/Frameworks/JavaVM.framework/Versions/1.3/Home

    but that's probably not verbatim.

    Unfortunately, the directories do not match the common layout of a jdk directory on Windows or other *nixes. Oh well.

    -Rob
     
  3. scooby

    scooby
    uix_expand uix_collapse
    Registered

    Joined:
    Oct 14, 2000
    Messages:
    15
    Likes Received:
    0
    If you need to find something, the 'whereis' command can help.

    whereis java

    will find the java executable, which ought to lead you to the rest of the JDK.

    Naturally, the moment you heard of a new *nix command, you opened up a Terminal window and typed

    man whereis

    Of course. "apropos" is also helpful, it can search through the descriptions of commands. Unfortunately, it also searches through the descriptions of the C library functions, which is annoying.

    Cheers,
    scooby
     
  4. rharder

    rharder
    uix_expand uix_collapse
    Do not read this sign.

    Joined:
    Mar 29, 2001
    Messages:
    1,189
    Likes Received:
    0
    Unfortunately 'whereis java' points to /usr/bin.

    -Rob
     
  5. scooby

    scooby
    uix_expand uix_collapse
    Registered

    Joined:
    Oct 14, 2000
    Messages:
    15
    Likes Received:
    0
    ls -l should (I think) show the target of links. There's also an alias called 'll'
     

Share This Page