Ok so i need to implement a java applet into my GWT application.
This is not a ..."OoooO...its an applet", kinda requirement in my
project, its a "MUST HAVE requirement !!!"
I have searched the forums and googled it and mostly everyone is
having the same problem
That it gives you some funky error about, it can't find the applets
class file
This is how i call my applet
HTML msg = new HTML(
"<applet name = \"ReadTag\"" +
//"codebase = \"./\"" +
"code = \"package.ReadTagApplet.class\"" +
"width = 352" +
"height = 288" +
"</applet>", true);
Is there a special placement for the class file in my projects
package??
i'm running JRE1.6 in eclipse
Anyones 2c would be gr8
Smilies all round
:) :) :) :)
Thanx for the reply
I have basically stuck the ReadTagApplet.class in every single lvl of
my project and i get the same
problem
"Cannot load class sun/plugin/JavaRunTime
The bridge was intalled at <C:\Progra~1\Java\JRE16~1.0> but the class
is not there
Modify ther registry key to reflect the new bridge location
The key is HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in or change
your CLASSPATH to include the new directory...."
I have seen this error in other postings but without any
resolutions....
Any tips and advice?
Smilies all round
:) :) :) :)
> > :) :) :) :)- Hide quoted text -
>
> - Show quoted text -
The key is to build your gwt application and then run it in IE or
Firefox.
The applet portion of our application is important and it works well
in GWT but is not the primary gui element that loads first so I can
work around this problem.
For a quick demo of our gwt application see http://www.videoprotein.com/demo3min/Demo3.html
The video is done by a java applet.
Thanks
Scooter
You are a life saver
Smilies all round
:) :) :) :)
On Jun 6, 1:00 pm, Scooter <willi...@gmail.com> wrote:
> If you run your application and you load the java applet as a first
> step then you do have a problem where you will never be able to push
> the compile/browse button on the hosted mode browser. You can add some
> code that checks what port you are running on and not load the applet
> and use this to catch that you are currently in hosted mode. You may
> also be able to do the compile/browse step without running in hosted
> mode.
>
> The key is to build your gwt application and then run it in IE or
> Firefox.
>
> The applet portion of our application is important and it works well
> in GWT but is not the primary gui element that loads first so I can
> work around this problem.
>
> For a quick demo of our gwt application seehttp://www.videoprotein.com/demo3min/Demo3.html
So it seemed to work and then i came to my desk the next day and boom,
it stopped working and gave me this error
java.lang.NoClassDefFoundError: ReadTagApplet (wrong name: net/impro/
ajax/reports/admin/server/readtag/ReadTagApplet)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
is this a java related error, or should i go to the java forums with
this?
my AJAX code is this
HTML msg = new HTML(
"<applet name = \"ReadTag\"" +
//"codebase = \"http://localhost:8080/quicktag/\"" +
"code = \"ReadTagApplet.class\"" +
"<param name=\"archive\" value=\"RReadTag.jar\" >"+
"width = 352" +
"height = 288" +
"</applet>", true);
Thnx
Smilies all round
:) :) :) :)
> > > > application.Appletswork without problem but will not work in hosted