mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 13:29:11 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			546 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			546 B
		
	
	
	
		
			Text
		
	
	
	
	
	
A small example using the Z3 Java bindings.   
 | 
						|
 | 
						|
To build the example, configure Z3 with the --java option to scripts/mk_make.py, build via  
 | 
						|
   make examples
 | 
						|
in the build directory.
 | 
						|
 | 
						|
It will create JavaExample.class in the build directory,
 | 
						|
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
 | 
						|
On macOS, the corresponding option is DYLD_LIBRARY_PATH:
 | 
						|
   DYLD_LIBRARY_PATH=. java -cp com.microsoft.z3.jar:. JavaExample  
 |