Java bindings to the tree-sitter parsing library.
- Install JDK 22 and set
JAVA_HOME
to it - Download jextract and add it to your
PATH
git clone https://github.com/tree-sitter/java-tree-sitter
cd java-tree-sitter
git submodule init
mvn test
These alternatives support older JDK versions or Android:
- tree-sitter/kotlin-tree-sitter (JDK 17+, Android SDK 23+, Kotlin 1.9)
- bonede/tree-sitter-ng (JDK 8+)
- seart-group/java-tree-sitter (JDK 11+)
- AndroidIDEOfficial/android-tree-sitter (Android SDK 21+)