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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Tested using the Simple Example JWebBrowser from the demo. The Applets run fine when loaded directly in IE9.
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?
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)