BIN_DIR=/home/btech/Project/bin/
javac Cclass.java
javah Cclass
javah -stubs Cclass
gcc  -c -fPIC  -I /home/btech/java/jdk1.1.1/include -I /home/btech/java/jdk1.1.1/include/genunix   -I /home/btech/java/jdk1.1.1/include/green_threads/include t.c
gcc  -c -fPIC  -I /home/btech/java/jdk1.1.1/include -I /home/btech/java/jdk1.1.1/include/genunix   -I /home/btech/java/jdk1.1.1/include/green_threads/include Cclass.c

ld  -Bdynamic -shared  -o libkill.so Cclass.o  t.o /usr/lib/libdl.a

javac a.java

# moving the class to the BIN directory
mv  *.class "$BIN_DIR";

# moving the .so to the BIN directory
mv  *.so    "$BIN_DIR";

# removing the .o files
rm *.o;

