Calculator application which links Java GUI with C coded arithmetics.
Instructions:
- Compile the Java code running:
javac Arithmetics.java CalculatorForm.java
- Generate header file running:
javah Arithmetics
- Mac OS X, running >= JDK 1.7, compile C library for Unix systems (.so):
gcc -I /System/Library/Frameworks/JavaVM.framework/Versions/A/Headers -shared -o libarithmetics.so -fPIC libArithmetics.c
- Execute running:
java CalculatorForm