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

前端 未结 13 2062
星月不相逢
星月不相逢 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 09:53

    I was facing the same issue while i was using "jdk-10.0.1_windows-x64_bin" and eclipse-jee-oxygen-3a-win32-x86_64 on Windows 64 bit Operating System.

    But Finally i resolved this issue by changing my jdk to "jdk-8u172-windows-x64", Now its working fine. @Thanks

    0 讨论(0)
  • 2020-12-08 09:55
    • Tap on Windows-Pause to open the System Control Panel applet. You can alternatively open the control panel manual to go there if you prefer it that way. Click on advanced system settings on the left.
    • Select environmental variables here.
    • Click on new under System Variables.
    • Enter '_JAVA_OPTIONS' as the variable name.
    • Enter '-Xmx1024M' as the variable value.
    • Click ok twice.
    0 讨论(0)
  • 2020-12-08 09:56

    Edit your Catlina.bat so that your -Xmx settings are less than your physical memory

    See Tomcat 7: How to set initial heap size correctly?

    0 讨论(0)
  • 2020-12-08 09:59

    I was also facing this issue when we upgraded from java 8 to java 10. I solved by removing -Djava.endorsed.dirs="C:\Program Files\Apache Software Foundation\Tomcat 8.5\endorsed" from the argument.

    0 讨论(0)
  • 2020-12-08 09:59

    May be this can help you- Add the system variable _JAVA_OPTIONS and in the "new variable value" add "-Xmx1024M" Xmx sets the maximum heap memory size

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

    If none of the other options works, then this could be an issue with the version of the JDK itself, just uninstall the current jdk and install the latest version.

    I too faced this issue, after trying everything I upgraded to latest JDK, then this issue was resolved finally.

    0 讨论(0)
提交回复
热议问题