Le 04/12/12 17:35, SAM a écrit :
je viens de l'essayer. Il y a une erreur dans le script de lancement.
tel qu'il est le script ne trouve pas "javaVersionCheck.sh" quand on
lance l'appli en double cliquant sur "runX3dEditMac.sh.command".
j'ai déplacé les deux lignes :
THISDIR=`dirname "$0"`
cd "$THISDIR"
vers le haut, ce qui donne :
#!/bin/sh
# Shell file to run X3D-Edit 3.2
THISDIR=`dirname "$0"`
cd "$THISDIR"
# First make sure we're running 1.6, will bomb if not
source javaVersionCheck.sh
# Memory settings for X3D-Edit 3.2: see ReadmeX3D-EditMemorySettings.txt
# The default settings for a zipped app exist in
x3deditor32/etc/x3deditor32.conf
# The stack (-Xss2m) setting is under evaluation and may need
# increasing because of recursive routines in XML and XSLT processing.
# Xms768m allocates 768 Mb to the Java heap on startup. Xmx768m sets a
limit on incremental allocations to the heap.
# If your usage case will normally always require the maximum, set both
and performance will slightly increase
# because incremental allocations (to the OS) are eliminated.
# Examples:
# -J-Xss2m
# -J-Xss2m -J-Xmx768m
# -J-Xss2m -J-Xms768m -J-Xmx768m
# and do it this way (showing alternative values for ms and mx):
MEMORYSETTINGS0=-J-Xss2m -J-Xms32m -J-Xmx2g -J-XX:PermSize=32m
-J-XX:MaxPermSize=384m -J-Xverify:none
#MEMORYSETTINGS1='-J-Xms1g'
#MEMORYSETTINGS2='-J-Xmx1g'
LOOKANDFEELSETTINGS=-J-Dapple.awt.graphics.UseQuartz=true
-J-Dapple.laf.useScreenMenuBar=true -J-Dswing.aatext=true
GCSETTINGS=-J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled
-J-XX:+UseAdaptiveSizePolicy
# Use the quoting mess to handle spaces in the path
cd x3deditor32/bin
sh x3deditor32 -J-client -J-Dsun.java2d.opengl=true
-J-Dorg.netbeans.ProxyClassLoader.level=1000 $GCSETTINGS
$LOOKANDFEELSETTINGS "$MEMORYSETTINGS0" "$MEMORYSETTINGS1"
"$MEMORYSETTINGS2" -J-Djava.endorsed.dirs=endorsedjars
et là ça roule MAIS avec les messages d'erreurs :
/Users/yt/Downloads/201207091018_X3D-Edit3.2/runX3dEditMac.sh.command:
line 24: -J-Xms32m: command not found
/Users/yt/Downloads/201207091018_X3D-Edit3.2/runX3dEditMac.sh.command:
line 27: -J-Dapple.laf.useScreenMenuBar=true: command not found
/Users/yt/Downloads/201207091018_X3D-Edit3.2/runX3dEditMac.sh.command:
line 28: -J-XX:+CMSClassUnloadingEnabled: command not found
les lignes 24, 27 et 28 ne sont pas des commandes mais des paramétrages.
peut-être faut-il les mettre entre "" ?
OUI, ça roule sans erreur dans ce cas :
#!/bin/sh
# Shell file to run X3D-Edit 3.2
THISDIR=`dirname "$0"`
cd "$THISDIR"
# First make sure we're running 1.6, will bomb if not
source javaVersionCheck.sh
# Memory settings for X3D-Edit 3.2: see ReadmeX3D-EditMemorySettings.txt
# The default settings for a zipped app exist in
x3deditor32/etc/x3deditor32.conf
# The stack (-Xss2m) setting is under evaluation and may need
# increasing because of recursive routines in XML and XSLT processing.
# Xms768m allocates 768 Mb to the Java heap on startup. Xmx768m sets a
limit on incremental allocations to the heap.
# If your usage case will normally always require the maximum, set both
and performance will slightly increase
# because incremental allocations (to the OS) are eliminated.
# Examples:
# -J-Xss2m
# -J-Xss2m -J-Xmx768m
# -J-Xss2m -J-Xms768m -J-Xmx768m
# and do it this way (showing alternative values for ms and mx):
MEMORYSETTINGS0="-J-Xss2m -J-Xms32m -J-Xmx2g -J-XX:PermSize=32m
-J-XX:MaxPermSize=384m -J-Xverify:none"
#MEMORYSETTINGS1='-J-Xms1g'
#MEMORYSETTINGS2='-J-Xmx1g'
LOOKANDFEELSETTINGS="-J-Dapple.awt.graphics.UseQuartz=true
-J-Dapple.laf.useScreenMenuBar=true -J-Dswing.aatext=true"
GCSETTINGS="-J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled
-J-XX:+UseAdaptiveSizePolicy"
# Use the quoting mess to handle spaces in the path
cd x3deditor32/bin
sh x3deditor32 -J-client -J-Dsun.java2d.opengl=true
-J-Dorg.netbeans.ProxyClassLoader.level=1000 $GCSETTINGS
$LOOKANDFEELSETTINGS "$MEMORYSETTINGS0" "$MEMORYSETTINGS1"
"$MEMORYSETTINGS2" -J-Djava.endorsed.dirs=endorsedjars