Re: F14: can't get java running

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/03/2010 06:46 PM, Tony Camuso wrote:
> 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*



ln -s /usr/java/jre1.6.0_22/lib/i386/libnpjp2.so  (be sure to have same 
version as shown)

To get correct link do a "locate libnpjp2.so"

This is the link you want in /usr/lib/mozilla/plugins.  And take out any

  libjavaplugin_oji.so  link you may have in /plugins



-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux