Results 1 to 2 of 2

Thread: Error running javac in Ubuntu 11.04

  1. #1
    Join Date
    May 2012
    Beans
    1

    Red face 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:
    Code:
    javac -version
    I'm getting error below:
    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:
    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 :
    Code:
    /usr/local/java/jre1.7.0_04/lib/i386/
    /usr/local/java/jre1.7.0_04/lib/i386/jli/
    output of $PATH:
    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
    Join Date
    Jan 2011
    Location
    India
    Beans
    253
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: Error running javac in Ubuntu 11.04


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
  •