Ask Your Question
0

Error when using oracle java

asked 2012-08-16 02:51:59 -0500

arcticfox gravatar image

updated 2012-08-16 03:12:31 -0500

hhlp gravatar image

hey there, i installed jdk 1.7 downloaded from oracle(which is a rpm file). i changed the .bashprofile to add the JAVAHOME and CLASSPATH like this:

JAVAHOME=/usr/java/jdk1.7.006 export JAVA_HOME

PATH=$JAVA_HOME/bin:$PATH export PATH

CLASSPATH=.:$JAVAHOME/lib/dt.jar:$JAVAHOME/lib/tools.jar export CLASSPATH

and i reboot. but when i try:

java -version

the following will be displayed:

bash: /usr/java/jdk1.7.0_06/bin/java: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

then i tried :

su -c 'yum install glibc.i686'

and will lead to:

Loaded plugins: langpacks, presto,
refresh-packagekit Resolving
Dependencies There are unfinished
transactions remaining. You might
consider running
yum-complete-transaction first to
finish them.
--> Running transaction check
---> Package glibc.i686 0:2.15-51.fc17 will be installed
--> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for
package: glibc-2.15-51.fc17.i686
--> Processing Dependency: libfreebl3.so for package:
glibc-2.15-51.fc17.i686
--> Running transaction check
---> Package nss-softokn-freebl.i686 0:3.13.5-1.fc17 will be installed
--> Finished Dependency Resolution Error: Protected multilib versions:
glibc-2.15-51.fc17.i686 !=
glibc-2.15-37.fc17.x86_64 Error:
Protected multilib versions:
nss-softokn-freebl-3.13.5-1.fc17.i686
!=
nss-softokn-freebl-3.13.4-2.fc17.x86_64

so what' wrong?

btw, when i installed the java, before 'complete', it told me something also bad ELF interpreter

i would appreciate it if you can provide an solution. and forgive my poor English.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-08-16 03:18:04 -0500

hhlp gravatar image

These are a fantastic guide to install java oracle in distro's like Fedora, centos and redhat

edit flag offensive delete link more

Comments

Thank you, cannot upvote (no karma) but anyway (:

ale gravatar imageale ( 2013-05-21 10:57:26 -0500 )edit

Question Tools

Stats

Asked: 2012-08-16 02:51:59 -0500

Seen: 3,200 times

Last updated: Aug 16 '12