• Register
1 vote


I am getting an error message: windows error 2 occurred while loading the java VM

I was just wondering if anyone had seen this kind of error before and if so, how to solve it. The very few answers I can find online relate to this issue.

Somebody please step ahead and pull me up. Thanks

12 7 7
15,250 points

1 Answer

1 vote


The Windows error 2 while loading the Java VM error message is one that pops up for some users when trying to install software that relies on the Launch Anywhere Java launcher. Consequently, the users can’t install the software when that error message pops up.

We can solve the problem by checking these two steps one by one.

Updating Java: Go to java control panel and update your java to the latest and give it a try

# Deleting  Java system variable path: This problem might be solved after deleting the system variable path. To do this open Run and go to system properties by typing systempropertiesadvanced and then change/delete your path by taping on the advance tab.


13 9 6
94,240 points

Related questions

1 vote
1 answer 29 views
Problem : I am very new to Windows Services. Currently I am trying to create a custom windows service. I am trying to create the deployment package using the InstallShield and also the installation prompts for a user name and a password for a service Log On account. I did not had ... ;t still confirm whether a issue is to do with a OS or it is specific to machine that I am trying to install it on.
asked Apr 25 stewart 4k points
0 votes
1 answer 104 views
Problem : I am having a box with 8gb of ram, so I don't think the total memory is the issue. This application is running properly on boxes with 6gb or less ram. What I am trying to do is to reserve 3GB of space using -Xmx3G command under "VM ... : Error occurred during initialization of VM; Could not reserve enough space for object heap using -Xmx3G Why am I getting such error any clue?
asked Nov 26, 2019 alecxe 7.5k points
1 vote
1 answer 826 views
Problem : I want to run the newly compiled binary on some of the very oldish 32bits RedHat distribution. This binary is compiled C (not C++) on the CentOS 32bits VM running the libc v2.12. RedHat complains about the libc version as below: Error while loading shared ... , that's why it is most likely not using anything new from the libc. Is there any way to reduce the libc version requirement?
asked Jan 2 alecxe 7.5k points
0 votes
1 answer 686 views
Problem : I am facing below error as : node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' expected. After I tried to do the installation of Angular 6. Check the detailed error as below : ERROR in node_modules/rxjs/internal/types.d.ts(81,44): ... internal/types.d.ts(81,76): error TS1005: ';' expected. node_modules/rxjs/internal/types.d.ts(81,78): error TS1109: Expression expected.
asked Dec 18, 2019 alecxe 7.5k points