Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop running GWT application in development mode (in eclipse)

Tags:

mode

gwt

I'm developing a simple GWT application with eclipse. When I try to run it, it runs in development mode. How I can change its configuration and disable running in development mode?

like image 633
Farid Ala Avatar asked Dec 06 '11 05:12

Farid Ala


People also ask

What is GWT development mode?

Using GWT Development Mode will launch the CodeServer and a embedded Jetty web server by default. There will start two servers, the first being the Jetty web server and the CodeServer which will listen for compile requests from the browser.

What is GWT CodeServer?

GWT Development Mode (Using the CodeServer Launcher) Using this Development Mode will start a code server that listens for requests from the browser to compile the application. When the CodeServer launches and moves the resources to the module directory. Then it adds a war/module/module. nocache.


1 Answers

From eclipse, choose the google tools icon from the toolbar, and then click the red toolbox to compile the code.

When it's compiled, run the project as normal. From this point, you can either run in development mode by including the gwt.codesvr=localhost:9997 argument on the url, or you can run in production mode by omitting the gwt.codesvr argument.

To be more concise: to run in production mode, just remove the gwt.codesvr argument from the url. If you get the error that your module "may need to be recompiled," go back to eclipse and choose the red toolbox icon to compile the code again.

like image 94
Riley Lark Avatar answered Jan 04 '23 12:01

Riley Lark