Skip to content

Latest commit

 

History

History
24 lines (12 loc) · 503 Bytes

README.md

File metadata and controls

24 lines (12 loc) · 503 Bytes

CalculatorJNI

Calculator application which links Java GUI with C coded arithmetics.

Instructions:

  1. Compile the Java code running:

javac Arithmetics.java CalculatorForm.java

  1. Generate header file running:

javah Arithmetics

  1. 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

  1. Execute running:

java CalculatorForm