• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"mani",
Please check your private messages regarding an important administrative matter.
-Ben
 
My previous laptop never exploded like that. Read this tiny ad while I sweep up the shards.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic