Saturday, January 27, 2024

Re: Create an executable JAR

Apologies.  I've now realised I don't need to create an executable JAR.  I can just run the WAR directly, like this:
java -jar mywebapp-server/target/mywebapp.war

And I can tell Google App Engine to do the same in the app.yaml:
entrypoint: java -jar mywebapp.war

And woohoo!  GWT running in Google App Engine:

On Sunday 28 January 2024 at 12:54:48 pm UTC+11 Craig Mitchell wrote:

Using the SpringBoot archetype ( ), I can happy run mvn clean package and get a war file that has everything and runs nicely on a web server.

If I then modify mywebapp-server/pom.xml to have:
(instead of war)

I then get an executable jar, which I can run:
java -jar mywebapp-server/target/mywebapp.jar

The executable JAR runs the embedded Tomcat server, which contains the index.html + css (inside the mywebapp.jar in BOOT-INF\classes\public), however, all the GWT files are in BOOT-INF\lib\mywebapp-client-HEAD-SNAPSHOT.war) so it never sees them.  As a result, the app only shows the html, and nothing else works.

Has anyone made a GWT app as an executable JAR?  Or any suggestions how to do it?

The reason I need an executable JAR, is because that's all Google App Engine standard supports:

Thanks in advance.

You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

No comments:

Post a Comment