LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (http://www.linuxquestions.org/questions/mandriva-30/)
-   -   firefox java plugin libstdc++.so.5: problem & solution (http://www.linuxquestions.org/questions/mandriva-30/firefox-java-plugin-libstdc-so-5-problem-and-solution-542188/)

Blaumieser 03-31-2007 01:41 PM

firefox java plugin libstdc++.so.5: problem & solution
 
Hi folks,
I only want to show a tiny obstacle to getting java running in firefox and how to overcome it:
Configuration:
Mandriva 2007 free
firefox 1.5.0.7
java jdk 1.6.0_01

I installed java and the plugin like described on many webpages (install by .bin, symlinking the plugin and so forth), nevertheless the java plugin test on

http://www.java.com/en/download/help/testvm.xml

failed constantly.

So I started firefox from a console and got:

Code:

VM did not start up properly
java.lang.UnsatisfiedLinkError: /usr/java/jdk1.6.0_01/jre/lib/i386/libdeploy.so:
 libstdc++.so.5: cannot open shared object file: No such file or directory
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
        at java.lang.Runtime.load0(Runtime.java:770)
        at java.lang.System.load(System.java:1005)
        at com.sun.deploy.config.UnixConfig.loadLibDeploy(UnixConfig.java:38)
        at com.sun.deploy.config.UnixConfig.<clinit>(UnixConfig.java:26)
        at com.sun.deploy.config.ConfigFactory.newInstance(ConfigFactory.java:11
)
        at com.sun.deploy.config.Config.getInstance(Config.java:662)
        at com.sun.deploy.config.Config.<clinit>(Config.java:678)
        at sun.plugin.util.PluginConfig.<init>(PluginConfig.java:31)
        at sun.plugin.util.UserProfile.<clinit>(UserProfile.java:24)
        at sun.plugin.AppletViewer.loadPropertiesFiles(AppletViewer.java:144)
        at sun.plugin.JavaRunTime.initEnvironment(JavaRunTime.java:84)
        at sun.plugin.navig.motif.Plugin.doit(Plugin.java:131)
        at sun.plugin.navig.motif.Plugin.start(Plugin.java:104)
Exception in thread "SysExecutionThead" java.lang.NoClassDefFoundError: Could no
t initialize class com.sun.deploy.config.Config
        at com.sun.deploy.ui.DialogTemplate.deriveParent(DialogTemplate.java:154
1)
        at com.sun.deploy.ui.DialogTemplate.<init>(DialogTemplate.java:105)
        at com.sun.deploy.ui.UIFactory$3.execute(UIFactory.java:230)
        at sun.plugin.util.PluginSysUtil$SysExecutionThread.run(PluginSysUtil.ja
va:292)
Could not read ack from child process
Plugin: Java VM process has died.
plugin: java process exited with status 6
Could not start JavaVM!

Mandriva by default did not install the library libstdc++.so.5 (but libstdc++.so.6).

Problem was easily solved by installing the libstdc++.so.5 from the Mandriva DVD.

Hope this prevents others from spending too much time on this little issue.

BM

{BBI}Nexus{BBI} 03-31-2007 04:29 PM

Should you not have installed the JRE (java runtime environment) and not the JDK (java development kit) version?

Blaumieser 03-31-2007 04:53 PM

Quote:

Originally Posted by {BBI}Nexus{BBI}
Should you not have installed the JRE (java runtime environment) and not the JDK (java development kit) version?

I'm coding in java occasionally, so I used jdk. But you are right, jre would be normal. Maybe someone knows, if the standalone jre and the jre of the jdk are identical...

BM

GlennsPref 03-31-2007 07:29 PM

As far as I know, the jdk-jre is identical to the jre.

But it won't save much space to remove it.


All times are GMT -5. The time now is 07:44 AM.