From 001c8487e929db30d6d569acafe992a8b20a8c64 Mon Sep 17 00:00:00 2001 From: Leonardo de Moura <leonardo@microsoft.com> Date: Thu, 29 Nov 2012 09:13:24 -0800 Subject: [PATCH] small change to be able to test java example on linux Signed-off-by: Leonardo de Moura <leonardo@microsoft.com> --- examples/java/JavaExample.java | 2 +- examples/java/README | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) 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<String, String> cfg = new HashMap<>(); + HashMap<String, String> cfg = new HashMap<String, String>(); 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