Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
msg.h lives in a subdir, actually
[simgrid.git] / doc / install.doc
1 /*! \page install Java Binding
2
3 \section bindings_binding_java_install How to install Simgrid-java
4
5 To use java with Simgrid you have to install some dependencies:
6  \li Simgrid (see <a href="http://simgrid.gforge.inria.fr/simgrid/3.7/doc/install.html">install
7      Simgrid</a>). You should set the SIMGRID_ROOT environment
8      variable to the path where you installed SimGrid.
9  \li Java JDK packages, such as sun-java6-jdk (with libgcj10-dev or
10 another version of gcj) or openjdk6.
11  
12 Then Download and install package Simgrid-java:
13 \verbatim
14 git clone git://scm.gforge.inria.fr/simgrid/simgrid-java.git
15 cd simgrid-java
16 cmake .
17 \endverbatim
18  
19 Cmake output
20 \verbatim
21 -- SITE        : Linux_2.6.38-8-generic_x86_64
22 -- BUILDNAME   : Simgrid-Java
23 -- Looking for lib SimGrid
24 -- Looking for lib SimGrid - found
25 -- Simgrid version : 3.6
26 -- Looking for gras.h
27 -- Looking for gras.h - found
28 -- Found Tesh: /home/user/Bureau/simgrid/git/bin/tesh
29 -- Found gras_stub_generator: /home/user/Bureau/simgrid/git/bin/gras_stub_generator
30 -- Java version 1.6.0.22 configured successfully!
31 -- Looking for jni.h
32 -- Looking for jni.h - found
33 -- Add flags -I/usr/lib/jvm/java-6-openjdk/include
34 -- Looking for jni_md.h
35 -- Looking for jni_md.h - found
36 -- Found javac: /usr/bin/javac
37 -- Found jar: /usr/bin/jar
38 -- Configuring done
39 -- Generating done
40 -- Build files have been written to: /home/user/workspace/simgrid-java/build
41 \endverbatim
42
43 \section bindings_binding_java_use How to use Simgrid-java
44
45 To execute the examples you need to add the path where you installed
46 the generated libSG_java library (<build_dir>/lib) and libsimgrid
47 ($SIMGRID_ROOT/lib) into the LD_LIBRARY_PATH.
48
49 Be careful on Mac, this variable is called DYLD_LIBRARY_PATH and not
50 LD_LIBRARY_PATH.
51
52 \verbatim
53 $ export SIMGRID_ROOT="$HOME/Install/simgrid/"
54 $ export SIMGRID_JAVA_ROOT="$HOME/workspace/simgrid-java"
55 $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SIMGRID_ROOT/lib:$SIMGRID_JAVA_ROOT/lib
56 $ cd examples
57 $ java -cp .:../simgrid.jar basic/BasicTest platform.xml basic/basicDeployment.xml
58 \endverbatim
59
60  
61  */