Results 1 to 2 of 2
  1. #1
    michelkogan is offline Member
    Join Date
    May 2012
    Posts
    1
    Rep Power
    0

    Default Error running javac in Ubuntu 11.04

    I'm trying to install JDK 1.7 in Ubuntu 11.04 but when I run the following command:

    Java Code:
    javac -version
    I'm getting error below:

    Java Code:
    Error: could not find libjava.so
    Error: Could not find Java SE Runtime Environment.
    here is some information about my system configuration for you in order to solve my problem:
    The end of /etc/profile:

    Java Code:
    JDK_HOME=/usr/local/java/jdk1.7.0_04
    PATH=$PATH:$HOME/bin:$JDK_HOME/bin
    JAVA_HOME=/usr/local/java/jre1.7.0_04
    PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
    export JDK_HOME
    export JAVA_HOME
    export PATH
    output of /etc/ld.conf.so.d/java.conf :

    Java Code:
    /usr/local/java/jre1.7.0_04/lib/i386/
    /usr/local/java/jre1.7.0_04/lib/i386/jli/
    output of $PATH:

    Java Code:
    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/sahar/bin:/usr/local/java/jdk1.7.0_04/bin:/home/sahar/bin:/usr/local/java/jre1.7.0_04/bin
    Please help me to solve my problem.

  2. #2
    k1ng is offline Member
    Join Date
    Apr 2012
    Posts
    59
    Rep Power
    0

Similar Threads

  1. Replies: 4
    Last Post: 04-24-2012, 08:08 PM
  2. Java Applet Error at Eclipse on Linux Ubuntu
    By bytescode in forum Java Applets
    Replies: 2
    Last Post: 01-31-2011, 09:49 AM
  3. Replies: 0
    Last Post: 01-04-2011, 07:44 PM
  4. Replies: 5
    Last Post: 07-07-2010, 12:50 PM
  5. Javac error
    By Sotsiak in forum New To Java
    Replies: 5
    Last Post: 06-04-2010, 08:33 AM

Tags for this Thread

Posting Permissions

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