Results 1 to 4 of 4

Thread: JAVA_HOME nor the JRE_HOME environment variable is defined

  1. #1
    Join Date
    Nov 2009
    Location
    Kazakhstan, Shymkent
    Beans
    18
    Distro
    Ubuntu 10.04 Lucid Lynx

    Angry JAVA_HOME nor the JRE_HOME environment variable is defined

    Hi there... who can help with problem... so let me show you what i have:
    this is ~/.bashrc file:
    export JAVA_HOME=/usr/lib/jdk1.6.0_16
    export CLASSPATH=/home/samlabs821/tomcat/lib/jsp-api.jar:/home/samlabs821/tomcat/lib/servlet-api.jar


    and this is my ~/.bash_profile:
    JRE_HOME=/usr/lib/jdk1.6.0_16/jre/bin
    JAVA_HOME=/usr/lib/jdk1.6.0_16


    And i have this folders:

    /usr/lib/jvm \\this is Suns JVM
    /usr/lib/jdk1.6._16 \\this is Suns JDK

    ---------------

    echo $JAVA_HOME is working but javac is not working...
    java command is working..


    what must i do plizzz helppp

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Beans
    2,185
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: JAVA_HOME nor the JRE_HOME environment variable is defined

    How did you install the JDK? Try this (instead of downloading and manually installing it):
    Code:
    sudo apt-get install sun-java6-jdk
    Did you close and re-open a terminal after editing ~/.bashrc?
    Ubuntu 12.04

  3. #3
    Join Date
    May 2008
    Location
    Georgia
    Beans
    9
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: JAVA_HOME nor the JRE_HOME environment variable is defined

    Do you have your PATH variable pointing to the jdk's /bin ? Something like export PATH=${PATH}:${JAVA_HOME}/bin

  4. #4
    Join Date
    Nov 2009
    Beans
    1

    Lightbulb Re: JAVA_HOME nor the JRE_HOME environment variable is defined

    samlabs821 maybe you have a wrong JRE_HOME, try rewriting it doing export JRE_HOME=/usr/lib/jdk1.6.0_16/jre or just nulling it.

    Regards

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
  •