Skip to content

A demo calculator application for exploring the Java Native Interface developed as a short homework for the Introduction to Mobile Programming Course.

Notifications You must be signed in to change notification settings

jomarinb/CalculatorJNI

Repository files navigation

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

About

A demo calculator application for exploring the Java Native Interface developed as a short homework for the Introduction to Mobile Programming Course.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published