/ System information /
Ubuntu 14.04.2 LTS x86_64 trusty
OpenJdk 1.7.0_79 64 bits
DJ native swing 1.0.2
SWT 4.4.2 linux x86_64
Firefox 37.0.1
MOZZILLA_FIVE_HOME =usr/lib/mozilla
LD_REPERITORY_PATH =usr/lib/mozilla
I had do : apt-get install libwebkit so i have libwebkit
/
For my intership, i have rewrite an java application, it's use the DJ project to play SWF movie in webrowser.
I success to run this application on Windows XP/seven/8 , but on linux i have lot of difficulty.
Objectif :
* Launch native browser to play SWF file.
Problems :
When i try to use naviguate("file.swf"); then an dialog is show to dowload/save the file...
I have follow this : http://superuser.com/questions/687414/firefox-trying-to-download-local-swf-files but no result...
I have (SWT: ) GLib-GObject-CRITICAL ....closure->ref_count>0' failed error but
i don't understand how to solve this.
I have read lot of forum to resolve lot of situation... but nothing
Can you make a list/tuto for me the necessary pack of library i need , please ?
Sorry for my spell , i'm french =)
Hi,
On Linux, there are various possible Web browsers, and depending on what is installed, one will get picked. It can be XULRunner, Firefox, WebKit. Moreover, if your JVM is 64bit, a 64bit version is going to be used.
Try to activate the following system property, which generally outputs to the console the runtime that is used: -Dnativeswing.swt.device.debug=true
Depending on which web browser runtime is used, you then want the corresponding Flash plugin to be registered (if you use a 64bit runtime, then you need to find a 64bit Flash plugin).
If XULRunner is used and the Flash plugin registered in Firefox (both runtime are compatible), you could use a command to link the plugin so it gets registered in XULRunner. In the past, we used a command like:
ln -s /usr/lib/browser-plugins/libflashplayer.so /usr/lib/xulrunner-1.9.0/libflashplayer.so
or
sudo ln -s -t /usr/lib/xulrunner-1.9.0/libflashplayer.so /usr/lib/mozilla/plugins/libflashplayer.so
Hope this helps,
-Christopher
Hi,
Since last post i hav workaround my probleme and i have process of some test :
I have test swt library with spinnet on official website :
If i have understand i need fix SWT.MOZILLA issue to use DJProject ?
Can i use SWT.NONE or SWT.WEBKIT ?
Since mozilla 3.x , it's has a private xulrunner , can i use it ? it's contain XPCOM ?
For Xulrunner , i have test different versions with the SWT.MOZILLA :
With -Dnativeswing.swt.device.debug=true on DJNativeSwing-SWTDemo.jar :
- it's show => Webkit version 2.4.8
=> (SWT:4166) GLib-GObject-CRITICAL ....closure->ref_count>0' failed
In this 3 test i have this error but SWT:xxxx number change....
JWebbrowser work but flash not....
When i go to youtube i clic on video and i have this trace :
NativeSwing[1]: Cannot connect to socket err = No file or folder of this type
NativeSwing[1]: Cannot connect to server request channel
NativeSwing[1]: Jack server is running or cannot started
For Flash plugin i have copy/paste the file libflashplayer.so (/usr/lib/flash-plugin-installer/) in
Just question about my installation of xulrunner, i download xulrunner version of
http://ftp.mozilla.org/pub/mozilla.org/xulrunner/release , i extract and when i launch jar i set -Dorg.eclipse.swt.browser.XULRunnerPath=/home/xxxx/Download/xulrunner on command.it's work, but it's good process ?
I have extension adobe flash player on 11.2.202.457 version (market install).
So the link with the plugin not work ....
What do you think ? =p
Think for you reply, yes we can solve this , I must fix this before my presentation the 20 august ^^
Have nice day.
Hi,
It seems you are using Webkit. To use XULRunner, you need to force the runtime:
-Dnativeswing.webbrowser.runtime=xulrunner
And like you did, you also need to tell the path:
-Dorg.eclipse.swt.browser.XULRunnerPath=/home/xxxx/Download/xulrunner
Hope this helps,
-Christopher