Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Process kills now seems to work. May need some additional checking ...
[simgrid.git] / doc / install.doc
index 6ab4734..4b98b22 100644 (file)
@@ -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 <a href="http://simgrid.gforge.inria.fr/3.7/doc/installSimgrid.html">install Simgrid</a>). 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 <a href="http://simgrid.gforge.inria.fr/simgrid/3.7/doc/install.html">install
+     Simgrid</a>). 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 (<build_dir>/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