FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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"
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]#
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.
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?
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
[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.
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.
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)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.