This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JNLP and Web Start and the fly likes Problem in .SWF(Flash) File Loading  in Browser through java Application in Linux Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JNLP and Web Start
Reply Bookmark "Problem in .SWF(Flash) File Loading  in Browser through java Application in Linux " Watch "Problem in .SWF(Flash) File Loading  in Browser through java Application in Linux " New topic
Author

Problem in .SWF(Flash) File Loading in Browser through java Application in Linux

mani
Greenhorn

Joined: Jun 03, 2008
Posts: 3
hi,

I am working in Linux platform. I installed JDK1.6 and NetBeans6.1 to develop a Java Application.
In my java application i use the jdic.jar,jdic_stub.jar, libjdic.so,libmozembed-linux-gtk1.2.so,libmozembed-linux-gtk2.so,libtray.so,mozembed-linux-gtk1.2,mozembed-linux-gtk2 files are used to load flash files in Browser through my java application.

I include the above mentioned files in application path and java classpath. The Java Classpath which is got the following way.
------------------------------------------------------------------------------------------------------------------------
String szPath = System.getProperty("java.library.path");
System.out.println("The Java classpath : ==> "+System.getProperty("java.library.path"));

it Print as

The Java classpath : ==> /root/JDK1.6/jdk1.6.0_06/jre/lib/i386/client:/root/JDK1.6/jdk1.6.0_06/jre/lib/i386:/root/JDK1.6/jdk1.6.0_06/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
------------------------------------------------------------------------------------------------------------------------

After include the jdic.jar,jdic_stub.jar, libjdic.so,libmozembed-linux-gtk1.2.so,libmozembed-linux-gtk2.so,libtray.so,mozembed-linux-gtk1.2,mozembed-linux-gtk2 files when i run my java application i got the following error message.


org.jdesktop.jdic.init.JdicInitException: java.lang.UnsatisfiedLinkError: /root/JDK1.6/jdk1.6.0_06/jre/lib/ext/libjdic.so: libstdc++.so.5: cannot open shared object file: No such file or directory
at org.jdesktop.jdic.init.JdicManager.initBrowserNative(Unknown Source)
at org.jdesktop.jdic.browser.WebBrowser.<clinit>(Unknown Source)
at netsim.NetSimBasics.<init>(NetSimBasics.java:42)
at netsim.NetSimBasics.main(NetSimBasics.java:67)
Caused by: java.lang.UnsatisfiedLinkError: /root/JDK1.6/jdk1.6.0_06/jre/lib/ext/libjdic.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:1660)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at org.jdesktop.jdic.init.InitUtility.<clinit>(Unknown Source)
... 4 more
Exception in thread "main" java.lang.UnsatisfiedLinkError: /root/JDK1.6/jdk1.6.0_06/jre/lib/ext/libjdic.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:1660)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at org.jdesktop.jdic.browser.internal.WebBrowserUtil.<clinit>(Unknown Source)
at org.jdesktop.jdic.browser.MsgClient.<init>(Unknown Source)
at org.jdesktop.jdic.browser.NativeEventThread.<init>(Unknown Source)
at org.jdesktop.jdic.browser.WebBrowser.<clinit>(Unknown Source)
at netsim.NetSimBasics.<init>(NetSimBasics.java:42)
at netsim.NetSimBasics.main(NetSimBasics.java:67)

My requirement is,

1)Is above mentioned java classpath is correct or not?
i) If it is CORRECT then how will i rectify the above error?
ii) If it is NOT CORRECT, how will i get the correct java classpath?

2)Give me the solution to load the flash file in Browser through my java application.

Thank you.


siva
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

"mani",
Please check your private messages regarding an important administrative matter.
-Ben
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Problem in .SWF(Flash) File Loading in Browser through java Application in Linux
 
Similar Threads
Problem in embedded browser in Linux
Help cannot run JAR files on LINUX???
Java Comm API on Linux can't find javax.comm.properties
Error in Loading Native Browser using JDIC
Unable to run native browser in Linux