LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing Java in Slax (https://www.linuxquestions.org/questions/linux-newbie-8/installing-java-in-slax-809399/)

Peccavi 05-21-2010 09:29 PM

Installing Java in Slax
 
Completely new to linux, I decided to finally give it a try last night and made a Live USB for Slax. It booted up quickly, pretty much everything worked right away, and after getting the Wifi working I decided to call it a night.

My project for today was attempting to install Java, but I haven't had much success. There are modules on the Slax site for this, but a. they are unverified and b. I want to delve into linux further than just downloading everything off a website. I downloaded the latest Java package for linux, which was a self-extracting .bin. I followed steps 1 through 4 here, but step 5 didn't work. I got the error message

Quote:

Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jre-6u20-linux-i586.rpm
error: db4 error(2) from dbenv->open: No such file or directory
error: cannot open Packages index using db3 - No such file or directory (2)
error: cannot open Packages database in /var/lib/rpm
I then tried using the rpm -UvH command on the rpm file, but got the same error. Knowing that Slax modules are .lzm files, I used rpm2tgz and tgz2lzm to convert it to a module, but it still doesn't work. I'm hoping that someone can point me in the right direction, other than "Download this unverified module from the Slax site."

In addition, a problem I haven't encountered yet but is foreseeable: In those instructions that I linked above for downloading and installing Java, the "Enable and Configure" section requires altering parts of the Firefox install directory. However, since this is Slax, Firefox is in a module. To do that part, do I have to use lzm2dir in order to get into Firefox's innerworkings, or what? Being new to Linux, I'm not really sure how to handle that part.

frrossk 05-22-2010 02:05 PM

I don't think you'll be able to use "rpm -Uvh" on Slax, but this http://www.slax.org/forum.php?action...parentID=11960 might help you

colorpurple21859 05-22-2010 05:43 PM

This is one way to install java, have to be root: get jre-6u20-linux-i586.bin from sun-java and copy to /usr and make sure it is executable.
Code:

cd /usr
sh jre-6u20-linux-i586.bin
ln -sf /usr/jre1.6.0_20/bin/java /usr/bin/java


All times are GMT -5. The time now is 11:45 AM.