我正在尝试使 X3D-Edit 3.3 工作,将其安装在 OSX 10.9.1 上,但我无法使其正常工作。
当我运行“runX3dEditMac.sh.command”脚本时,X3D-Edit 成功加载,用户界面似乎还可以,但是一旦我开始使用它,它就会在我关闭 Xj3d 窗口时冻结,而且调色板图标甚至都没有工作(调色板面板中的第一组除外)。
启动 X3D-Edit 后,我在终端中注意到这些行:
./runX3dEditMac.sh.command: line 22: -J-Xms32m: command not found
./runX3dEditMac.sh.command: line 25: -J-Dapple.laf.useScreenMenuBar=true: command not found
./runX3dEditMac.sh.command: line 26: -J-XX:+CMSClassUnloadingEnabled: command not found
默认的 runX3dEditMac.sh.command 脚本代码如下:
#!/bin/sh
# Shell file to run X3D-Edit 3.2
# 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
THISDIR=`dirname "$0"`
cd "$THISDIR"
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
我在这里读到http://edutechwiki.unige.ch/en/X3D-Edit#Tips我应该使用 32 位 JDK 但我找不到任何适用于 OSX 的 JDK 7 32 位版本!
如何解决?