Reputation: 571
I'm having a bit of trouble with deploying an application to google app engine.
I've got the google plugin set up in eclipse. I want to deploy to the app engine but a few of the classes are not allowed by the GWT compiler. javax.mail.* for instance.
However the GAE docs (https://cloud.google.com/appengine/docs/java/mail/usingjavamail) seem to be perfectly happy with using javamail (And I'm pretty sure I had an application working with it deployed before).
What am I doing wrong? Is there really no way to use these classes?!
Upvotes: 0
Views: 54
Reputation: 2073
On using GWT you will code for two environment. The front-end (when the code will be translated to javascript) and the back-end that is a regular Servlet.
In the back-end you are free to use all jre/jdk API, for example, java-mail api. But in front-end you are limited to use classes describe in JRE emulation.
Check if your are not using a classes outside of JRE Emulation in front-end (generally an EntryPoint
) and try to move the code to back-end (your servlet).
Upvotes: 0