LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-09-2004, 07:02 AM   #1
paisano2k
LQ Newbie
 
Registered: Apr 2004
Location: Dallas, TX
Distribution: Fedora Core (Yaffrow)
Posts: 9

Rep: Reputation: 0
Angry Installing j2re-1_4_2_04-linux-i586.rpm


when trying to install this rpm using either of these commands:

rpm -ivv j2re-1_4_2_04-linux-i586.rpm

or

rpm -Uvv j2re-1_4_2_04-linux-i586.rpm

-------------------------------------------------------------------
I'm getting the following error:

package j2re-1.4.2_04-fcs is already installed
-------------------------------------------------------------------

When I try doing a search for this package/rpm in both

/var/lib/rpm or /usr/java (this one is completely blank/empty)


---------------------------------

Can someone please help me? I've only been using Linux for about a week now since I'm converting from Windoze and starting to study for my redhad cert.
 
Old 04-09-2004, 08:30 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
it says its already installed. why do u try to install it again? have u deleted something?

u can try to update "rpm -Fvh j2re-1_4_2_04-linux-i586.rpm"
u can try uninstall "rpm -e j2re-1.4.2_04-fcs" and then install "rpm -ivh j2re-1_4_2_04-linux-i586.rpm"
 
Old 04-10-2004, 01:29 AM   #3
paisano2k
LQ Newbie
 
Registered: Apr 2004
Location: Dallas, TX
Distribution: Fedora Core (Yaffrow)
Posts: 9

Original Poster
Rep: Reputation: 0
Exclamation Ok, apparently, I wasn't clear enough!

This is the error that I'm getting after having tried "refreshing (-F), installing (-i), updated/upgrading (-U) and even using the force (--force) on both the install command (-ivv --force) or the upgrade command (-Uvv --force).

When I'm at a shell/command prompt and I type "java" or "whereis java", this is what I get:

[root@KirbyOne root]# java
bash: java: command not found
[root@KirbyOne root]# whereis java
java:
[root@KirbyOne root]#


What am I missing?
 
Old 04-10-2004, 01:41 AM   #4
paisano2k
LQ Newbie
 
Registered: Apr 2004
Location: Dallas, TX
Distribution: Fedora Core (Yaffrow)
Posts: 9

Original Poster
Rep: Reputation: 0
When trying to do the update/upgrade (-U), this is the error that I get: The system just hangs............... for over 10 minutes.

[root@KirbyOne root]# rpm -Uvv j2re-1_4_2_04-linux-i586.rpm
D: ============== j2re-1_4_2_04-linux-i586.rpm
D: Expected size: 13786938 = lead(96)+sigs(100)+pad(4)+data(13786738)
D: Actual size: 13786906
D: j2re-1_4_2_04-linux-i586.rpm: MD5 digest: OK (75b6aacf592bc7d7201170a8422b9dde)
D: opening db environment /var/lib/rpm/Packages joinenv
 
Old 04-12-2004, 03:22 AM   #5
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
[mesut@linux mesut]$ java
bash: java: command not found
[mesut@linux mesut]$ whereis java
java: /usr/share/java

ok. uninstall it like this, it wont check module depencies:
rpm -e --nodeps j2re-1.4.2_04-fcs
and install it again.
 
Old 04-12-2004, 03:25 AM   #6
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
paisano2k

there could be trouble with rpm db. im not sure.
u can try
rpm --rebuilddb
rpm --initdb
 
Old 04-12-2004, 03:32 AM   #7
wolfe2554
Member
 
Registered: Apr 2003
Location: denver co
Distribution: redhat9
Posts: 156

Rep: Reputation: 30
could your path not be set. cd to /usr/java/jre..../bin. then try running ./java. if this works then edit your ~./.bash_profile. add :/usr/java/jre.../bin to the path line and relogin.
 
Old 04-17-2004, 02:14 AM   #8
barrys
Member
 
Registered: Sep 2003
Location: London
Distribution: Susi 9.1, Man10 amd64, Man10.1
Posts: 243

Rep: Reputation: 30
The original poster is correct this does not work having downloaded from the sun site, this said it was a Redhat RPM. I have never been able to get java working on 9.2 nor 10.0

I nemember on RH this file came up with a copyright notice first before it unpacked the rpm. This doesn't happen with this file. If I use a terminal rpm i command it says it is not an rpm package.

Where can I get a mandrake rpm for this to work, or does it not work with 10.0 yet?
 
Old 04-17-2004, 12:56 PM   #9
beyond_2000
Member
 
Registered: Oct 2002
Location: Guangdong,Chinese
Distribution: Redhat AS 3.0 + FC1
Posts: 72

Rep: Reputation: 15
you just install it by this command
rpm -Uvh j2re-1_4_2_04-linux-i586.rpm --force
and then , you can find the directory under /usr/java, you can move it to /usr/lib or anywhere you want to.
finally , paste this below into /etc/profile

