X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/44dc7de69b07492195a33017f07f03b6d75c04d3..ed49d3fb7b2cab0c93fb3e1d686e3041598b70d4:/doc/install.doc?ds=sidebyside diff --git a/doc/install.doc b/doc/install.doc index 6ab47347ab..4b98b22176 100644 --- a/doc/install.doc +++ b/doc/install.doc @@ -3,15 +3,18 @@ \section bindings_binding_java_install How to install Simgrid-java To use java with Simgrid you have to install some dependencies: - \li Simgrid (see install Simgrid). Be sure having set the environment variable "SIMGRID_ROOT". - \li Java packages: sun-java6-jdk and libgcj10-dev. If you cannot find the -libgcj10-dev, try another version. + \li Simgrid (see install + Simgrid). You should set the SIMGRID_ROOT environment + variable to the path where you installed SimGrid. + \li Java JDK packages, such as sun-java6-jdk (with libgcj10-dev or +another version of gcj) or openjdk6. Then Download and install package Simgrid-java: \verbatim git clone git://scm.gforge.inria.fr/simgrid/simgrid-java.git cd simgrid-java -cmake . +cmake -DCMAKE_INSTALL_PREFIX=$HOME/Install/simgrid-java/ . +make install \endverbatim Cmake output @@ -37,5 +40,23 @@ Cmake output -- Generating done -- Build files have been written to: /home/user/workspace/simgrid-java/build \endverbatim + +\section bindings_binding_java_use How to use Simgrid-java + +To execute the examples you need to add the path where you installed +the generated libSG_java library (/lib) and libsimgrid +($SIMGRID_ROOT/lib) into the LD_LIBRARY_PATH. + +Be careful on Mac, this variable is called DYLD_LIBRARY_PATH and not +LD_LIBRARY_PATH. + +\verbatim +$ export SIMGRID_ROOT="$HOME/Install/simgrid/" +$ export SIMGRID_JAVA_ROOT="$HOME/Install/simgrid-java" +$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SIMGRID_ROOT/lib:$SIMGRID_JAVA_ROOT/lib +$ cd examples +$ java -cp .:../simgrid.jar basic/BasicTest platform.xml basic/basicDeployment.xml +\endverbatim + */ \ No newline at end of file