create a .war file from gwt-project

前端 未结 8 1634
渐次进展
渐次进展 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

    0 讨论(0)
  • 2020-12-14 17:17

    I just found this solution, and it's amazing :) Just install the jar and enjoy extracting to a war file.

    Project Site http://code.google.com/p/gwt-project-export-wizard/

    0 讨论(0)
提交回复
热议问题