简体   繁体   English

使用mvnDebug崩溃并显示“无法两次加载此JVM TI代理错误”

[英]Using mvnDebug crashes with 'Cannot load this JVM TI agent twice error'

I was building a simple project, a hello world example with teserract [1]. 我当时正在构建一个简单的项目,这是teserract的一个世界示例[1]。 This worked fine in the Linux environment and when i tried it in the Mac it failed. 在Linux环境中,此方法运行良好,当我在Mac中尝试时,它失败了。 So i wanted to debug the build process and see what's wrong. 所以我想调试构建过程,看看有什么问题。 So i used, 所以我用过

mvnDebug clean install 

but im getting this error immediately after running this, 但是我在运行此命令后立即收到此错误,

ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options.
Error occurred during initialization of VM
agent library failed to init: jdwp

Im using java 1.8. 我正在使用Java 1.8。 So what does this error means ? 那么这个错误是什么意思呢?

[1] - https://github.com/nirojans/receipt-ocr [1] -https://github.com/nirojans/receipt-ocr

这意味着您正在使用重复的参数进行调试,请检查日志中的%JAVA_OPTIONS%并删除其中一个参数,它应该可以工作!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM