Question

  • Creator
    Topic
  • #3954255

    Where is Java Installed on Mac OS X?

    by aviator.lotions0i ·

    Tags: 

    Hi

    I just downloaded Java 7u17 on Mac OS 10.7.5 then successfully installed it. In order to do some JNI programming, I need to know where Java installed on my Mac.

    I thought that inside the /Library/Java/JavaVirtualMachines/ folder, there would be a folder called 1.7.0.jdk or something, but then I found that the folder is empty. This was confirmed by running ls /Library/Java/JavaVirtualMachines/ in the Terminal. I’ve tried searching for it to find out if it was installed somewhere else, but that doesn’t seem to be turning anything up.

    Could someone please tell me where Java is installed on my Mac?

You are posting a reply to: Where is Java Installed on Mac OS X?

The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our Community FAQs for details. All submitted content is subject to our Terms of Use.

All Answers

  • Author
    Replies
    • #3954976
      Avatar photo

      Re: Java

      by kees_b ·

      In reply to Where is Java Installed on Mac OS X?

    • #3955793

      try this

      by old molases ·

      In reply to Where is Java Installed on Mac OS X?

      Use /usr/libexec/java_home -v 1.8 command on a terminal shell to figure out where is your Java 1.8 home directory

      If you just want to find out the home directory of your most recent version of Java, omit the version. e.g. /usr/libexec/java_home

    • #3967499

      Reply To: Where is Java Installed on Mac OS X?

      by aviator.lotions0i ·

      In reply to Where is Java Installed on Mac OS X?

      if you’re not a developer, you most probably will never come into the situation that you won’t find any java on your mac. If an app needs java, it will install java.

    • #3968071

      Java installed on Mac OS X

      by wilsonhenry13463 ·

      In reply to Where is Java Installed on Mac OS X?

      Use /usr/libexec/java_home -v 1.8 is to find out where your Java 1.8 home directory is.

    • #3968148

      Reply To: Where is Java Installed on Mac OS X?

      by ready.09whippet ·

      In reply to Where is Java Installed on Mac OS X?

      I got to this question because I was getting an error in eclipse on my mac because I was getting an error on the first line of the program “import java.util.*.” I strongly suspect this is because the java path isn’t set correctly or something (even though I set this up once before). I entered the command in this answer and I get a directory. Can I just paste that directory into the textbox in the “Native library folder config” window? Or does this directory belong somewhere else?

Viewing 4 reply threads