X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e37c1e4bba9bb89cd2842f08cde998eb7f941d04..f9652ce82cfc59522683280b7cbcf1daf1b29180:/doc/doxygen/bindings.doc?ds=sidebyside diff --git a/doc/doxygen/bindings.doc b/doc/doxygen/bindings.doc index 0a8cbbdb3a..2ad4cd396d 100644 --- a/doc/doxygen/bindings.doc +++ b/doc/doxygen/bindings.doc @@ -1,9 +1,9 @@ /*! \page bindings Bindings -\section bindings_binding_Ruby Ruby Binding +\section MSG_Ruby Ruby Binding Check online for our specific [Simgrid-Ruby documentation](http://simgrid.gforge.inria.fr/documentation.html). -\section bindings_binding_Java Java Binding +\section MSG_Java Java Binding Simgrid-java is a java API that let you use [Simgrid](http://simgrid.gforge.inria.fr/) MSG API in your favorite language (java). Without it, you would be forced to use C or one of the other bindings provided. @@ -83,7 +83,7 @@ $ cmake . \subsubsection 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` and `libsimgrid` libraries +the generated `libsimgrid-java` and `libsimgrid` libraries into the `LD_LIBRARY_PATH`. Be careful on Mac, this variable is called `DYLD_LIBRARY_PATH` and not @@ -93,7 +93,7 @@ Be careful on Mac, this variable is called `DYLD_LIBRARY_PATH` and not $ export SIMGRID_ROOT="$HOME/Install/simgrid/" # change it to the path where you installed the SimGrid library $ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$SIMGRID_ROOT/lib $ cd examples -$ java -cp .:../simgrid.jar basic/BasicTest platform.xml basic/basicDeployment.xml +$ java -classpath .:../simgrid.jar basic/BasicTest platform.xml basic/basicDeployment.xml ~~~~ If you want to make these settings permanent even after a reboot, you @@ -179,7 +179,7 @@ grep GLOBAL_GUARDS patches/make/* -r # Finish the setup (cd patches/make; make setup && make force && make && make FORCE_VERSIONS=1 && echo "Sources are properly setup") -# If this last command failed, check your mercurial config within ~/.hgrc (see above) +# If this last command failed, check your mercurial config within ~/.hgrc (see above) ~~~~ -# Compile it all ~~~~{.sh} @@ -203,16 +203,16 @@ factory if your JVM support it, so you will just need to execute your simulation with the correct JVM. The selected context factory gets displayed automatically. ~~~~{.sh} -export LD_LIBRARY_PATH=/path/to/simgrid.so:/path/to/libSG_java.so +export LD_LIBRARY_PATH=/path/to/simgrid.so:/path/to/libsimgrid-java.so cd examples -$PATH_TO_COROUTINE_JVM/java -cp .:../simgrid.jar masterslave.Masterslave masterslave/ masterslaveDeployment.xml platform.xml +$PATH_TO_COROUTINE_JVM/java -classpath .:../simgrid.jar masterslave.Masterslave masterslave/ masterslaveDeployment.xml platform.xml ~~~~ Note that you may have to adjust the "coro.stacksPerThread" configuration option to run large simulations. The default is 100 and you want to increase it to run more processes. ~~~~{.sh} -$ $PATH_TO_COROUTINE_JVM/java -Dcoro.stacksPerThread=$STACKS_NUMBER -cp .:../simgrid.jar basic/BasicTest platform.xml basic/basicDeployment.xml +$ $PATH_TO_COROUTINE_JVM/java -Dcoro.stacksPerThread=$STACKS_NUMBER -classpath .:../simgrid.jar basic/BasicTest platform.xml basic/basicDeployment.xml ~~~~ If you reach the point where the creation of new simulated processes