create a .war file from gwt-project

前端 未结 8 1647
渐次进展
渐次进展 2020-12-14 16:11

How do I create a .war-file from my gwt-project in eclipse?

8条回答
  •  死守一世寂寞
    2020-12-14 17:14

    Using Eclipse:

    1. right click the project

    2. choose Google→GWT Compile

    3. when compilation has finished, the console will say i.e.

      Linking into /home/janus/bpworkspace/gwtwerkstatt2/war/gwtwerkstatt2

      Link succeeded

      Compilation succeeded -- 28.623s

    4. open a terminal and navigate to the directory

    5. create the WAR: jar cv * > /tmp/myGWTproject.war

    6. you can now launch it with jetty-runner or similar: java -jar jetty-runner-8.1.7.v20120910.jar /tmp/myGWTproject.war

提交回复
热议问题