Results 1 to 4 of 4

Thread: Installing Java jdk tar

  1. #1
    Join Date
    Jul 2012

    Question Installing Java jdk tar

    Hi guys,

    I'm trying to install java, and what I thought you do is just to extract the binaries/files from the .tar , and move it to the binaries folder in /usr/bin .I've scoured the forums and have found this similar post to the problem I'm having:

    When I do #java -version, I get " java: error while loading shared libraries: cannot open shared object file: No such file or directory "

    Unlike the previous post, I am on a more basic linux kernel than the Ubunutu build (so I don't have the sudo update-alternatives --install) option. What do I do to install it?

    Thanks for any help!

  2. #2
    Join Date
    Jul 2012
    Ubuntu 12.04 Precise Pangolin

    Re: Installing Java jdk tar

    Try this:

    sudo apt-get install openjdk-7-jre
    sudo apt-get install icedtea6-plugin

  3. #3
    Join Date
    Jul 2012

    Re: Installing Java jdk tar

    So actually, the kernel is not ubunutu but a very basic version so I don't have apt-get commands :O

    Was wondering if you knew how to install java using the tar file!

  4. #4
    Join Date
    Jul 2012

    Re: Installing Java jdk tar

    From the read-me file, the instructions seem so simple:
    This procedure installs the Java Development Kit (JDK) for 64-bit Linux, using an archive binary file (.tar.gz).

    These instructions use the following file:

    1. Download the file. Before the file can be downloaded, you must accept the license agreement. The archive binary can be installed by anyone (not only root users), in any location that you can write to. However, only the root user can install the JDK into the system location.

    2. Change directory to the location where you would like the JDK to be installed. Move the .tar.gz archive binary to the current directory.

    3. Unpack the tarball and install the JDK.

    % tar zxvf jdk-7u<version>-linux-x64.tar.gz
    The Java Development Kit files are installed in a directory called jdk1.7.0_<version> in the current directory.

    4. Delete the .tar.gz file if you want to save disk space.


    But at step 3, it just says "install the JDK"... what does that entail?

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