Visual Studio does not initiate Java Virtual Machine

Sorry, I was wrong suggesting to tune Java options, it's not possible in this case, because we are using definite values (Xmx1024M) when running java. Also we cannot simply change the allocated memory because it can cause problems to other users. This is not Oxygene, but Java issue.

It really hasn’t affected me, as I didn’t even know how to do it even if it were possible.

But yeah, I think it’s already become painfully obvious that this is a Java issue.

Sorry, I was wrong suggesting to tune Java options, it's not possible in this case, because we are using definite values (Xmx1024M) when running java. Also we cannot simply change the allocated memory because it can cause problems to other users. This is not Oxygene, but Java issue.

Yes. In my case, this error:

Error occurred during initialization of VM: Could not reserve enough space for object heap. Error: Could not create the Java Virtual Machine.

was resolved by following these steps:

Go to Start->Control Panel->System->Advanced->Environment Variables->System Variables->New:
Variable name: _JAVA_OPTIONS
Variable value: -Xmx512M

Thanks,
Willian.

Your errors aren’t the same as mine. Trying it anyway, though.

Starting AVD now…

Starting Visual Studio…

Preparing to test…

Debug output is chock full of exceptions and stuff, but it works.

Most of the time you can fix this problem by uninstalling the Java runtime and then reinstalling it all over again.

To do this, go to the control panel and then Programs and Features. If you’re running Windows 8.1 Update 1, just right-click on the Start button and click on Programs and Features. Locate the Java runtime, uninstall it and reboot your PC.

Next, download the latest Java Runtime from java.com, taking care to install the correct version for your PC. You will likely want the 32-bit version as the 64-bit option is specifically for 64-bit browsers. Most browsers are 32-bit on Windows, even on 64-bit editions of the OS.

Sometimes this error can be caused by not having enough system memory allocated to the Java Virtual Machine – or not enough system memory full stop.

You can also try increasing the amount of system memory allocated to the Java virtual machine by setting an environment variable.

To do this, go back to the Control Panel and click on System, then Advanced system settings. Now click the Environment Variables button to bring up a list of all those currently set.