How to solve could not create the virtual machine error of Java Virtual Machine Launcher?

前端 未结 13 2063
星月不相逢
星月不相逢 2020-12-08 09:46

I am working on java wicket framework and Apache tomcat. Here I have Problem when i tried
to start tomcat it shows Java Virtual Machine Launcher pop window \"Could not c

相关标签:
13条回答
  • 2020-12-08 10:06

    On ubuntu (version 18), some application support java 8 and do not support java 11. If this is the case , you can switch to java 8 by following instruction on below topic : https://askubuntu.com/questions/1133216/downgrading-java-11-to-java-8

    0 讨论(0)
  • 2020-12-08 10:07

    Install latest java jdk and your problem will be solved.

    0 讨论(0)
  • 2020-12-08 10:11

    The error does not say much and lot of things can be wrong. One thing that was wrong in my case was following

    -x.DargName=108352123
    

    Which is clearly wrong and should have been

    -Dx.argName=108352123
    
    0 讨论(0)
  • 2020-12-08 10:11

    I was facing the same issue while i was using JDK 1.8.0_05 64 bit and eclipse-jee-oxygen-3a-win32-x86_64 on Windows 64 bit Operating System.

    Finally i resolved the issue by changing JDK version jdk1.8.0_05 to jdk1.8.0_172

    0 讨论(0)
  • 2020-12-08 10:17

    I was facing the same issue, I was using tomcat 8.5 with Java 10.Finally I installed Java 8(1.8.0_171) and it's working fine without any issues

    0 讨论(0)
  • 2020-12-08 10:19

    Error:

    sony@sony-VPCEH25EN:~$ java --version
    Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar 
    Unrecognized option: --version
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.
    

    Solution: Remove extra hyphen '-'

    sony@sony-VPCEH25EN:~$ java -version
    Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar 
    java version "1.8.0_101"
    Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
    Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
    
    0 讨论(0)
提交回复
热议问题