There are several options of using TeaVM. One is Maven build. The easiest way to create a new TeaVM project is to type in the command line:
mvn -DarchetypeCatalog=local \ -DarchetypeGroupId=org.teavm \ -DarchetypeArtifactId=teavm-maven-webapp \ -DarchetypeVersion=0.5.1 archetype:generate
Now you can execute
mvn clean package and get the generated
war in Tomcat or another container, or simply unzip it and open the
Using Flavour framework
Another option is to use Flavour, you should specify another archetype:
mvn archetype:generate \ -DarchetypeGroupId=org.teavm.flavour \ -DarchetypeArtifactId=teavm-flavour-application \ -DarchetypeVersion=0.1.0
This should generate a new minimal Flavour application.
You can build the generated project as usual by
After successful build you should be able to open
target/hello-1.0-SNAPSHOT/index.html in your browser.
You can learn TeaVM by examples. There are several sources of examples: