Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Export JAVA_LIBRARY_PATH for testing.
authornavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 2 Nov 2010 15:38:12 +0000 (15:38 +0000)
committernavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 2 Nov 2010 15:38:12 +0000 (15:38 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8496 48e7efb5-ca39-0410-a469-dd3cf9ba447f

buildtools/Cmake/test_java.sh

index 2f4c858..e0a740f 100755 (executable)
@@ -1,10 +1,9 @@
 #! /bin/sh
-echo "\n"
-export CLASSPATH=$3:$3/simgrid.jar:$CLASSPATH
-export LD_LIBRARY_PATH=$3/lib:$LD_LIBRARY_PATH
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$3/lib
+export JAVA_LIBRARY_PATH=$JAVA_LIBRARY_PATH:$3/lib
 cd $1
-echo "CLASSPATH        = $CLASSPATH"
-echo "LD_LIBRARY_PATH  = $LD_LIBRARY_PATH"
+echo "LD_LIBRARY_PATH   = $LD_LIBRARY_PATH"
+echo "JAVA_LIBRARY_PATH = $JAVA_LIBRARY_PATH"
 pwd
-echo "java $2 *platform.xml *deployment.xml"
-java $2 *platform.xml *deployment.xml
+echo "java -cp .:$3/simgrid.jar $2 *platform.xml *deployment.xml"
+java -cp .:$3/simgrid.jar $2 *platform.xml *deployment.xml