#1 Le 07/01/2007, à 22:08
- thrawn
[RESOLU]MediaLibrary (appli Java) pb fonctionnement Dapper -> Edgy
Bonjour
Depuis que je suis passé sous Edgy, Medialibrary ne fonctionne plus.
L'appli est copiée sur une partition à part avec la même location (/media/data/Softs/MediaLibrary/) sur les 2 OS (Edgy et Dapper). J'ai les mêmes versions de Java d'installé (1.4) (que j'ai désinstallé/réinstallé sous Edgy), les répertoires d'installations (/usr/lib/j2se/1.4/) font la même taille à l'octet près (57,588,124).
Quand je lance l'appli, j'ai le message suivant :
toto@toto-desktop:/media/data/Softs/MediaLibrary$ ./medialib.sh
./scripts/run.sh: 3: source: not found
./scripts/run.sh: 5: medialib.gui.MediaLibrary: not found
Le contenu de medialib.sh :
#! /bin/sh
./scripts/run.sh $*
Le contenu de ./scripts/run.sh :
#! /bin/sh
source ./scripts/variables.sh
$JAVARUN medialib.gui.MediaLibrary $*
Le contenu de ./scripts/variables.sh :
#! /bin/sh
# _____________________
# | |
# | JDK or JRE HOME |
# |_____________________|
if test "$JAVA_HOME" = ""; then
export JAVA_HOME=/usr/lib/j2se/1.4/
fi
# Do no modify text below
# ---------------------------
if test ! -r "$JAVA_HOME/bin/java"; then
if test "$JAVA_HOME" = ""; then
echo ERROR: JAVA_HOME variable is not set
fi
if test "$JAVA_HOME" != ""; then
echo ERROR: JAVA_HOME variable is not correctly set $JAVA_HOME
fi
exit
fi
# $~dp0 is the path that contains the current script
export ROOT=`dirs -l`
export LIB_ROOT=$ROOT/lib
export PATH=$PATH:$LIB_ROOT
# Set the java classpath
# ----------------------
export CLASSPATH=$ROOT/classes
export CLASSPATH=$CLASSPATH:$ROOT/resources
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/rt.jar
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/tools.jar
for i in $LIB_ROOT/*.jar; do
export CLASSPATH=$CLASSPATH:$i
done
for i in $LIB_ROOT/*.zip; do
export CLASSPATH=$CLASSPATH:$i
done
# Java launch command
# -------------------
# -verbose:gc
export JAVA_OPTIONS=-Xfuture\ -Xmixed\ -Xmx128m\ -classpath\ $CLASSPATH\ -Djava.library.path=$LIB_ROOT
export JAVARUN="$JAVA_HOME/bin/java $JAVA_OPTIONS"
export JAVARUNW="$JAVA_HOME/bin/javaw $JAVA_OPTIONS"
J'ai essayé avec java1.5, et aussi de mettre le lien du Java de Dapper sous Edgy sans succès.
Avez-vous des idées?
Merci d'avance
Dernière modification par thrawn (Le 17/04/2008, à 21:20)
Celui qui renonce à devenir meilleur cesse déjà d'être bon.
Hors ligne
#2 Le 15/04/2008, à 20:52
- wodor
Re : [RESOLU]MediaLibrary (appli Java) pb fonctionnement Dapper -> Edgy
change
#! /bin/sh
to
#! /bin/bash
in the top of each script
it worked for me
#3 Le 15/04/2008, à 23:12
- thrawn
Re : [RESOLU]MediaLibrary (appli Java) pb fonctionnement Dapper -> Edgy
Bonjour
Ca marche sous Gutsy
Un grand merci pour cette réponse à un post ancien qui était toujours d'actualité.
Dernière modification par thrawn (Le 17/04/2008, à 21:21)
Celui qui renonce à devenir meilleur cesse déjà d'être bon.
Hors ligne