Launcher Error "Could not create Java Virtual Machine" (have 64 bit Java)

  • Tech Support section is for getting help with FTB related problems. If there's a repeatable issue that can be labeled as a bug, then please use the issue tracker for the pack or the app at GitHub issue trackers - If there's no repository for a pack that means that the pack is old and/or will not be updated. Bugs for older packs will not be fixed, unless they are critical.
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord
Status
Not open for further replies.

Benie76

New Member
Jul 29, 2019
141
0
0
Title:
Launcher Error "Could not create Java Virtual Machine" (have 64 bit Java)
Launcher Version:
1.4.11
Modpack:
Any
Modpack Version:
N/A
Log Link:
Details of the issue:
Java: 1.8.0_71(64 bit) (Installed in default location. No other Java installed)
RAM: 8GB
OS: Windows 7 Home Premium 64 bit (SP1)

Getting an issue when trying to launch any modpack. Either the log 'freezes' and/or just crashes, showing two error messages;
'Error: Could not create the Java Virtual Machine.'
'Error: A fatal exception has occurred. Program will exit.'
After pressing OK, the launcher comes back up.

I have 64 bit java, all I have. Java 1.8.0_71. Here's the augments my friend gave me months ago when I was using the latest version of Java 7;
-Xmx4G -Xms512M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:[have to leave space here due to smilie]ParallelGCThreads=3 -XX:MaxGCPauseMillis=5 -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -XX:+UseBiasedLocking -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=15 -Xnoclassgc -XX:UseSSE=3 -XX:+UseLargePages -XX:+UseFastAccessorMethods -XX:+UseStringCache -XX:+UseCompressedStrings -XX:+OptimizeStringConcat -XX:+AggressiveOpts -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled
I haven't changed any of these. I just haven't played FTB in months, wanted to today and I get this error. I also tried to set up a new System Variable (named '_JAVA_OPTIONS' and the value being '-Xmx512M' (also tried changing it to '-Xmx4G', still not fixing the problem).

Since I have already updated my 64 bit of Java, I didn't bother reinstalling (since I doubt it would help). I can run other Java-based games fine without issues, but this one is. Please assist.

Also tried to update my GPU drivers. Didn't help. Same error. As for providing a log, I feel I don't really need to. The error doesn't show up anywhere there. All I saw was the augments that I specified up there before it crashes and that's it. If it did provide crash info, I would had definitely provided it.​
 
Last edited:
R

rinomasaya

Guest
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.
 

grandrolf

Global moderator
Team Member
Global Moderator
Trusted User
Aug 29, 2014
2,658
246
133
sweden
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.

Of all the things you've said here - the only usefull thing was the first line about reinstalling java, rest is kind of bad advice.

If you got 64-bit OS then you should install 64-bit java - if you plan to use it with moded minecraft.

Every setting that has to do with java and minecraft should be set on the launcher, avoid the control panel.

@Benie76 - Update your launcher to the latest one https://www.feed-the-beast.com/ (red button = twitch/curse launcher - under the button is the FTB launcher marked as legacy)

Update your java to the latest version (64-bit), remove the added java parameters and try again.

If it still fails, try to do a repair (twitch/curse) or a force update (FTB launcher), instructions are found here:
http://support.feed-the-beast.com/faq/

If it still fails, please post full log - you'll find instructions for that on the FAQ page as well.
 
J

joviermark

Guest
  • Open the Control Panel
  • Go to System
  • Go to Advanced Systems Properties
  • Then Environment Variables
  • In System Variables, click Add
  • New Variable Name: _JAVA_OPTIONS
  • New Variable Value: -Xmx512M
  • Click OK
That's it, your Java program should now be able to execute properly.
For those interested, Java -Xmx/s is the configuration parameter that control the amount of memory Java uses.
  • Xmx sets the maximum heap memory size
  • Xms sets the minimum heap memory size
More about...Java Virtual Machine

Mark
 

jikuja

legacy FTB Launcher developer
Launcher Developer
Global Moderator
Dec 17, 2013
1,134
111
99
New Variable Name: _JAVA_OPTIONS

At least FTB launcher removes that environment variable. Twitch and Curse probably does the same. All three launchers have proper way to control memory allocation, please open the launcher ans see settings.

If it still fails, please post full log - you'll find instructions for that on the FAQ page as well.

+1 I'm curious to see your log.
 

jikuja

legacy FTB Launcher developer
Launcher Developer
Global Moderator
Dec 17, 2013
1,134
111
99
Oh well. Maybe this should be just closed because of bad solutions
 
Status
Not open for further replies.