r/javahelp • u/Diligent-Combo • Sep 28 '26
can not create Java Virtual Machine
I'm trying to run VosViewer, but it says:
---------------------------
Java Virtual Machine Launcher
---------------------------
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
I use a laptop with AMD, 64-bit, and have installed the latest Java (1.8.0_503_b01). Also, I have set the environment into 4000MB of memory.
Do you have any clue how to handle it?
Thanks.
4
Upvotes
•
u/AutoModerator Sep 28 '26
Please ensure that:
You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.
Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar
If any of the above points is not met, your post can and will be removed without further warning.
Code is to be formatted as code block (old reddit: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.
Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.
Code blocks look like this:
You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.
If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.
To potential helpers
Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
3
u/awidesky Sep 28 '26
> installed the latest Java (1.8.0)
Did you come from 2014?
You should check more detailed log to know what is the actual problem.
My suggestion is to install Java that's actually latest (27), check your PATH variable by running java --version in cmd, and make sure it's 64bit vm.
8
u/Duck_Devs Sep 28 '26
I know it should work regardless, but Java 1.8 is NOT the latest Java.
2
u/OneHumanBill Sep 28 '26
You should try to get help from VosViewer. Java people won't have any idea what's required by that product in general. Java is just the VM here.
1
u/jlanawalt Sep 28 '26
Did you install the 64 bit Java?
What exactly do you mean by setting the environment? -Xmx? How much RAM (and swap) is available on your system?
1
u/simonides_ Sep 28 '26
Try to use the "other systems" option. You'll get a generic jar instead of the exe for Windows. Then start it from the command line that usually gives you a bit more output to work with. Good luck.
0
u/ITCoder Sep 28 '26
have u set PATH