F14: can't get java running
Tony Camuso
tcamuso at redhat.com
Fri Dec 3 23:46:46 UTC 2010
OK, so in my fervor to delete IcedTea, I "yum erase"d java.
So, to get java back, I did the following:
# yum groupinstall Java
I could not locate the libjavaplugin_oji.so file, so I installed
the jre as follows.
# yum localinstall --nogpgcheck jre-6u22-linux-i586.rpm
# ln -sf /usr/java/jre1.6.0_22/plugin/i386/ns7/libjavaplugin_oji.so \
/usr/lib/mozilla/plugins
However, when I ran the Java test at ...
http://java.com/en/download/help/testvm.xml
... I got the following error.
"Something is wrong. Java is not working."
I discovered that ps says java is not running.
# ps aux | grep -i java
root 8986 0.0 0.0 4468 740 pts/3 S+ 18:31 0:00 grep --color=auto java
OK, so I created the following file, as recommended at
http://www.fedorafaq.org/fc2/custom_java.html
# cat /etc/profile.d/java.sh
export JAVA_HOME="/usr/java/jre1.6.0_22"
export JAVA_PATH="$JAVA_HOME"
export PATH="$PATH:$JAVA_HOME/bin"
Logged out, logged back in, still no joy.
Got the same error message at the java test site.
Once again, any help would be greatly appreciated.
Here are some directory listings.
# ls -AFlch /usr/java/jre1.6.0_22/
total 224K
drwxr-xr-x. 2 root root 4.0K Dec 3 17:17 bin/
-rw-r--r--. 1 root root 3.3K Dec 3 17:17 COPYRIGHT
drwxr-xr-x. 2 root root 4.0K Dec 3 17:17 javaws/
drwxr-xr-x. 18 root root 4.0K Dec 3 17:18 lib/
drwxr-xr-x. 4 root root 4.0K Dec 3 17:17 man/
drwxr-xr-x. 4 root root 4.0K Dec 3 17:17 plugin/
-rw-r--r--. 1 root root 16K Dec 3 17:17 README
-rw-r--r--. 1 root root 179K Dec 3 17:17 THIRDPARTYLICENSEREADME.txt
-rw-r--r--. 1 root root 917 Dec 3 17:17 Welcome.html
# ls -AFlch /usr/java/jre1.6.0_22/bin
total 720K
lrwxrwxrwx. 1 root root 10 Dec 3 17:17 ControlPanel -> ./jcontrol*
-rwxr-xr-x. 1 root root 47K Dec 3 17:17 java*
-rwxr-xr-x. 1 root root 17K Dec 3 17:17 java_vm*
-rwxr-xr-x. 1 root root 72K Dec 3 17:17 javaws*
-rwxr-xr-x. 1 root root 6.2K Dec 3 17:17 jcontrol*
-rwxr-xr-x. 1 root root 47K Dec 3 17:17 keytool*
-rwxr-xr-x. 1 root root 47K Dec 3 17:17 orbd*
-rwxr-xr-x. 1 root root 47K Dec 3 17:17 pack200*
-rwxr-xr-x. 1 root root 47K Dec 3 17:17 policytool*
-rwxr-xr-x. 1 root root 47K Dec 3 17:17 rmid*
-rwxr-xr-x. 1 root root 47K Dec 3 17:17 rmiregistry*
-rwxr-xr-x. 1 root root 47K Dec 3 17:17 servertool*
-rwxr-xr-x. 1 root root 47K Dec 3 17:17 tnameserv*
-rwxr-xr-x. 1 root root 185K Dec 3 17:17 unpack200*
# ls -AFlch /usr/lib/mozilla/plugins
total 376K
lrwxrwxrwx. 1 root root 58 Dec 3 17:25 libjavaplugin_oji.so -> /usr/java/jre1.6.0_22/plugin/i386/ns7/libjavaplugin_oji.so*
-rwxr-xr-x. 1 root root 4.3K Dec 3 08:48 librhythmbox-itms-detection-plugin.so*
-rwxr-xr-x. 1 root root 101K Dec 2 20:40 libtotem-cone-plugin.so*
-rwxr-xr-x. 1 root root 105K Dec 2 20:40 libtotem-gmp-plugin.so*
-rwxr-xr-x. 1 root root 72K Dec 2 20:40 libtotem-mully-plugin.so*
-rwxr-xr-x. 1 root root 81K Dec 2 20:40 libtotem-narrowspace-plugin.so*
lrwxrwxrwx. 1 root root 37 Dec 3 10:21 npwrapper.so -> /usr/lib/nspluginwrapper/npwrapper.so*
More information about the users
mailing list