.. | ||
A3.c | ||
A3.java | ||
README.md |
Steps to run this code
These are the steps to run code for Assignment-A3.
Important
I've tested this on Linux, thus I've included instructions for the same.
Prerequisites
- open-jdk (version 11 or higher)
- gcc
- Common sense
Steps
- Compile
A3.java
:
javac A3.java
- Generate header file:
javac -h . A3.java
- Compile C code:
gcc -shared -o libA3.so -fPIC -I"$JAVA_HOME/include" -I"$JAVA_HOME/include/linux" A3.c
- Run program:
java -Djava.library.path=. A3