Error creating Java Virtual Machine

4

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?

    
asked by anonymous 18.06.2015 / 00:03

1 answer

1

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

    
18.06.2015 / 01:41