2
1
SystemsProgrammingAndOperat.../Codes/Group A/Assignment-A3/README.md

551 B

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