Share your knowledge at the LQ Wiki.
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 05-21-2010, 10:29 PM   #1
LQ Newbie
Registered: May 2010
Posts: 1

Rep: Reputation: 0
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

UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (
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.
Old 05-22-2010, 03:05 PM   #2
Registered: Feb 2005
Location: UK
Distribution: GalliumOS
Posts: 33

Rep: Reputation: 16
I don't think you'll be able to use "rpm -Uvh" on Slax, but this might help you
Old 05-22-2010, 06:43 PM   #3
Senior Member
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 4,911

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
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.

cd /usr
sh jre-6u20-linux-i586.bin
ln -sf /usr/jre1.6.0_20/bin/java /usr/bin/java
1 members found this post helpful.


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
installing new slax modules on old backtrack? none_ Slackware 1 01-10-2010 02:12 PM
Installing SLAX on hard disk ghasemakbari Slackware 17 11-09-2009 05:31 AM
Installing OpenOffice on Slax/BackTrack2 Adam555 Linux - Newbie 6 06-12-2007 06:54 PM
SLAX & Java bhboku General 2 08-28-2005 03:07 PM
Installing Slax as a substitute for Slackware? apachedude Slackware 6 07-08-2005 08:22 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:58 PM.

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