diff --git a/examples/java/JavaExample.java b/examples/java/JavaExample.java index 7e403fecd..d96553c19 100644 --- a/examples/java/JavaExample.java +++ b/examples/java/JavaExample.java @@ -2157,7 +2157,7 @@ class JavaExample p.SimpleExample(); { - HashMap cfg = new HashMap<>(); + HashMap cfg = new HashMap(); cfg.put("MODEL", "true"); cfg.put("PROOF_MODE", "2"); Context ctx = new Context(cfg); diff --git a/examples/java/README b/examples/java/README index 9dc513c2a..fa1f20a63 100644 --- a/examples/java/README +++ b/examples/java/README @@ -6,5 +6,10 @@ To build the example execute in the build directory. It will create JavaExample.class in the build directory, -which can be run via - java -cp com.microsoft.z3.jar;. JavaExample \ No newline at end of file +which can be run on Windows via + java -cp com.microsoft.z3.jar;. JavaExample + +On Linux and FreeBSD, we must use + LD_LIBRARY_PATH=. java -cp com.microsoft.z3.jar:. JavaExample + + \ No newline at end of file