JIF (Java Information Flow) Compiler Building Using Ant in ubuntu and windows
JIF Compiler Building Using Ant in ubuntu and windows:
JIF Compiler Building
I. Download the JIF compiler from http://www.cs.cornell.edu/jif/
II. Save in ur folder, in my case /home/mohsin/jif-3.3.1/
III. Use the command $sudo unzip /home/mohsin/jif-3.3.1
IV. Set the path of JIF Environment Variable using this command $export JIF=/home/mohsin/jif-3.3.1
V. Now install Apache Ant, java-6-sun-1.6, g++ using command sudo sudo apt-get install Package_Name
VI. After installing above programming software, set the following environment using following command
- export JIF=/home/mohsin/jif-3.3.1
- export JAVA_HOME=/usr/lib/jvm/java-6-sun-126.96.36.199/
- export ANT_HOME=/usr/bin/ant
- export CLASSPATH=.
- export PATH=$JAVA_HOME:$PATH: $JIF/bin
- export CLASSPATH=$CLASSPATH:$JIF/test/
VII. Run $ ant configure; This ensures that the classpath is set appropriately, and creates the executable scripts $JIF/bin/jifc and $JIF/bin/jif.
VIII. Run $ ant jif-runtime; This compiles the $JIF/rt-src directory. Some of the code in this directory is C++ code, and the compilation of this code is platform-specific. Jif requires the C++ compiler g++ to be available to compile this code.
IX. Run $ ant; This compiles the $JIF/src, $JIF/sig-src and $JIF/lib-src directories. The resulting .class files for the source code in $JIF/src, $JIF/sig-src and $JIF/lib-src will be stored in $JIF/classes, $JIF/sig-classes and $JIF/lib-classes respectively.
X. You are now ready to try out Jif
All the above steps are same; just for native lib execution by c++ compiler. We use Cygwin.