我正在使用以下命令在我的系统中运行 emma 代码覆盖工具,
D:\DeadLockDetection\DDinDOS>java -XX:UseSplitVerifier -cp emma.jar emmarun -jar process-3-1.0.jar
运行上述命令时出现以下错误,
Missing +/- setting for VM option 'UseSplitVerifier'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
我该如何解决这个问题。
最佳答案
错误很明显。你must use
java -XX:+UseSplitVerifier
或 java -XX:-UseSplitVerifier
编辑:UseSplitVerifier 是 Oracle JVM 的 boolean 选项。 :
之后的-
或+
。减号禁用该选项,加号启用该选项。
从上面的链接...
Boolean options are turned on with -XX:+ and turned off with -XX:-. Numeric options are set with -XX:=. Numbers can include 'm' or 'M' for megabytes, 'k' or 'K' for kilobytes, and 'g' or 'G' for gigabytes (for example, 32k is the same as 32768). String options are set with -XX:=, are usually used to specify a file, a path, or a list of commands
关于java - VM 选项 'UseSplitVerifier' 缺少 +/- 设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27103691/