JVMXM008:在线程“main”中初始化 System ClassException 时发生错误无法创建 Java 虚拟机
我无法在特定文件夹中执行 java 命令,抛出如下错误
JVMXM008: Error occured while initialising System ClassException in thread "main" Could not create the Java virtual machine.
对于同一用户,我可以在主目录中运行 java,但无法在应用程序配置目录中运行。
echo $JAVA_HOME
/usr/java14
java -version
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 IBM AIX build ca142-20080515 (SR11) (JIT enabled: jitc))
I am unable to execute the java command in a specific folder , throwing error as below
JVMXM008: Error occured while initialising System ClassException in thread "main" Could not create the Java virtual machine.
With same user, I am able to run java in home directory but I am not able to run in application config directory.
echo $JAVA_HOME
/usr/java14
java -version
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 IBM AIX build ca142-20080515 (SR11) (JIT enabled: jitc))
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您似乎在“特定文件夹”中没有适当的权限来访问启动 JVM 所需的资源。您要么需要获得权限(首选),要么以 root 身份运行。
It appears that you do not have appropriate permissions in the 'specific folder' to access resources needed to start the JVM. You either need to get permissions(preferred) or run as root.