Getting started
Jumper needs Java 21 or newer.
Try it from the command line
Download jmp.jar from Releases and write hello.jmp:
jumper
dyn name = "world";
println("Hello, " + name + "!");Run it:
java -jar jmp.jar hello.jmpOther ways to run code:
java -jar jmp.jar REPL: type code line by line
java -jar jmp.jar -e "println(6 * 7);" one line of code
java -jar jmp.jar --check hello.jmp report errors without runningAdd it to a Java project
Jumper is published through JitPack. Tag is a release tag, e.g. v0.11.1.
kotlin
repositories {
mavenCentral()
maven("https://jitpack.io")
}
dependencies {
implementation("com.github.jumper-lang:jumper:Tag")
}groovy
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'com.github.jumper-lang:jumper:Tag'
}xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.jumper-lang</groupId>
<artifactId>jumper</artifactId>
<version>Tag</version>
</dependency>Run a script from Java:
java
ScriptEngine jumper = new ScriptEngineManager().getEngineByName("jumper");
jumper.put("name", "world");
jumper.eval("println(\"Hello, \" + name);");To pass your objects to scripts, call the functions they declare and restrict what they may do, see Embedding and Access policies.
Editors
- IntelliJ IDEA - plugin Jumper Language (jumper-intellij)
- VS Code - extension Jumper Language (jumper-vscode)
- Neovim - jumper.nvim
More in Tools.