2.6. Compiling HelloWorld for web mode
In this short section, we’ll look at how to compile an application for real-world use: that is, make it into a complete package that can be deployed to a web server for users to access. We’ll do that in Eclipse as well as look at what parameters can be passed to the GWT compiler.
Tip
Want to get efficient JavaScript? From GWT 2.5 you can get GWT to use Google’s Closure[5] Compiler to extract as much efficiency as possible in the compiled JavaScript of your application. Pass the –XenableClosureCompiler flag to the compiler.
5 Closure compiler: https://developers.google.com/closure/compiler/.
Ready to compile? Then let’s do it.
2.6.1. Running the GWT compiler from Eclipse
To run the GWT ...
Get GWT in Action, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.