Results 1 to 3 of 3

Thread: export JAVA_HOME=<PATH>

  1. #1
    Join Date
    Jul 2008
    Beans
    13

    export JAVA_HOME=<PATH>

    How do I figure out <path>

  2. #2
    Join Date
    Aug 2006
    Beans
    282

    Re: export JAVA_HOME=<PATH>

    It depends which Java you have installed. If you have Sun Java 6 installed, it will be /usr/lib/jvm/java-6-sun/.

    However, most Java implementations will run without JAVA_HOME set - are you sure you need it? (It will make your life harder if you decide to have multiple Java implementations installed.)

  3. #3
    Join Date
    Jun 2006
    Location
    $ pwd _
    Beans
    3,999
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: export JAVA_HOME=<PATH>

    Quote Originally Posted by oohwewubi View Post
    How do I figure out <path>
    Find where Java is using
    Code:
    which java
    Now do a long listing of the output from the above command
    For e.g.
    Code:
    ls -l /usr/bin/java
    It will usually be symlinked to /usr/lib/<blah> or /opt/<blah>/<blah>

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •