Menu

#58 JWebBrowser Applets in JAVA 7

open
nobody
None
5
2012-09-23
2012-07-03
Rodney
No

Java Applets are ignored in JWebBrowser running JAVA 7. Running with JAVA 6 is successful.

System: Windows 7 x64
Java x86: JDK 1.7.0_05 and JDK 1.6.0_33

java -version:1.6 -jar DJNativeSwing-SWTDemo.jar
java -version:1.7 -jar DJNativeSwing-SWTDemo.jar

Discussion

  • Rodney

    Rodney - 2012-07-03

    Tested using the Simple Example JWebBrowser from the demo. The Applets run fine when loaded directly in IE9.

     
  • Christopher Deckers

    Hi,

    Applet support requires a certain number of conditions at the SWT level. DJ Native Swing sets up some of the required conditions (like classpaths) but some external conditions are still applicable:
    http://www.eclipse.org/swt/faq.php#browserapplets

    Things like "the Next Generation Java Plug-in enabled" or "The application is launched with the same JRE that provides the installed Java plug-in" may not be respected?

     
  • Rodney

    Rodney - 2012-07-09

    I have verified the Java Plug-in is enabled and the same JRE is used.

    I noticed when it is ran in 1.7 that the XbootClasspath is not set.

    When I run the Demo through the JNLP, it uses java 1.7 and the java console displays the following stacktrace:
    NativeSwing[1]: java.lang.InternalError: Unable to find plugin native libraries
    NativeSwing[1]: at sun.plugin2.util.NativeLibLoader.load(Unknown Source)
    NativeSwing[1]: at sun.plugin2.main.server.IExplorerPlugin.<clinit>(Unknown Source)
    NativeSwing[1]: at java.lang.Class.forName0(Native Method)
    NativeSwing[1]: at java.lang.Class.forName(Unknown Source)
    NativeSwing[1]: at org.eclipse.swt.browser.WebSite.canExecuteApplets(Unknown Source)
    NativeSwing[1]: at org.eclipse.swt.browser.WebSite.ProcessUrlAction(Unknown Source)
    NativeSwing[1]: at org.eclipse.swt.browser.WebSite$4.method7(Unknown Source)
    NativeSwing[1]: at org.eclipse.swt.internal.ole.win32.COMObject.callback7(Unknown Source)
    NativeSwing[1]: at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
    NativeSwing[1]: at org.eclipse.swt.internal.win32.OS.DispatchMessage(Unknown Source)
    NativeSwing[1]: at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
    NativeSwing[1]: at chrriis.dj.nativeswing.swtimpl.core.SWTNativeInterface$OutProcess.runNativeSide(SWTNativeInterface.java:1237)
    NativeSwing[1]: at chrriis.dj.nativeswing.swtimpl.core.SWTNativeInterface.main_(SWTNativeInterface.java:1347)
    NativeSwing[1]: at chrriis.dj.nativeswing.swtimpl.NativeInterface.main(NativeInterface.java:220)
    NativeSwing[1]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    NativeSwing[1]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    NativeSwing[1]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    NativeSwing[1]: at java.lang.reflect.Method.invoke(Unknown Source)
    NativeSwing[1]: at chrriis.common.NetworkURLClassLoader.main(NetworkURLClassLoader.java:96)

     

Log in to post a comment.