Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-03-2012, 04:23 PM   #1
LQ Newbie
Registered: Jul 2012
Posts: 1

Rep: Reputation: Disabled
Question Installing java-jdk using tar binaries

Hi everyone,

I'm working with a virtual machine built on a basic linux kernel which runs a small disk image on it with few libraries. You can think of it as a bare-bones Linux with virtually nothing on it.

I am trying to install java onto the disk image and I've downloaded the .tar binaries file from Oracle's website. I extracted it, and mounted the folder to the disk image. When I boot up the virtual machine and use the bash command "java -version", I get the following error:

java: error while loading shared libraries: cannot open shared object file: No such file or directory

I'm quite sure I incorrectly installed java... it cant be as easy as drag and drop a few binaries, route the PATH=$PATH:"usr/java/bin", done... right?

The kernel doesn't have anything like "apt-get install" which would truly be easy.

Any suggestions / help with installing java using binaries?

Old 07-04-2012, 11:02 AM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Since you are using the shared version of java, the dependencies (libraries, etc.) must be in place for java to function properly. If you use a static version instead, the dependencies are included. The static version is also much larger than the shared version.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
A question about installing JDK/Java with yum thomas2004ch Linux - Software 5 09-14-2011 12:41 PM
installing java runtime envirionment and jdk on ubuntu 10.10 umair ahmed Ubuntu 1 07-25-2011 09:54 AM
Help installing the Java JDK CS_Student_DrewU Programming 2 07-14-2007 11:43 PM
Help installing Java sdk/jdk 6 on Fedora core 6 tecksk8er001 Linux - Software 13 05-21-2007 07:38 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration