public class Launcher
extends java.lang.Object
Launcher runs Venice scripts or apps and starts the REPL.
The launcher is configured as the Venice JAR's main-class.
Running scripts:
java -jar venice-1.9.7.jar -script "(+ 1 1)"
Running a REPL:
java \
-server \
-Xmx6G \
-XX:-OmitStackTraceInFastThrow \
-cp "libs/*" \
com.github.jlangch.venice.Launcher \
-repl \
-colors
Launcher command line options:
-loadpath path defines a load path
E.g.: -loadpath "/users/foo/scripts;/users/foo/res"
-macroexpand turns up-front macro expansion on, resulting in a
much better performance
-file script loads the script to run from a file
E.g.: -file ./test.venice
-cp-file res loads the script to run from the classpath
E.g.: -cp-file com/github/jlangch/venice/test.venice
-script script run a script
E.g.: -script "(+ 1 10)"
-app app run a Venice app
E.g.: -app test-app.zip
-repl start a REPL
-help prints a help
Note: The options '-file', '-cp-file', '-script', '-app', and '-repl' exclude each other
| Constructor and Description |
|---|
Launcher() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args) |