## Build project

```
mvn package 
```

## Create AOT file

```
java -XX:AOTCacheOutput=target/app.aot -jar target/myproject.jar
```

## Launch application with AOT file
   
This works:

```
java -XX:AOTCache=target/app.aot -jar target/myproject.jar
```

This does not:

```
cd target/
java -XX:AOTCache=app.aot -jar myproject.jar
```

as it fails with:

```
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.net.URL.getPath()" because the return value of "java.security.CodeSource.getLocation()" is null
        at com.example.myproject.Main.main(Main.java:31)
```
