在 Eclipse 中调试时这个错误是什么意思?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6513808/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 16:31:25  来源:igfitidea点击:

What does this error mean in Eclipse when debugging?

javaeclipse

提问by Ashley

When I try to debug this error is reported:

当我尝试调试时报告此错误:

ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2 JDWP exit error AGENT_ERROR_NO_JNI_ENV(183): [../../../src/share/back/util.c:820]

ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2 JDWP exit error AGENT_ERROR_NO_JNI_ENV(183): [../../../src/share/back/util.c:820 ]

回答by pramod

Put System.exit(0); as the last statement of main().

把 System.exit(0); 作为 main() 的最后一条语句。

回答by Kal

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6476706

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6476706

Its a known bug. That bug has a listing of possible workarounds to your problem.

它是一个已知的错误。该错误列出了您的问题的可能解决方法。

回答by Amit Yadav

When you have this kind of error The TypeSystemHolder.class generated by WSDL2Java is not be placed in your classpath in order to avoid this error.

当您出现此类错误时,WSDL2Java 生成的 TypeSystemHolder.class 未放置在您的类路径中以避免此错误。

Please copy TypeSystemHolder.class from "resource/schemaorg_apache_xmlbeans/system/s68C41DB812F52C975439BA10FE4FEE54" folder.

请从“resource/schemaorg_apache_xmlbeans/system/s68C41DB812F52C975439BA10FE4FEE54”文件夹中复制TypeSystemHolder.class。

And Paste TypeSystemHolder.class file into your classpath folder (build/classes/schemaorg_apache_xmlbeans/system/s68C41DB812F52C975439BA10FE4FEE54) folder

并将 TypeSystemHolder.class 文件粘贴到您的类路径文件夹(build/classes/schemaorg_apache_xmlbeans/system/s68C41DB812F52C975439BA10FE4FEE54)文件夹中