LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-24-2014, 07:08 AM   #1
Robert Chiu
LQ Newbie
 
Registered: Jan 2014
Location: Shenzhen China
Posts: 25

Rep: Reputation: Disabled
The problem I encounter when I install java.


I download jdk-7u25-linux-i586.rpm from website(http://www.oracle.com/technetwork/ja...k-7u25-oth-JPR). And the I start to install RPM PACKET in Centos 6.3.
Code:
[root@AY1312280620257702e0Z software]# 
[root@AY1312280620257702e0Z software]# rpm -ivh jdk-7u25-linux-i586.rpm 
Preparing...                ########################################### [100%]
   1:jdk                    ########################################### [100%]
Unpacking JAR files...
	rt.jar...
/var/tmp/rpm-tmp.qPJo7u: /usr/java/jdk1.7.0_25/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/jre/lib/rt.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
	jsse.jar...
/var/tmp/rpm-tmp.qPJo7u: /usr/java/jdk1.7.0_25/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/jre/lib/jsse.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
	charsets.jar...
/var/tmp/rpm-tmp.qPJo7u: /usr/java/jdk1.7.0_25/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/jre/lib/charsets.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
	tools.jar...
/var/tmp/rpm-tmp.qPJo7u: /usr/java/jdk1.7.0_25/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/lib/tools.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
	localedata.jar...
/var/tmp/rpm-tmp.qPJo7u: /usr/java/jdk1.7.0_25/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/jre/lib/ext/localedata.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
	plugin.jar...
/var/tmp/rpm-tmp.qPJo7u: /usr/java/jdk1.7.0_25/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/jre/lib/plugin.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
	javaws.jar...
/var/tmp/rpm-tmp.qPJo7u: /usr/java/jdk1.7.0_25/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/jre/lib/javaws.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
	deploy.jar...
/var/tmp/rpm-tmp.qPJo7u: /usr/java/jdk1.7.0_25/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/jre/lib/deploy.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
[root@AY1312280620257702e0Z software]#
 
Old 01-24-2014, 07:12 AM   #2
Robert Chiu
LQ Newbie
 
Registered: Jan 2014
Location: Shenzhen China
Posts: 25

Original Poster
Rep: Reputation: Disabled
I follow the instruction which is provided by oracle,what is the root cause?
Quote:
Installation of the 64-bit JDK on RPM-based Linux Platforms
This procedure installs the Java Development Kit (JDK) for 64-bit RPM-based Linux platforms, such as Red Hat and SuSE, using an RPM binary file (.rpm) in the system location. You must be root to perform this installation.

These instructions use the following file:

jdk-7u<version>-linux-x64.rpm
1. Download the file. Before the file can be downloaded, you must accept the license agreement.

2. Become root by running su and entering the super-user password.

3. Uninstall any earlier installations of the JDK packages.

# rpm -e <package_name>
4. Install the package.

# rpm -ivh jdk-7u<version>-linux-x64.rpm
To upgrade a package:
# rpm -Uvh jdk-7u<version>-linux-x64.rpm
5. Delete the .rpm file if you want to save disk space.

6. Exit the root shell. No need to reboot.

Quote:
Originally Posted by Robert Chiu View Post
I download jdk-7u25-linux-i586.rpm from website(http://www.oracle.com/technetwork/ja...k-7u25-oth-JPR). And the I start to install RPM PACKET in Centos 6.3.
Code:
[root@AY1312280620257702e0Z software]# 
[root@AY1312280620257702e0Z software]# rpm -ivh jdk-7u25-linux-i586.rpm 
Preparing...                ########################################### [100%]
   1:jdk                    ########################################### [100%]
Unpacking JAR files...
	rt.jar...
/var/tmp/rpm-tmp.qPJo7u: /usr/java/jdk1.7.0_25/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/jre/lib/rt.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
	jsse.jar...
/var/tmp/rpm-tmp.qPJo7u: /usr/java/jdk1.7.0_25/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/jre/lib/jsse.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
	charsets.jar...
/var/tmp/rpm-tmp.qPJo7u: /usr/java/jdk1.7.0_25/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/jre/lib/charsets.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
	tools.jar...
/var/tmp/rpm-tmp.qPJo7u: /usr/java/jdk1.7.0_25/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/lib/tools.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
	localedata.jar...
/var/tmp/rpm-tmp.qPJo7u: /usr/java/jdk1.7.0_25/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/jre/lib/ext/localedata.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
	plugin.jar...
/var/tmp/rpm-tmp.qPJo7u: /usr/java/jdk1.7.0_25/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/jre/lib/plugin.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
	javaws.jar...
/var/tmp/rpm-tmp.qPJo7u: /usr/java/jdk1.7.0_25/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/jre/lib/javaws.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
	deploy.jar...
/var/tmp/rpm-tmp.qPJo7u: /usr/java/jdk1.7.0_25/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/jre/lib/deploy.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
[root@AY1312280620257702e0Z software]#
 
Old 01-24-2014, 07:15 AM   #3
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Rep: Reputation: 74
install the x64 version, you don't have 32 bit capabilities
 
Old 01-24-2014, 07:32 AM   #4
Robert Chiu
LQ Newbie
 
Registered: Jan 2014
Location: Shenzhen China
Posts: 25

Original Poster
Rep: Reputation: Disabled
Appreciate your help.. I download the 64 bit version and install it in the following, still some problem at the bottom(the red color) :

Code:
[root@AY1312280620257702e0Z software]# 
[root@AY1312280620257702e0Z software]# 
[root@AY1312280620257702e0Z software]# rpm -ivh jdk-7u25-linux-
jdk-7u25-linux-i586.rpm  jdk-7u25-linux-x64.rpm   
[root@AY1312280620257702e0Z software]# rpm -ivh jdk-7u25-linux-x64.rpm 
Preparing...                ########################################### [100%]
	file /usr/java/jdk1.7.0_25/jre/lib/jexec from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/lib/jexec from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/java from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/bin/java from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/appletviewer from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/apt from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/extcheck from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/idlj from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jar from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jarsigner from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/javac from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/javadoc from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/javah from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/javap from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/javaws from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/bin/javaws from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jcmd from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jconsole from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jdb from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jhat from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jinfo from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jmap from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jps from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jrunscript from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jsadebugd from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jstack from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jstat from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jstatd from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/keytool from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/bin/keytool from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/native2ascii from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/orbd from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/bin/orbd from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/pack200 from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/bin/pack200 from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/policytool from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/bin/policytool from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/rmic from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/rmid from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/bin/rmid from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/rmiregistry from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/bin/rmiregistry from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/schemagen from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/serialver from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/servertool from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/bin/servertool from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/tnameserv from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/bin/tnameserv from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/unpack200 from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/bin/unpack200 from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/wsgen from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/wsimport from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/xjc from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/bin/java_vm from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/lib/charsets.pack from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/lib/deploy/ffjcext.zip from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/lib/ext/localedata.pack from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/lib/jfxrt.jar from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/lib/jsse.pack from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/lib/rt.pack from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/lib/ant-javafx.jar from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/lib/ct.sym from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/lib/tools.pack from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/release from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/src.zip from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
[root@AY1312280620257702e0Z software]# ls
jdk-7u25-linux-i586.rpm  jdk-7u25-linux-x64.rpm  opera-12.16-1860.x86_64.rpm
[root@AY1312280620257702e0Z software]# 
[root@AY1312280620257702e0Z software]# 
[root@AY1312280620257702e0Z software]# 
[root@AY1312280620257702e0Z software]# java 
-bash: /usr/bin/java: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
[root@AY1312280620257702e0Z software]# java -version
-bash: /usr/bin/java: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
[root@AY1312280620257702e0Z software]# java -c
-bash: /usr/bin/java: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
[root@AY1312280620257702e0Z software]# 

Last edited by Robert Chiu; 01-24-2014 at 07:34 AM.
 
Old 01-24-2014, 07:38 AM   #5
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Rep: Reputation: 74
"which java" and "file" on the result? i think you're invoking the 32bit version

EDIT: first remove old jdk

Last edited by gengisdave; 01-24-2014 at 07:39 AM.
 
Old 01-24-2014, 07:42 AM   #6
Robert Chiu
LQ Newbie
 
Registered: Jan 2014
Location: Shenzhen China
Posts: 25

Original Poster
Rep: Reputation: Disabled
How could I remove the effect of 32bit jave version? I am trying to use "rpm -e", but seems that does not work.
Code:
[root@AY1312280620257702e0Z software]# 
[root@AY1312280620257702e0Z software]# ls
jdk-7u25-linux-i586.rpm  jdk-7u25-linux-x64.rpm  opera-12.16-1860.x86_64.rpm
[root@AY1312280620257702e0Z software]# 
[root@AY1312280620257702e0Z software]# 
[root@AY1312280620257702e0Z software]# rpm -e jdk-7u25-linux-x64.rpm 
error: package jdk-7u25-linux-x64.rpm is not installed
[root@AY1312280620257702e0Z software]# 

[root@AY1312280620257702e0Z bin]# which java
/usr/bin/java

Last edited by Robert Chiu; 01-24-2014 at 07:46 AM.
 
Old 01-24-2014, 07:44 AM   #7
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Rep: Reputation: 74
"rpm -e jdk-7u25-linux-i586.rpm" or a brute "rm -rf /usr/java/jdk1.7.0_25/", but i think that break rpm database
 
Old 01-24-2014, 07:50 AM   #8
Robert Chiu
LQ Newbie
 
Registered: Jan 2014
Location: Shenzhen China
Posts: 25

Original Poster
Rep: Reputation: Disabled
still does not work
Quote:

[root@AY1312280620257702e0Z software]# rpm -e jdk-7u25-linux-i586.rpm
error: package jdk-7u25-linux-i586.rpm is not installed
[root@AY1312280620257702e0Z software]# rpm -e jdk-7u25-linux-x64.rpm
error: package jdk-7u25-linux-x64.rpm is not installed
[root@AY1312280620257702e0Z software]# rpm -ivh jdk-7u25-linux-x64.rpm
Preparing... ########################################### [100%]
file /usr/java/jdk1.7.0_25/jre/lib/jexec from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/lib/jexec from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/java from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/jre/bin/java from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/appletviewer from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/apt from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/extcheck from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/idlj from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/jar from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/jarsigner from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/javac from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/javadoc from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/javah from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/javap from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/javaws from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/jre/bin/javaws from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/jcmd from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/jconsole from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/jdb from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/jhat from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/jinfo from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/jmap from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/jps from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/jrunscript from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/jsadebugd from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/jstack from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/jstat from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/jstatd from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/keytool from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/jre/bin/keytool from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/native2ascii from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/orbd from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/jre/bin/orbd from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/pack200 from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/jre/bin/pack200 from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/policytool from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/jre/bin/policytool from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/rmic from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/rmid from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/jre/bin/rmid from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/rmiregistry from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/jre/bin/rmiregistry from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/schemagen from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/serialver from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/servertool from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/jre/bin/servertool from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/tnameserv from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/jre/bin/tnameserv from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/unpack200 from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/jre/bin/unpack200 from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/wsgen from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/wsimport from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/bin/xjc from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/jre/bin/java_vm from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/jre/lib/charsets.pack from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/jre/lib/deploy/ffjcext.zip from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/jre/lib/ext/localedata.pack from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/jre/lib/jfxrt.jar from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/jre/lib/jsse.pack from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/jre/lib/rt.pack from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/lib/ant-javafx.jar from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/lib/ct.sym from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/lib/tools.pack from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/release from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
file /usr/java/jdk1.7.0_25/src.zip from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
[root@AY1312280620257702e0Z software]# java
-bash: /usr/bin/java: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
[root@AY1312280620257702e0Z software]# java -version
-bash: /usr/bin/java: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
[root@AY1312280620257702e0Z software]#
 
Old 01-24-2014, 07:54 AM   #9
Robert Chiu
LQ Newbie
 
Registered: Jan 2014
Location: Shenzhen China
Posts: 25

Original Poster
Rep: Reputation: Disabled
Angry

I am trying to use "rm -rf ",but seems it sitll does not work
Code:
[root@AY1312280620257702e0Z java]# rm -rf jdk1.7.0_25/
[root@AY1312280620257702e0Z java]# ls
default  latest
[root@AY1312280620257702e0Z java]# cd /usr/qiuxin/
[root@AY1312280620257702e0Z qiuxin]# ls
chd5_beta  setup.sh  software
[root@AY1312280620257702e0Z qiuxin]# cd software/
[root@AY1312280620257702e0Z software]# ls
jdk-7u25-linux-i586.rpm  jdk-7u25-linux-x64.rpm  opera-12.16-1860.x86_64.rpm
[root@AY1312280620257702e0Z software]# java 
-bash: /usr/bin/java: No such file or directory
[root@AY1312280620257702e0Z software]# rpm -ivh jdk-7u25-linux-x64.rpm 
Preparing...                ########################################### [100%]
	file /usr/java/jdk1.7.0_25/jre/lib/jexec from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/lib/jexec from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/java from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/bin/java from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/appletviewer from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/apt from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/extcheck from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/idlj from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jar from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jarsigner from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/javac from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/javadoc from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/javah from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/javap from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/javaws from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/bin/javaws from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jcmd from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jconsole from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jdb from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jhat from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jinfo from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jmap from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jps from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jrunscript from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jsadebugd from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jstack from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jstat from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/jstatd from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/keytool from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/bin/keytool from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/native2ascii from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/orbd from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/bin/orbd from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/pack200 from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/bin/pack200 from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/policytool from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/bin/policytool from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/rmic from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/rmid from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/bin/rmid from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/rmiregistry from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/bin/rmiregistry from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/schemagen from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/serialver from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/servertool from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/bin/servertool from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/tnameserv from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/bin/tnameserv from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/unpack200 from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/bin/unpack200 from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/wsgen from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/wsimport from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/bin/xjc from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/bin/java_vm from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/lib/charsets.pack from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/lib/deploy/ffjcext.zip from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/lib/ext/localedata.pack from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/lib/jfxrt.jar from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/lib/jsse.pack from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/jre/lib/rt.pack from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/lib/ant-javafx.jar from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/lib/ct.sym from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/lib/tools.pack from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/release from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
	file /usr/java/jdk1.7.0_25/src.zip from install of jdk-2000:1.7.0_25-fcs.x86_64 conflicts with file from package jdk-2000:1.7.0_25-fcs.i586
[root@AY1312280620257702e0Z software]# java
-bash: /usr/bin/java: No such file or directory
[root@AY1312280620257702e0Z software]# java -c
 
Old 01-24-2014, 07:55 AM   #10
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Rep: Reputation: 74
"file /usr/bin/java", but should be a symlink to /usr/java/jdk1.7.0_25/bin/java, "file /usr/java/jdk1.7.0_25/bin/java" should report it as a 32bit elf, try "rpm -ivh --force jdk-7u25-linux-x64.rpm"
 
Old 01-24-2014, 08:02 AM   #11
Robert Chiu
LQ Newbie
 
Registered: Jan 2014
Location: Shenzhen China
Posts: 25

Original Poster
Rep: Reputation: Disabled
Unhappy

Code:
[root@AY1312280620257702e0Z software]# rpm -ivh --force jdk-7u25-linux-x64.rpm 
Preparing...                ########################################### [100%]
   1:jdk                    ########################################### [100%]
Unpacking JAR files...
	rt.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_25/jre/lib/rt.pack
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/jre/lib/rt.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
	jsse.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_25/jre/lib/jsse.pack
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/jre/lib/jsse.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
	charsets.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_25/jre/lib/charsets.pack
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/jre/lib/charsets.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
	tools.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_25/lib/tools.pack
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/lib/tools.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
	localedata.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_25/jre/lib/ext/localedata.pack
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/jre/lib/ext/localedata.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
[root@AY1312280620257702e0Z software]#

Last edited by Robert Chiu; 01-24-2014 at 08:03 AM.
 
Old 01-24-2014, 08:07 AM   #12
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Rep: Reputation: 74
"rm -rf /usr/java/jdk1.7.0_25/" then "rpm -i --force jdk-7u25-linux-x64.rpm"
 
Old 01-24-2014, 08:08 AM   #13
Robert Chiu
LQ Newbie
 
Registered: Jan 2014
Location: Shenzhen China
Posts: 25

Original Poster
Rep: Reputation: Disabled
Code:
[root@AY1312280620257702e0Z bin]# file /usr/bin/java
/usr/bin/java: symbolic link to `/usr/java/default/bin/java'
[root@AY1312280620257702e0Z bin]# file /usr/java/jdk1.7.0_25/bin/java
/usr/java/jdk1.7.0_25/bin/java: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
 
Old 01-24-2014, 08:11 AM   #14
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Rep: Reputation: 74
it's seems ok now, java and javac are working?
 
Old 01-24-2014, 08:13 AM   #15
Robert Chiu
LQ Newbie
 
Registered: Jan 2014
Location: Shenzhen China
Posts: 25

Original Poster
Rep: Reputation: Disabled
Unhappy

Code:
[root@AY1312280620257702e0Z software]# rm -rf /usr/java/jdk1.7.0_25/
[root@AY1312280620257702e0Z software]# rpm -i --force jdk-7u25-linux-x64.rpm
Unpacking JAR files...
	rt.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_25/jre/lib/rt.pack
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/jre/lib/rt.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
	jsse.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_25/jre/lib/jsse.pack
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/jre/lib/jsse.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
	charsets.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_25/jre/lib/charsets.pack
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/jre/lib/charsets.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
	tools.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_25/lib/tools.pack
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/lib/tools.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
	localedata.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_25/jre/lib/ext/localedata.pack
Error: unpack could not create JAR file:

	/usr/java/jdk1.7.0_25/jre/lib/ext/localedata.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
[root@AY1312280620257702e0Z software]#

Last edited by Robert Chiu; 01-24-2014 at 08:14 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
Did anybody encounter this problem? andgate Programming 5 12-10-2009 12:31 PM
Install umtsmon but encounter switiching problems vitalstrike82 Slackware 0 04-10-2009 09:28 PM
Encounter problem in configuring ENCFS vitalstrike82 Slackware 2 01-04-2009 11:40 AM
Install rpm package encounter segmentation fault eagleskycloud Linux - Software 1 12-13-2007 06:49 AM
Encounter a big problem while using phaser of Expat SybaseLu Linux - Software 2 05-31-2006 03:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:45 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