[英]Java crashes when trying to open a .jar
I have a code that installs database pieces through a .jar file. 我有一个通过.jar文件安装数据库片段的代码。 A buddy of mine was installing the same code on the same OS on a different machine, and it installed fine. 我的一个伙伴正在另一台计算机上的同一操作系统上安装相同的代码,并且安装得很好。 Mine crashed after loading java.lang.ProcessImpl, but I can't figure out why. 加载java.lang.ProcessImpl后,我的飞机坠毁了,但我不知道为什么。 I have attached the next few lines of the log file from my buddy's computer, which worked, starting at the last line my log outputs. 我已经从好友的计算机上添加了日志文件的后几行,该行可以正常工作,从日志输出的最后一行开始。 I'm pretty new at messing with jars or java in general, so I'm not even sure what I can check to figure out this problem. 一般来说,我对使用jar或Java很陌生,所以我什至不确定我能检查出什么来解决这个问题。 Any helpful thoughts from the great Stack community? 伟大的Stack社区有什么有用的想法吗? Is there another way to open .jar files, maybe through netbeans? 是否有另一种方法可以通过Netbeans打开.jar文件?
//Here is the last line my computer runs. After this, it crashes out.
[Loaded java.lang.ProcessImpl from C:\Program Files\Java\jre1.8.0_144\lib\rt.jar]
[Loaded java.lang.ProcessImpl$2 from C:\Program Files\Java\jre1.8.0_144\lib\rt.jar]
[Loaded com.izforge.izpack.uninstaller.SelfModifier$StreamProxy from file:/D:/Scale/scale-6.2-data-setup.jar]
Jar files are just zip files. Jar文件只是zip文件。 You're on a windows machine so you can just change the extension and double click to open if you want to extract it and see what's in it. 您在Windows机器上,因此您可以更改扩展名并双击以打开它(如果要提取它并查看其中的内容)。
To see what's really going on, we'd need to see the WHOLE log including the dump. 要查看实际情况,我们需要查看包括转储在内的整个日志。 My guess is that you might have a JRE/JDK conflict where it's trying to load the jars of one version with another. 我的猜测是,您可能会在尝试将一个版本的jar加载到另一个版本的jar时遇到JRE / JDK冲突。 Depending on the version difference that could result in a JVM crash. 根据可能导致JVM崩溃的版本差异而定。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.