h2. Preliminary You can get the Java interface from here. Put it somewhere and extract with {{{tar -xvf <filename.tar.gz>}}} Please also make sure that you have a proper version of a Java compiler with the JNI interface and that the environment variable $JDK_ROOT points to it. h2. Make sure you have the pythia version you want The distribution contains the file {{{evtgenpythiaisajet/pythia6228.f}}}. You can replace that file with your favourite version of Pythia. h2. Build the Program h3. gcc3 If you have an older version of gcc, you most likely need to link against the g2c library. If you have the library, execute {{{g++ -shared -I$JDK_ROOT/include -I$JDK_ROOT/include/linux *.cpp *.f -lg2c -o ../libpythiaevtgen.so}}} h3. gcc4 Newer versions of gcc come with the gfortran library. You can build the program with {{{g++ -shared -I$JDK_ROOT/include -I$JDK_ROOT/include/linux *.cpp *.f -lgfortran -o ../libpythiaevtgen.so}}} |