# single-file script mode
alias nbl='java -Xmx32m -XX:+UseSerialGC [project_path]/src/main/java/dev/mbien/nblauncher/NbLauncher.java'
# plain-old jar mode
alias nblj='java -Xmx32m -XX:+UseSerialGC -jar [project_path]/target/nb-native-launcher-0.1-SNAPSHOT.jar'
# native mode
alias nbln='[project_path]/target/nbl'nbl --nbhome [nb_path] --userdir /tmp/nbtest42
--nbhome is a new option which is used to tell the launcher where NetBeans is
located (e.g extracted portable zip). You can store it with the alias if so desired.
nblj and nbln require the project to be built first. Simply build the project using
GraalVM CE 25 JDK (or later) and maven.
mvn clean verify or F11 using NetBeans
The native build step can be disabled with -P!native which allows building on regular JDKs.
launch beans with care!