3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-06 17:44:08 +00:00

small change to be able to test java example on linux

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2012-11-29 09:13:24 -08:00
parent 30905da58c
commit 001c8487e9
2 changed files with 8 additions and 3 deletions

View file

@ -2157,7 +2157,7 @@ class JavaExample
p.SimpleExample(); p.SimpleExample();
{ {
HashMap<String, String> cfg = new HashMap<>(); HashMap<String, String> cfg = new HashMap<String, String>();
cfg.put("MODEL", "true"); cfg.put("MODEL", "true");
cfg.put("PROOF_MODE", "2"); cfg.put("PROOF_MODE", "2");
Context ctx = new Context(cfg); Context ctx = new Context(cfg);

View file

@ -6,5 +6,10 @@ To build the example execute
in the build directory. in the build directory.
It will create JavaExample.class in the build directory, It will create JavaExample.class in the build directory,
which can be run via which can be run on Windows via
java -cp com.microsoft.z3.jar;. JavaExample java -cp com.microsoft.z3.jar;. JavaExample
On Linux and FreeBSD, we must use
LD_LIBRARY_PATH=. java -cp com.microsoft.z3.jar:. JavaExample