Skip to main content

need JNLPClassLoader using Java Plug-in Applet

2 replies [Last post]
huyi
Offline
Joined: 2007-01-02

Hi!
I am using applet to start JDIC but using new plug-in architecture.Following error occured:Can anyone help?
The environment is:
Windows XP SP3
JRE 6u10 b27
JDIC 0.9.5

basic: JNLP2ClassLoader.findClass: org.jdesktop.jdic.init.NativeExtractor: try again ..
java.security.PrivilegedActionException: org.jdesktop.jdic.init.JdicInitException: Unexpected ClassLoader for webstart, only com.sun.jnlp.JNLPClassLoader is supported.
at org.jdesktop.jdic.init.JdicManager.loadLibrary(Unknown Source)
at org.jdesktop.jdic.browser.WebBrowser.(Unknown Source)
at tw.com.baoruh.ifm.applet.analysis.AnalysisGraphFrame.showTrackMap(Unknown Source)
at tw.com.baoruh.ifm.applet.analysis.AnalysisGraphFrame.access$000(Unknown Source)
at tw.com.baoruh.ifm.applet.analysis.AnalysisGraphFrame$5.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.JToggleButton$ToggleButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: org.jdesktop.jdic.init.JdicInitException: Unexpected ClassLoader for webstart, only com.sun.jnlp.JNLPClassLoader is supported.
at org.jdesktop.jdic.init.JdicManager.init(Unknown Source)
... 31 more
isDefaultBrowserMozilla
Exception in thread "AWT-EventQueue-3" java.lang.UnsatisfiedLinkError: org.jdesktop.jdic.browser.internal.WebBrowserUtil.nativeGetBrowserPath()Ljava/lang/String;
at org.jdesktop.jdic.browser.internal.WebBrowserUtil.nativeGetBrowserPath(Native Method)
at org.jdesktop.jdic.browser.internal.WebBrowserUtil.getBrowserPath(Unknown Source)
at org.jdesktop.jdic.browser.internal.WebBrowserUtil.isDefaultBrowserMozilla(Unknown Source)
at org.jdesktop.jdic.browser.MsgClient.(Unknown Source)
at org.jdesktop.jdic.browser.NativeEventThread.(Unknown Source)
at org.jdesktop.jdic.browser.WebBrowser.(Unknown Source)
at tw.com.baoruh.ifm.applet.analysis.AnalysisGraphFrame.showTrackMap(Unknown Source)
at tw.com.baoruh.ifm.applet.analysis.AnalysisGraphFrame.access$000(Unknown Source)
at tw.com.baoruh.ifm.applet.analysis.AnalysisGraphFrame$5.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.JToggleButton$ToggleButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Here is my html and jnlp
HTML:

JNLP:clientagent.jnlp

<?xml version="1.0" encoding="UTF-8"?>

TestApplet
Jaspect Technology

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
huyi
Offline
Joined: 2007-01-02

I've tried to update JdicManager to change all JNLPClassLoader to JNLP2ClassLoader which is used in new plug-in architecture(using JNLP to describe applet) of Java 6.Now the error is different:

*** Jtrace: Executing IeEmbed.exe
*** Jtrace: JDIC found BIN path=[C:\Documents and Settings\huyi\Local Settings\Temp\.java_jnlp_applet_nativelib_cache.huyi\tmp62715]
isDefaultBrowserMozilla
Can't execute the native embedded browser. Error message: Cannot run program "IeEmbed.exe": CreateProcess error=2, ?t?Χ??????

The embedded browser can not be executed.The BIN path C:\Documents and Settings\huyi\Local Settings\Temp\.java_jnlp_applet_nativelib_cache.huyi\tmp62715 only have two files jdic.dll and tray.dll. By comparing to my another Java Web Start based version of same application. The temporary directory is E:\JWSCache\6.0\22\d7ac616-335b14b6-n
which have 4 files jdic.dll,tray.dll,IeEmbed.exe,MozEmbed.exe.
Seems the missing IeEmbed.exe cause the error.If so,it might be the problem of JNLP cache which ignoring the none dll files of native library on window system.
Can anyone help?

huyi
Offline
Joined: 2007-01-02

Has anyone successfully using JDIC in new Java Plug-in architecture(using JNLP to describe applet) in JRE6 update build 28.
And how about the development of JDIC which seems doesn't have any activity for a while?
Can anyone help?