• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

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

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"mani",
Please check your private messages regarding an important administrative matter.
-Ben
 
I got this tall by not having enough crisco in my diet as a kid. This ad looks like it had plenty of shortening:
ScroogeXHTML - small and flexible RTF to HTML converter library
https://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!