error when compiling the applet code

60 views
Skip to first unread message

sandy

unread,
Dec 20, 2010, 12:23:20 PM12/20/10
to gwtai
Hi all,

i am creating new project using http://code.google.com/p/gwtai/wiki/GettingStarted
and a class which is extending JApplet , in the same class i have
written applet code. i am seeing -
(The serializable class CounterAppletImpl does not declare a static
final serialVersionUID field of type long
- javax.swing.JApplet is not supported by Google App Engine's Java
runtime environment)

Any help would be greatly appreciable.

Thanks
Sandeep

Jason Greenberg

unread,
Dec 20, 2010, 4:19:14 PM12/20/10
to gw...@googlegroups.com
Try just inserting this field into your CounterAppletImpl class.

private static final long serialVersionUID = 1;

Another fix would be that if your class implements "serializable", to remove that interface support from the class - but then again, maybe in that case Google Apps might not support the applet ... not exactly sure how this works.




--
You received this message because you are subscribed to the Google Groups "gwtai" group.
To post to this group, send email to gw...@googlegroups.com.
To unsubscribe from this group, send email to gwtai+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gwtai?hl=en.


sandeep bupathi

unread,
Dec 20, 2010, 8:50:57 PM12/20/10
to gw...@googlegroups.com
Hi Jason,

Can help me giving some sample project of Applet integrated with GWT, I am using windows OS and Eclipse  for developing my project. I got some some sample projects from the group but they are not working in my environment. Please help me with  some sample project with my environment, so that i can refer to that and design according to my requirements.

Thanks
Sandeep  

Adrian Buerki

unread,
Dec 21, 2010, 10:30:49 AM12/21/10
to gw...@googlegroups.com
Hi Sandeep

This is the most simple project I can think of. I have just integrated
a really simple Applet and configured the JarLinker to create the
necessary Jar file.

You can import the project in Eclipse and run developer mode...

Regards, Adrian

2010/12/21 sandeep bupathi <sandeepb...@gmail.com>:

AppletTest.zip

sandeep bupathi

unread,
Dec 21, 2010, 12:47:40 PM12/21/10
to gw...@googlegroups.com
Hi Adrian,

Thanks for sending the sample project, when i imported project into my eclipse it is not showing any errors but when i ma compiling the project i am seeing following error.

  Compiling module mySource.AppletTest
   Compiling 6 permutations
      Compiling permutation 0...
      Compiling permutation 1...
      Compiling permutation 2...
      Compiling permutation 3...
      Compiling permutation 4...
      Compiling permutation 5...
   Compile of permutations succeeded
Linking into C:\Users\sandeep\Desktop\AppletTest\AppletTest\war\applettest
   Invoking Linker jarlinker
      Running jarsigner: C:\Program Files\Java\jre6\bin\jarsigner
      Running jarsigner: C:\Program Files\Java\jre6\..\bin\jarsigner
      [ERROR] Unable to locate jarsigner
      [ERROR] Failed to link
com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
at com.google.gwt.gwtai.applet.linker.JarLinker.link(JarLinker.java:162)
at com.google.gwt.core.ext.linker.impl.StandardLinkerContext.invokeLegacyLinkers(StandardLinkerContext.java:336)
at com.google.gwt.dev.Link.doSimulatedShardingLink(Link.java:422)
at com.google.gwt.dev.Link.link(Link.java:175)
at com.google.gwt.dev.Compiler.run(Compiler.java:235)
at com.google.gwt.dev.Compiler.run(Compiler.java:177)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:149)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)
at com.google.gwt.dev.Compiler.main(Compiler.java:156)


Then i have changed the AppletTest.gwt.xml file with.
 <set-configuration-property name="jarlinker.keystore" value="C:/Users/sandeep/Desktop/AppletTest/AppletTest/.keystore" /> and compiled. then i am seeing same error. Can you please help me what i need to do after importing project.

Thanks
Sandeep

kilkenny

unread,
Dec 22, 2010, 1:49:28 AM12/22/10
to gwtai
Hi Sandeep

You are using a JRE to run the GWT developer mode. In this context
that does not work, because the JRE does not contain a jarsigner. The
jarsigner is bundeled with the JDK. The best thing is to install a
JDK, point your Eclipse (Preferences -> Installed JRE) to this JDK and
use it to run the GWT developer mode.

Regards, Adrian
> On Tue, Dec 21, 2010 at 9:00 PM, Adrian Buerki <a.bue...@gmail.com> wrote:
> > Hi Sandeep
>
> > This is the most simple project I can think of. I have just integrated
> > a really simple Applet and configured the JarLinker to create the
> > necessary Jar file.
>
> > You can import the project in Eclipse and run developer mode...
>
> > Regards, Adrian
>
> > 2010/12/21 sandeep bupathi <sandeepbupath...@gmail.com>:
> > > Hi Jason,
> > > Can help me giving some sample project of Applet integrated with GWT, I
> > am
> > > using windows OS and Eclipse  for developing my project. I got some some
> > > sample projects from the group but they are not working in
> > my environment.
> > > Please help me with  some sample project with my environment, so that i
> > can
> > > refer to that and design according to my requirements.
> > > Thanks
> > > Sandeep
>
> > > On Tue, Dec 21, 2010 at 2:49 AM, Jason Greenberg <ccie11...@gmail.com>
> > > wrote:
>
> > >> Try just inserting this field into your CounterAppletImpl class.
> > >> private static final long serialVersionUID = 1;
> > >> Another fix would be that if your class implements "serializable", to
> > >> remove that interface support from the class - but then again, maybe in
> > that
> > >> case Google Apps might not support the applet ... not exactly sure how
> > this
> > >> works.
>
> > >> On Mon, Dec 20, 2010 at 12:23 PM, sandy <sandeepbupath...@gmail.com>
> > >> wrote:
>
> > >>> Hi all,
>
> > >>> i am creating new project using
> > >>>http://code.google.com/p/gwtai/wiki/GettingStarted
> > >>> and a class which is extending JApplet , in the same class i have
> > >>> written applet code. i am seeing -
> > >>> (The serializable class CounterAppletImpl does not declare a static
> > >>> final serialVersionUID field of  type long
> > >>>        - javax.swing.JApplet is not supported by Google App Engine's
> > Java
> > >>> runtime environment)
>
> > >>> Any help would be greatly appreciable.
>
> > >>> Thanks
> > >>> Sandeep
>
> > >>> --
> > >>> You received this message because you are subscribed to the Google
> > Groups
> > >>> "gwtai" group.
> > >>> To post to this group, send email to gw...@googlegroups.com.
> > >>> To unsubscribe from this group, send email to
> > >>> gwtai+un...@googlegroups.com<gwtai%2Bunsu...@googlegroups.com>
> > .
> > >>> For more options, visit this group at
> > >>>http://groups.google.com/group/gwtai?hl=en.
>
> > >> --
> > >> You received this message because you are subscribed to the Google
> > Groups
> > >> "gwtai" group.
> > >> To post to this group, send email to gw...@googlegroups.com.
> > >> To unsubscribe from this group, send email to
> > >> gwtai+un...@googlegroups.com<gwtai%2Bunsu...@googlegroups.com>
> > .
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/gwtai?hl=en.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "gwtai" group.
> > > To post to this group, send email to gw...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > gwtai+un...@googlegroups.com<gwtai%2Bunsu...@googlegroups.com>
> > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/gwtai?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "gwtai" group.
> > To post to this group, send email to gw...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > gwtai+un...@googlegroups.com <gwtai%2Bunsu...@googlegroups.com>.

sandeep bupathi

unread,
Dec 23, 2010, 10:26:17 AM12/23/10
to gw...@googlegroups.com
Hi Adrian,

Thanks a lot iam able to see the applet , thanks a lot.

Thanks
Sandeep

To unsubscribe from this group, send email to gwtai+un...@googlegroups.com.

sandy

unread,
Dec 25, 2010, 2:17:15 AM12/25/10
to gwtai
Hi Adrian,

I have some questions can you please clarify me.

1. I have added GwtAI-Client.jar and GwtAI-Core.jar,GwtAI-Demo.jar
after creating new GWT project and followed
http://www.google.com/url?sa=D&q=http://code.google.com/p/gwtai/wiki/GettingStarted&usg=AFQjCNGu86JY6s7faefgYu9-RG_SwCNaRQ
link to write code, but it is showing same errors as posted me in
previous posts. Can you please tell me what are the steps for creating
new applet integration with GWT.

2.Can you please tell me what might me the reason for below error

Loading inherited module
'com.google.gwt.gwtai.applet.AppletIntegration'
[ERROR] Line 12: Unexpected element 'define-configuration-property'
[ERROR] Failure while parsing XML

i am seeing this error while using with gwt-1.71 and older version of
eclipse.

Hope reply from you......ASAP

Thanks
Sandeep

On Dec 23, 8:26 pm, sandeep bupathi <sandeepbupath...@gmail.com>
wrote:
> Hi Adrian,
>
> > com.google.gwt.core.ext.linker.impl.StandardLinkerContext.invokeLegacyLinke rs(StandardLinkerContext.java:336)
> > > at com.google.gwt.dev.Link.doSimulatedShardingLink(Link.java:422)
> > > at com.google.gwt.dev.Link.link(Link.java:175)
> > > at com.google.gwt.dev.Compiler.run(Compiler.java:235)
> > > at com.google.gwt.dev.Compiler.run(Compiler.java:177)
> > > at com.google.gwt.dev.Compiler$1.run(Compiler.java:149)
> > > at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
> > > at
>
> > com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRu nner.java:81)
> > <gwtai%2Bunsu...@googlegroups.com<gwtai%252Buns...@googlegroups.co m>
>
> > > > .
> > > > >>> For more options, visit this group at
> > > > >>>http://groups.google.com/group/gwtai?hl=en.
>
> > > > >> --
> > > > >> You received this message because you are subscribed to the Google
> > > > Groups
> > > > >> "gwtai" group.
> > > > >> To post to this group, send email to gw...@googlegroups.com.
> > > > >> To unsubscribe from this group, send email to
> > > > >> gwtai+un...@googlegroups.com<gwtai%2Bunsu...@googlegroups.com>
> > <gwtai%2Bunsu...@googlegroups.com<gwtai%252Buns...@googlegroups.co m>
>
> > > > .
> > > > >> For more options, visit this group at
> > > > >>http://groups.google.com/group/gwtai?hl=en.
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > Groups
> > > > > "gwtai" group.
> > > > > To post to this group, send email to gw...@googlegroups.com.
> > > > > To unsubscribe from this group, send email to
> > > > > gwtai+un...@googlegroups.com<gwtai%2Bunsu...@googlegroups.com>
> > <gwtai%2Bunsu...@googlegroups.com<gwtai%252Buns...@googlegroups.co m>
>
> > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/gwtai?hl=en.
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "gwtai" group.
> > > > To post to this group, send email to gw...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > gwtai+un...@googlegroups.com<gwtai%2Bunsu...@googlegroups.com><
> > gwtai%2Bunsu...@googlegroups.com<gwtai%252Buns...@googlegroups.com >
Reply all
Reply to author
Forward
0 new messages