java - VM 选项 'UseSplitVerifier' 缺少 +/- 设置

标签 java jvm emma

我正在使用以下命令在我的系统中运行 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:+UseSplitVerifierjava -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/

相关文章:

java - 从 URLConnection 读取(php 文件)

java - 如何从 NetBeans 中的 Javadoc 中排除特定包?

java - 从 Emma 代码覆盖率报告中过滤 junit 测试类

java - JTree 不会自动扩展,Swing 嵌入到 SWT 中

java - 用于将集合分组的 OO 模式

java - 使用 32 位 java 编译器生成的 .class 文件可以在具有 64 位 JVM 的 64 位系统上使用吗?

java - 为什么存在invokeVirtual时需要invokeSpecial

java - 在 Android 上运行 Java 字节码 - 基于 DalvikVM 的 Sun JVM

java - EMMA 不会涵盖我的项目之一

android - Android 的代码覆盖率