It maybe that is obvious for many, but I started working with GWT and I faced this problem and it was a bit hard to find the solution.
So the solution is as follows:
- in eclipse create a new module (Right click on your project –> New –> Other –> type Module)
- Give the module a name and make it inherits com.google.gwt.query.Query
- Create an entry point to a java class (that will be the client side javascript file), as
- <entry-point class='com.mycompany.MyPage2'/>
- Add an html page (es. MyPage2.html into the public folder) and add the following line into the header:
- <script language="javascript" src="MyPage2.nocache.js"></script>
Now you can rech the page at http://127.0.0.1:8888/MyPage2/MyPage2.html?gwt.codesvr=127.0.0.1:9997