export JAVA_HOME=/usr/lib/java
export JRE_HOME=/usr/lib/java
export CLASSPATH=/usr/lib/java/bin
export PATH=$JAVA_HOME/bin:$PATH

because mine is under /usr/lib , so you just change it refer to yours.
 
Old 04-27-2004, 12:27 AM   #10
paisano2k
LQ Newbie
 
Registered: Apr 2004
Location: Dallas, TX
Distribution: Fedora Core (Yaffrow)
Posts: 9

Original Poster
Rep: Reputation: 0
Angry What NOW?

Ok, when trying to "force" the rpm installation per instructions of the last post: this is where it seems to "hang" on the install everytime.

All it does is SIT here, for over 3 hours......

-----------------------------------------------------------------------------------------------------------------------------

[root@KirbyOne root]# cd /tmp/JavaStuff
[root@KirbyOne JavaStuff]# rpm -Uvvh j2re-1_4_2_04-linux-i586.rpm --force
D: ============== j2re-1_4_2_04-linux-i586.rpm
D: Expected size: 13786938 = lead(96)+sigs(100)+pad(4)+data(13786738)
D: Actual size: 13786906
D: j2re-1_4_2_04-linux-i586.rpm: MD5 digest: OK (75b6aacf592bc7d7201170a8422b9dde)
D: opening db environment /var/lib/rpm/Packages joinenv

-----------------------------------------------------------------------------------------------------------------------------
Any suggestions? I'm really getting frustrated as I still can't seem to get Java installed.
 
Old 04-28-2004, 07:31 PM   #11
willcox
Member
 
Registered: May 2003
Location: Mexico
Distribution: FC 4
Posts: 36

