Menu

#16 JBROWSER don't run swf Ubuntu

v1.0_(example)
open
nobody
None
1
2015-08-02
2015-07-10
CABANAC
No

/ 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 =)

Discussion

  • Christopher Deckers

    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

     
  • CABANAC

    CABANAC - 2015-07-27

    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 :

    - SWT.NONE => Flash work on browser (test on youtube)
    - SWT.WEBKIT => Flash work on browser (test on youtube)
    - SWT.MOZILLA =>i use -Dorg.eclipse.swt.browser.XulrunnerPath and i have
                    XPCOM error 0x80004005
    

    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 :

    - xulrunner-2.0 x86_64 i have XPCOM error 0x80004002
    - xulrunner-2.0rc1 x86_64 i have XPCOM error 0x80004002
    - xulrunner-10.0.1 x86_64 i have Fatal error [ld-linux-x86-64.so.2+0xc4cf]
    

    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

    - /usr/lib/firefox/plugins/
    - /usr/lib/mozilla/plugins/
    - /usr/lib/xulrunner/plugins/ (Mozilla pirvate xulrunner i think )
    - /usr/lib/xulrunner-addons/plugins/
    - /home/xxxx/Download/xulrunner/plugins/ (XULRunner downloaded and extract)
    

    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.

     
  • Christopher Deckers

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.