3
1
SystemsProgrammingAndOperat.../Codes/Group A/Assignment-A3
2024-10-14 23:12:47 +05:30
..
A3.c Added A3 code and updated link in README. 2024-10-14 23:12:47 +05:30
A3.java Added A3 code and updated link in README. 2024-10-14 23:12:47 +05:30
README.md Added A3 code and updated link in README. 2024-10-14 23:12:47 +05:30

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

  1. open-jdk (version 11 or higher)
  2. gcc
  3. Common sense

Steps

  1. Compile A3.java:
javac A3.java
  1. Generate header file:
javac -h . A3.java
  1. Compile C code:
gcc -shared -o libA3.so -fPIC -I"$JAVA_HOME/include" -I"$JAVA_HOME/include/linux" A3.c
  1. Run program:
java -Djava.library.path=. A3