我在Ubuntu 16.04上安装smartgit
.../smartgit_7.1.3-0~eugenesan~xenial1_all.deb ..
显然,smartgit安装正常,但是当我启动时:
J:~$ smartgit
intx MaxJavaStackTraceDepth=-1 is outside the allowed range [ 0 ... 1073741823 ]
Improperly specified VM option 'MaxJavaStackTraceDepth=-1'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Java sems也没关系
J:~$ java -version
openjdk version "9-internal"
OpenJDK Runtime Environment (build 9-internal+0-2016-04-14-195526.buildd.src)
OpenJDK Server VM (build 9-internal+0-2016-04-14-195526.buildd.src, mixed mode)
J:~$
任何想法,可能出现什么问题?
答案 0 :(得分:4)
在bin/smartgit.sh
更改以下行:
_MISC_OPTS="-Xverify:none -XX:MaxJavaStackTraceDepth=-1 -Dsun.io.useCanonCaches=false"
到
_MISC_OPTS="-Xverify:none -XX:MaxJavaStackTraceDepth=1000000 -Dsun.io.useCanonCaches=false"
此解决方案已存在于SmartGit 7.2 Preview。