Problems with Java Virtual Machine in Horizons

  • 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

MrLuzon

New Member
Jul 29, 2019
6
0
0
First sorry if you don't understand something I'm Spanish.
After a long time I wanted to start again some FTB, and I selected Horizons. The problem came with the installation of the mod pack, because it just didn't install it but after reading a lot of post from this forum I realised I just had to wait. Now, I waited like 30 minutes and it installed, but then it appeared me the Couldn't create the Java Virtual Machine. I tried something that I've read but nothing happens. I can play all the modpacks but Horizons and Classic Minecraft 1.7.2 without problems.
Here's the pastebin http://pastebin.com/PHrD7vAB
 

UniZero

Popular Member
Oct 3, 2012
3,406
310
124
Scotland, UK
I suspect you may have ran out of memory because you only have 32bit os and as such can only allocate 1GB of ram to the launcher. The new packs are quite brutal and are requiring at least 2gb of ram.

Unfortunately you have the following options.

1. Upgrade to a 64bit os to allow 64bit java and in turn allow you allocate the 2gb required.
2. Remove some of the mods, which will be a trial and error process, to try and get the pack running.
3. Use the FTB Lite2 pack that is designed for a 32bit os which unfortunately has a vastly reduced list of mods.
 
  • Like
Reactions: MrLuzon

MrLuzon

New Member
Jul 29, 2019
6
0
0
That's correct I can only allocate 1Gb of ram. Thank you for you options. I will buy a new Ram soon. That won't help I think, so I'll have to install a 64bit os.

I tried to play FTB Lite but the problm also happens, any suggestion? :(
 

MrLuzon

New Member
Jul 29, 2019
6
0
0
With Unizero's solution it happens the same but with Ash's one it just close but doesn't appear the couldn't create java...

I could make a photo, the error says: Caused by: java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException (Can't copy the pastebin because it closes)

I think I'll have to play classic minecraft hahaha
 

Ashzification

New Member
Jul 29, 2019
7,425
1
0
In the launchers Options tab, select "reopen launcher when minecraft exits"
Then you'll be able to provide a log of the incident :)
 
  • Like
Reactions: UniZero

UniZero

Popular Member
Oct 3, 2012
3,406
310
124
Scotland, UK
To me it looks like an error with LWJGL. I don't know if deleting the .minecraft folder from roaming would then redownload minecraft as well which may fix it.

What do you think Ash?

MrLuzon try backing up your .minecraft folder then delete it. Now I don't know if the ftb launcher will create it but if it does not then just run vanilla and it will recreate it.

If you have any saves then you can put them back in by bringing up the vanilla launcher and editing your profile then press the "open game dir" button and drop them back into saves.

No I am not sure if this will do any good because you say you can play 1.7 vanilla ok.

If after this it is still not working then I am stuck.
 

Ashzification

New Member
Jul 29, 2019
7,425
1
0
The last time I saw this error, it was an issue with the 32 bit install on a 64 bit system.


These next steps will be a little more comprehensive than I would normally suggest for someone. It's the second most comprehensive way I've found to remove possibly corrupted versions of Java. I'm going to list every step, just in case someone comes across this, and doesn't know how to do any particular part.
1. Uninstall Java
a. Click the Start Menu
b. Click Control Panel
c. Under "Programs" select "Uninstall a Program"
d. Scroll down to 'J' and uninstall all versions of Java​
2. Restart your computer
3. Defragment your hard drive (exact steps for Win7 will be listed)
a. Click the Start Menu
b. Click Control Panel
c. Click System and Security
d. Under "Administrative Tools" select Defragment your hard drive"
e. Select the disk you want to defragment (In this case, it's the disk that Java is installed to, so C)
f. Click Defragment Disk​
4. Just for good measure, restart your computer again.
5. Reinstall Java.
Install from here: http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1880261.html
For 32 bit operating system, select Windows x86 Offline (jre-7u45-windows-i586.exe)
For 64 bit operating system, select Windows x64 (jre-7u45-windows-x64.exe)
For 64 bit users, you should not have to install the 32 bit version of Java. You may need to for one or two very specific reasons, Minecraft is not one of those reasons.
For a regular reinstall of Java, you only need to follow steps 1, 2 and 5. Defragmenting your hard drive is not necessary for a normal reinstall. It has helped people in removing corrupted Java versions, or particularly troublesome Java's.
It's also recommended that you regularly defrag your hard drive anyway, so it doesn't hurt to do it ;)