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

▼ Show 2 Answers

0 votes
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 create the

Java Virtual Machine".

Please help!

After clicking on "OK" button on Pop window it shows the error on console.

Error occurred during initialization of VM.

Could not reserve enough space for object heap.

Please give me any reference or suggestions.

Thanks in Advance.
0 votes

[email protected]:~$ 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 '-'

[email protected]:~$ 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)
Learn More with Madanswer

Related questions

0 votes
asked Feb 9 in JAVA by SakshiSharma