Applets cannot be used within hosted mode.  See:
http://code.google.com/p/google-web-toolkit/issues/detail?id=1377

As an alternative, you can:
1.) Disable the applet in hosted mode, and test the applet in web
mode.
2.) Try out OOPHM (Out of Process Hosted Mode), which will let you use
an external web browser with hosted mode.  The catch with this is that
this has not yet been released; you'll need to use the GWT trunk.

Tony
--
Tony Strauss
Designing Patterns, LLC
http://www.designingpatterns.com
http://blogs.designingpatterns.com

On May 8, 8:13 am, Bhavik <[email protected]> wrote:
> Hi All!
>    I'm using Applet with GWT. but i am getting so many prblems as i am
> new to GWT.
>
> My requirement is to run Applet in GWT. In which  I am getting
> exception like...
>
> [ERROR] Unable to load module entry point class
> com.nextenders.client.AppletDemo (see associated exception for
> details)
> java.lang.NoClassDefFoundError: sun/plugin2/main/server/
> IExplorerPlugin
>         at org.eclipse.swt.internal.ole.win32.COM.VtblCall(Native
> Method)
>         at org.eclipse.swt.internal.ole.win32.IDispatch.Invoke
> (IDispatch.java:
> 64)
>         at org.eclipse.swt.ole.win32.OleAutomation.invoke
> (OleAutomation.java:
> 493)
>         at org.eclipse.swt.ole.win32.OleAutomation.invoke
> (OleAutomation.java:
> 417)
>         at com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvokeOnWindow
> (ModuleSpaceIE6.java:68)
>         at com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvoke
> (ModuleSpaceIE6.java:153)
>         at com.google.gwt.dev.shell.ModuleSpace.invokeNative
> (ModuleSpace.java:
> 453)
>         at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid
> (ModuleSpace.java:251)
>         at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid
> (JavaScriptHost.java:107)
>         at com.google.gwt.dom.client.Element$.setInnerHTML$
> (Element.java)
>         at com.google.gwt.user.client.ui.HTML.setHTML(HTML.java:116)
>         at com.google.gwt.user.client.ui.HTML.<init>(HTML.java:84)
>         at com.nextenders.client.AppletDemo.onModuleLoad
> (AppletDemo.java:98)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at com.google.gwt.dev.shell.ModuleSpace.onLoad
> (ModuleSpace.java:326)
>         at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace
> (BrowserWidget.java:343)
>         at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$300
> (BrowserWidgetIE6.java:37)
>         at
> com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad
> (BrowserWidgetIE6.java:77)
>         at
> com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke
> (BrowserWidgetIE6.java:161)
>         at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
> (IDispatchImpl.java:294)
>         at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
> (IDispatchImpl.java:194)
>         at org.eclipse.swt.internal.ole.win32.COMObject.callback6
> (COMObject.java:117)
>         at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native
> Method)
>         at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:
> 1925)
>         at org.eclipse.swt.widgets.Display.readAndDispatch
> (Display.java:2966)
>         at com.google.gwt.dev.SwtHostedModeBase.processEvents
> (SwtHostedModeBase.java:235)
>         at com.google.gwt.dev.HostedModeBase.pumpEventLoop
> (HostedModeBase.java:558)
>         at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:
> 405)
>         at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)
> Caused by: java.lang.ClassNotFoundException:
> sun.plugin2.main.server.IExplorerPlugin
>         at java.net.URLClassLoader$1.run(Unknown Source)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>         at org.eclipse.swt.internal.ole.win32.COM.VtblCall(Native
> Method)
>         at org.eclipse.swt.internal.ole.win32.IDispatch.Invoke
> (IDispatch.java:
> 64)
>         at org.eclipse.swt.ole.win32.OleAutomation.invoke
> (OleAutomation.java:
> 493)
>         at org.eclipse.swt.ole.win32.OleAutomation.invoke
> (OleAutomation.java:
> 417)
>         at com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvokeOnWindow
> (ModuleSpaceIE6.java:68)
>         at com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvoke
> (ModuleSpaceIE6.java:153)
>         at com.google.gwt.dev.shell.ModuleSpace.invokeNative
> (ModuleSpace.java:
> 453)
>         at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid
> (ModuleSpace.java:251)
>         at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid
> (JavaScriptHost.java:107)
>         at com.google.gwt.dom.client.Element$.setInnerHTML$
> (Element.java)
>         at com.google.gwt.user.client.ui.HTML.setHTML(HTML.java:116)
>         at com.google.gwt.user.client.ui.HTML.<init>(HTML.java:84)
>         at com.nextenders.client.AppletDemo.onModuleLoad
> (AppletDemo.java:98)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at com.google.gwt.dev.shell.ModuleSpace.onLoad
> (ModuleSpace.java:326)
>         at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace
> (BrowserWidget.java:343)
>         at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$300
> (BrowserWidgetIE6.java:37)
>         at
> com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad
> (BrowserWidgetIE6.java:77)
>         at
> com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke
> (BrowserWidgetIE6.java:161)
>         at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
> (IDispatchImpl.java:294)
>         at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
> (IDispatchImpl.java:194)
>         at org.eclipse.swt.internal.ole.win32.COMObject.callback6
> (COMObject.java:117)
>         at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native
> Method)
>         at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:
> 1925)
>         at org.eclipse.swt.widgets.Display.readAndDispatch
> (Display.java:2966)
>         at com.google.gwt.dev.SwtHostedModeBase.processEvents
> (SwtHostedModeBase.java:235)
>         at com.google.gwt.dev.HostedModeBase.pumpEventLoop
> (HostedModeBase.java:558)
>         at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:
> 405)
>         at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)
>
> *******************************************************************************************************
>
>  If i compile my java file and in the GWT.html file i give the applet
> tage wiht all info... eventhough it dosent work....
>
> plz help me out.....   :ITS VERY URGENT
>
> -Thanks a lot in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to