Skip to content

tree-sitter/java-tree-sitter

Repository files navigation

Java Tree-sitter

CI central docs

Java bindings to the tree-sitter parsing library.

Building

  • Install JDK 22 and set JAVA_HOME to it
  • Download jextract and add it to your PATH
  • Install the tree-sitter & tree-sitter-java libraries
git clone https://github.com/tree-sitter/java-tree-sitter
cd java-tree-sitter
git submodule update --init
mvn test

Alternatives

These alternatives support older JDK versions or Android: