Error creating Java Virtual Machine

Posted on

Question :

I was running an rmi application in Eclipse Luna and the following message appeared:

  

“Could not create the Java Virtual Machine . A fatal exception has
occurred. Program will closed.
“.

The operating system used is Windows 7. How should I proceed?

    

Answer :

The cause of the problem is the lack of registration of a system environment variable called _JAVA_OPTIONS , some programs use it as a startup parameter.

The solution is quite simple, just add that variable and its value to the scope of system variables.

Variable: _JAVA_OPTIONS

Value: -Xmx1g

Right click on the “My Computer” icon on the desktop and then on Properties.

On the Advanced tab, click Environment Variables.

In the window that opens, click New and add its name ( _JAVA_OPTIONS ) and -Xmx1g value of the variable.

Source: Link

    

Leave a Reply

Your email address will not be published. Required fields are marked *