Rep: Reputation: 15
Mira Paisano: unistall/remove/erase the package you downloaded.
→→→Running RH9:
1.-Download the Java 2 Runtime Env. package from java.sun.com/download (Look for a Java 2 Platform, std edition that runs on Linux, then download the Java 2 R.E. package. I used j2re-1_4_03-linux-i586-rpm.bin )
2.-Make the package executable and execute it to extract the RPM, as follows:
# chmod 755 j2re*-rpm.bin
# ./j2re*-rpm.bin
3.-Install the j2re3 package (as root user), just as you would any software RPM package:
# rpm -iv j2re*rpm
4.-Change the java plug-in directory and create a link from the java plug-in to the Mozilla/Opera plug-ins directory. (Instead of * , you could type the whole j2re directory name.)
$ cd /usr/java/j2re*/plugin/i386/ns610/
$ cp libjavaplugin_oji.so /usr/lib/mozilla/plugins/
5.-Close any open Mozilla windows, then open a new Mozilla window.
6.-Click help about plug-in and lots of supported Java MIME types.
7.-To see if the Java plug-in is working, you could try out some games from the Java software showcase (http://java.sun.com/getjava/showcase.html).
8.-Finally, type in a shell:
# rpm -Va
You should see a Java Icon in applications.

Espero haberte sido útil........paisano
 
Old 05-07-2004, 02:38 AM   #12
paisano2k
LQ Newbie
 
Registered: Apr 2004
Location: Dallas, TX
Distribution: Fedora Core (Yaffrow)
Posts: 9

Original Poster
Rep: Reputation: 0
Ok willcox........what now?

This is what I've done per your post:

[root@KirbyOne root]# cd //tmp/JavaStuff
[root@KirbyOne JavaStuff]# ls
AutoDL j2re-1_4_2_04-linux-i586-rpm.bin
[root@KirbyOne JavaStuff]# chmod 755 j2re*-rpm.bin
[root@KirbyOne JavaStuff]# ./j2re*-rpm.bin
Sun Microsystems, Inc.
Binary Code License Agreement

for the
JAVATM 2 RUNTIME ENVIRONMENT (J2RE), STANDARD EDITION, VERSION 1.4.2_X

...... etc, etc, etc.......................
............................................................................
Do you agree to the above license terms? [yes or no]
yes
Unpacking...
Checksumming...
0
0
Extracting...
UnZipSFX 5.40 of 28 November 1998, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: j2re-1_4_2_04-linux-i586.rpm
Done.
[root@KirbyOne JavaStuff]# rpm -ivv j2re*rpm
D: ============== j2re-1_4_2_04-linux-i586.rpm
D: Expected size: 13786938 = lead(96)+sigs(100)+pad(4)+data(13786738)
D: Actual size: 13786906
D: j2re-1_4_2_04-linux-i586.rpm: MD5 digest: OK (75b6aacf592bc7d7201170a8422b9dde)
D: added binary package [0]
D: found 0 source and 1 binary packages
D: opening db environment /var/lib/rpm/Packages joinenv
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: ========== +++ j2re-1.4.2_04-fcs i586-Linux 0x0
D: opening db index /var/lib/rpm/Depends create mode=0x0
D: opening db index /var/lib/rpm/Providename rdonly mode=0x0
D: opening db index /var/lib/rpm/Pubkeys rdonly mode=0x0
D: read h# 709 Header sanity check: OK
D: ========== DSA pubkey id b44269d04f2a6fd2
D: read h# 896 Header V3 DSA signature: OK, key ID 4f2a6fd2
D: Requires: glibc >= 2.1.2-11 YES (db provides)
D: read h# 1074 Header V3 DSA signature: OK, key ID 4f2a6fd2
D: Requires: sh-utils >= 2.0-1 YES (db provides)
D: Requires: fileutils >= 4.0-8 YES (db provides)
D: read h# 379 Header V3 DSA signature: OK, key ID 4f2a6fd2
D: Requires: gawk >= 3.0.4-1 YES (db provides)
D: Requires: textutils >= 2.0-2 YES (db provides)
D: opening db index /var/lib/rpm/Basenames rdonly mode=0x0
D: read h# 162 Header V3 DSA signature: OK, key ID 4f2a6fd2
D: Requires: /bin/sh YES (db files)
D: closed db index /var/lib/rpm/Pubkeys
D: closed db index /var/lib/rpm/Depends
D: closed db index /var/lib/rpm/Providename
D: closed db index /var/lib/rpm/Basenames
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
D: ========== recording tsort relations
D: ========== tsorting packages (order, #predecessors, #succesors, tree, depth)
D: 0 0 0 0 0 +j2re-1.4.2_04-fcs
D: installing binary packages
D: opening db environment /var/lib/rpm/Packages joinenv
D: opening db index /var/lib/rpm/Packages create mode=0x42
D: mounted filesystems:
D: i dev bsize bavail iavail mount point
D: 0 0x0302 4096 1256066 1370658 /
D: 1 0x0002 1024 0 -1 /proc
D: 2 0x0006 1024 0 -1 /dev/pts
D: 3 0x0008 1024 0 -1 /proc/bus/usb
D: 4 0x0009 4096 62214 62213 /dev/shm
D: 5 0x000a 512 23199528 -1 /mnt/captive-noname
D: sanity checking 1 elements
D: opening db index /var/lib/rpm/Name create mode=0x42
D: read h# 1436 Header sanity check: OK
D: computing 670 file fingerprints
Preparing packages for installation...
D: computing file dispositions
D: opening db index /var/lib/rpm/Basenames create mode=0x42
package j2re-1.4.2_04-fcs is already installed
D: closed db index /var/lib/rpm/Basenames
D: closed db index /var/lib/rpm/Name
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
[root@KirbyOne JavaStuff]# cd /usr/java/j2re*/plugin/i386/ns610
bash: cd: /usr/java/j2re*/plugin/i386/ns610: No such file or directory
[root@KirbyOne JavaStuff]#

============================================================

now when I go to the following directory: it's BLANK (nothing in it)

file:/usr/java

============================================================

so what now? Anyone else have any ideas?
 
Old 05-07-2004, 02:56 AM   #13
paisano2k
LQ Newbie
 
Registered: Apr 2004
Location: Dallas, TX
Distribution: Fedora Core (Yaffrow)
Posts: 9

Original Poster
Rep: Reputation: 0
after typing this: # rpm -Va

I get this after a long string of stuff gets printed out in a shell command:

...
...
...
.....
.....
missing /usr/share/java
missing /usr/share/java/libgcj-3.3.2.jar
missing /usr/share/java/postgresql.jar
......
......
Unsatisfied dependencies for squirrelmail-1.4.0-1: php >= 4.0.4
.......T c /etc/krb5.conf
Unsatisfied dependencies for autoconvert-xchat-0.3.7-13.2: xchat
S.5....T c /etc/xinetd.d/swat
missing /usr/java/j2re1.4.2_04/*


==================================
which tells me that Java is NOT installing, even though I always get this error:

D: opening db index /var/lib/rpm/Basenames create mode=0x42
package j2re-1.4.2_04-fcs is already installed

==================================
Anyone know how I can actually open this file (var/lib/rpm/Basenames ) and read what's inside of it? It keeps telling me that this is an unknown file type! (size 10.2mb)

Last edited by paisano2k; 05-07-2004 at 06:23 AM.
 
  


Reply



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
chmod a+x jre-1_5_0-linux-i586-rpm.bin chemichael Fedora 4 09-24-2005 10:23 AM
Installing JAVA from j2sdk-1_4_2_04-linux-i586_rpm.bin TVScoundrel Linux - Software 2 04-20-2004 05:03 AM
I Installed j2sdk-1_4_1_02-fcs-linux-i586.rpm but still I am not able to chat yahoo DrGenetix Linux - Software 7 01-26-2004 07:17 AM
dependency problem by installing j2sdk-1_4_2-linux-i586.rpm linuxJaver Slackware 8 07-05-2003 12:04 PM
j2re-1_4_1_01-linux-i586-rpm.bin gsikora Linux - Software 2 01-19-2003 09:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 09:16 PM.

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