Home > JAVA JIF > JIF (Java Information Flow) Compiler Building Using Ant in ubuntu and windows

JIF (Java Information Flow) Compiler Building Using Ant in ubuntu and windows

JIF Compiler Building Using Ant in ubuntu and windows:

JIF Compiler Building

  1. Ubuntu
  2. Windows

a. Ubuntu

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

  1. export JIF=/home/mohsin/jif-3.3.1
  2. export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.15/
  3. export ANT_HOME=/usr/bin/ant
  4. export CLASSPATH=.
  5. export PATH=$JAVA_HOME:$PATH: $JIF/bin
  6. 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

b. Windows

All the above steps are same; just for native lib execution by c++ compiler. We use Cygwin.

Categories: JAVA JIF
  1. Sara
    June 2, 2012 at 9:00 pm

    hi
    good job
    tnx
    sara

    was very useful for me
    ;D

  2. sara
    June 3, 2012 at 12:35 pm

    export CLASSPATH=$CLASSPATH:$JIF/test/

    replase test by tests !

  1. February 23, 2010 at 11:03 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: