-   Linux - Newbie (
-   -   Installing java-jdk using tar binaries (

vizhang 07-03-2012 03:23 PM

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?

Thanks :)

bigrigdriver 07-04-2012 10:02 AM

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.

All times are GMT -5. The time now is 12:54 AM.