简体   繁体   English

尝试打开.jar时Java崩溃

[英]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.

相关问题 尝试打开文本文件时 java 中的 Android 应用程序崩溃 - Android app in java crashes when trying to open a text file Maven:尝试使用Intellij或通过jar使用Java命令从资源中打开文件时,java.io.FileNotFoundException - maven: java.io.FileNotFoundException when trying to open file from resources with Intellij or using java command with jar 尝试在IDE外部打开已编译.jar时出现问题 - Issue with compiled .jar when trying to open it outside of IDE Java SpringBoot jar在CentOS上崩溃 - java SpringBoot jar crashes on CentOS Android Studio (Java) RecyclerView 在尝试解析 JSON 时崩溃 - Android Studio (Java) RecyclerView crashes when trying to parse JSON 作为可执行jar运行时无法打开Java应用程序 - Can't open java application when ran as executable jar java.lang.NoClassDefFoundError:尝试运行 jar 时 - java.lang.NoClassDefFoundError: when trying to run jar 尝试在Debian Jessie上执行.jar时出现Java异常错误 - Java Exceptions error when trying to execute .jar on Debian Jessie 尝试运行可执行jar文件时出现Java错误 - Java error when trying to run executable jar files 尝试运行 Java jar 文件时出现“ClassFormatError: Incompatible magic value” - “ClassFormatError: Incompatible magic value” when trying to run Java jar file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM