jtop is an experimental, interactive process viewer, just like the awesome htop. Unlike htop, jtop is written in pure Java (who would have guessed…) and makes use of the new Java 22 Foreign Function & Memory API, where needed.
It will never be as feature-complete as htop, of course. This is just a showcase of what you can do with Java 22.
Table of Contents
To compile, all you need is Java 22 or later on your system.
Point the environment variable JAVA_HOME
to it.
For example, when using sdkman, just install java by executing:
sdk install java 22.0.1-tem
sdk use java 22.0.1-tem
Then run the build with tests:
./mvnw verify
The app can then be executed like so:
./app/target/jreleaser/assemble/jtop/java-archive/work/*/bin/jtop