Error compile in CounterAppletImpl

18 views
Skip to first unread message

davicente

unread,
Oct 6, 2010, 6:44:05 AM10/6/10
to gwtai
Hi.

I´m trying to use the library, but I have a problem when I compile. I
get in CounterAppletImpl class this problem:

javax.swing.JApplet is not supported by Google App Engine's Java
runtime environment

I have the same error with several classes, like JTextField, JPanel,
JLabel, but the libraries are correctly included.

Some idea?

Regards.

kilkenny

unread,
Oct 12, 2010, 1:57:04 AM10/12/10
to gwtai
Hi David

The problem is that you compile the Applet code in an App Engine
environment. App Engine provides an application-server-like
environment, so consequentially compiling Swing UI code within the App
Engine environment does not work.

I guess you have setup a project with GWT/GA, so you have one project
in your IDE. But once your program is deployed to the server and
available to your clients, there are three contexts where your code
will run:

- Server-side within the App Engine
- Client-side in the browser JavaScript engine (the GWT client code)
- Client-side through the browsers Java-Plugin in a sandboxed JavaVM
(the applet code)

You have to consider these contexts while compilation. Your Applet
code has to be compile with a standard JDK.

Hope I have cleared things up? It is actually not as complicated as it
seems...

Regards, Adrian

davicente

unread,
Oct 13, 2010, 2:57:05 AM10/13/10
to gwtai
Thanks for the answer. I will try to progress with your clues ;).
Regards.
Reply all
Reply to author
Forward
0 new messages