Home Windows Could not create the Java Virtual Machine Error A Fatal exception has...

Could not create the Java Virtual Machine Error A Fatal exception has occurred

6

Error: Could not create the Java Virtual Machine Error A Fatal exception has occurred, the program will exit.

While after installing Eclipse Neon and JDK 1.8 I got the above error opening eclipse

Could not create the Java Virtual Machine Error A Fatal exception has occurred

Image – 1

Command to check java  version installed in the machine

Open command prompt type java -version as per the image – 2

It is now showing java version in the above image.

Solution:

Go to the eclipse installation folder and find eclipse.ini file

  • Find the line which starts with -vm
  • Add java run time binary path in the second line
  • C:\Program Files\Java SDK 1.8\bin\javaw
  • You can add the line If the -vm line in the eclipse.ini configuration is not there before the line starts with -vmargs
  • Then you can add the above line
  • Find if it’s set -Dosgi.requiredJavaVersion=1.8 then change this to currently jdk version.
  • Now save the configuration file and close

Now if you try opening eclipse you should not receive any error.

 

You may also like:

Setup metered Internet Connection in Windows 10

To take backup and restore Mozilla Thunderbird mail client (Windows/Ubuntu/Mac)

Without sudo login to mysql server in Ubuntu 18

Creating Local Yum Repository on Red Hat Enterprise linux 6

How to install nginx, mysql, phpmyadmin, php in Ubuntu

Command not found for every command in Ubuntu

How to install IIS Web Server on Amazon EC2 Instance (Windows Server 2008)

Install Linux as Guest operating system on Oracle VM Virtual Box and configure Port Forwarding

An error occurred when attaching the database(s). Click the hyperlink in the Message column for details

Install Linux as Guest operating system on Oracle VM Virtual Box and configure Port Forwarding


6 COMMENTS

  1. 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”. After clicking on “OK” button on Pop window it shows the error on console.

  2. What are the key steps involved in resolving the “Could not create the Java Virtual Machine Error A Fatal exception has occurred” error when encountering issues with Eclipse and JDK installations, and why is it important to configure the Eclipse configuration file (eclipse.ini) properly?

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Exit mobile version