英文:
mvn install crashes jvm
问题
我在运行项目的 "mvn install" 命令时遇到了一个奇怪的问题。在执行 复制 web 应用资源 这一步骤时,Java 虚拟机崩溃了。我收到一个 Windows 弹窗,上面写着 Java 已停止工作。在控制台中没有看到任何错误消息,因此无法找到根本原因。感谢任何帮助。
英文:
I am facing a strange thing while running mvn install for a project. While executing the Copying webapp resources step the JVM crashed. I get a windows pop up saying Java has stopped working. I am not getting any error message in the console so that I can get hold of the root cause. Any help is appreciated.
答案1
得分: 0
尝试以下步骤:
- 在已安装的JRE中使用JDK而不是JRE。
Eclipse路径(Windows--首选项--Java--已安装的JRE) - 对于Maven,请使用以下选项:
clean install -Djava.net.preferIPv4Stack=true
(在运行为Maven构建---目标)
[如果在您的计算机上有可用的JVM崩溃报告,请尝试查找]
英文:
Try the below steps :
1. Use JDK instead of JRE in Installed JREs.
Eclipse Path (Windows--Preference--Java--Installed JREs )
2. Use this option for maven :
clean install -Djava.net.preferIPv4Stack=true
(in Run As Maven Build --- Goals)
[Try to find the JVM crash report if available in your machine]
专注分享java语言的经验与见解,让所有开发者获益!
评论