Results 1 to 10 of 13
Hi All,
I am unable to install the jre RPM which i downloaded fron SUN website.
This is the error i get: (Using CentOS)
# rpm -Uvh jre-6u24-linux-i586.rpm
Preparing... ########################################### ...
- 03-04-2011 #1Just Joined!
- Join Date
- Dec 2010
- Posts
- 34
CentOS : Unable to install java
Hi All,
I am unable to install the jre RPM which i downloaded fron SUN website.
This is the error i get: (Using CentOS)
# rpm -Uvh jre-6u24-linux-i586.rpm
Preparing... ########################################### [100%]
package jre-1.6.0_24-fcs is already installed
This package i saw isn't present.
Please help me.
Thanks in advance
kingsmasher1
- 03-04-2011 #2
What is the output of this
?Code:rpm -qa jre
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 03-05-2011 #3Just Joined!
- Join Date
- Dec 2010
- Posts
- 34
- 03-06-2011 #4
jre has been installed.
How and where did you check?This package i saw isn't present.It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 03-07-2011 #5Just Joined!
- Join Date
- Dec 2010
- Posts
- 34
Yes, it shows jre is installed, but when i do "java -version", it gives error saying "Not found".
I am not able to install new jre too.
Please help me if you can.
- 03-07-2011 #6
probably java directory wasn't added to path variable
I'm not sure where the jre is installed to, but I imagine that its somewhere in /opt
use rpm -ql jre so you can see where it is installed
you will want to set JAVA_HOME environment variable to the base directory, and then add JAVA_HOME/bin to path
i would just edit user .bashrc file to do this, example of /opt/java:
Code:export JAVA_HOME=/opt/java export PATH=${JAVA_HOME}/bin:$PATH
- 03-08-2011 #7Just Joined!
- Join Date
- Dec 2010
- Posts
- 34
The strange thing is that running "rpm -ql jre" shows a lot of things like:
But when i do:Code:/etc /etc/.java /etc/.java/.systemPrefs /etc/.java/.systemPrefs/.system.lock /etc/.java/.systemPrefs/.systemRootModFile /etc/init.d/jexec /usr /usr/java /usr/java/jre1.6.0_24 /usr/java/jre1.6.0_24/COPYRIGHT /usr/java/jre1.6.0_24/README /usr/java/jre1.6.0_24/THIRDPARTYLICENSEREADME.txt /usr/java/jre1.6.0_24/Welcome.html /usr/java/jre1.6.0_24/bin /usr/java/jre1.6.0_24/bin/ControlPanel /usr/java/jre1.6.0_24/bin/java /usr/java/jre1.6.0_24/bin/java_vm /usr/java/jre1.6.0_24/bin/javaws /usr/java/jre1.6.0_24/bin/jcontrol /usr/java/jre1.6.0_24/bin/keytool /usr/java/jre1.6.0_24/bin/orbd
Please help me. Why is it showing, no such file or directory, where "rpm -ql" shows it is present?Code:cd /usr/java/ [Enter] bash: cd: /usr/java: No such file or directory
Please help me.
- 03-08-2011 #8
Post the output of this
Code:ls -ln /etc/.java
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 03-08-2011 #9Just Joined!
- Join Date
- Dec 2010
- Posts
- 34
- 03-09-2011 #10
i don't think RPM file was properly installed, just uninstall RPM and then reinstall


Reply With Quote

