X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6e1b69142e3c420c6545df0261f4e348dd87bed9..ed49d3fb7b2cab0c93fb3e1d686e3041598b70d4:/doc/install.doc diff --git a/doc/install.doc b/doc/install.doc index d9e802a91e..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 @@ -40,14 +43,16 @@ Cmake output \section bindings_binding_java_use How to use Simgrid-java -For execute examples you need to export LD_LIBRARY_PATH to generated libSG_java library -(/lib) and libsimgrid (SIMGRID_ROOT). +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. -Take care on mac export DYLD_LIBRARY_PATH and not 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/workspace/simgrid-java" +$ 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