No description
Find a file
2024-06-25 18:05:19 +02:00
agent Finally working it is! 2024-06-25 18:05:19 +02:00
lib Finally working it is! 2024-06-25 18:05:19 +02:00
rustlib Finally working it is! 2024-06-25 18:05:19 +02:00
.gitignore stil WIP 2024-06-20 20:55:42 +02:00
pom.xml working now this is 2024-06-23 17:47:35 +02:00
README.md Finally working it is! 2024-06-25 18:05:19 +02:00

Experiment with java22 and Rust to monitor exceptions in a JVM

Running:

  • Update the path to the rust lib (temp fix) in ExceptionLogger for your setup
  • mvn clean install
  • cd rustlib; cargo build
  • create a minimal class in a separate project
public class Main {
    public static void main(String[] args) throws Throwable {
        throw new Throwable();
    }
}
  • run it with (adjust paths):
java22 -javaagent:$EXCEPTIONAL_PROJECT/exceptional/agent/target/exceptional-agent-1.0-SNAPSHOT.jar --enable-preview -classpath $YOUR_CLASSPATH Main