Jump to content

Inside: havocx42 fixed "Could not create Java virtual machine" issues


tiarnia

Recommended Posts

ok downloaded the zip extracted it to a folder on my desktop, open launch file and i get

C:\Users\admin\Desktop\tekkit2.0 server>java -Xmx3G -Xms2G -jar Tekkit.jar

nogui

Error occurred during initialization of VM

Could not reserve enough space for object heap

Could not create Java virtual machine.

C:\Users\admin\Desktop\tekkit2.0 server>pause

Press any key to continue...

then it closes when i hit anything

i have 1.5 gigs of ram free atm and 78 gigs hard drive space and my proccessor is at 3% usage and it never moved...

1.1.4 worked fine

Link to comment
Share on other sites

  • Replies 51
  • Created
  • Last Reply

Top Posters In This Topic

Re: tekkit 2.0 issue

to fix the following error:

Error occurred during initialization of VM

Could not reserve enough space for object heap

Could not create Java virtual machine.

edit(right click > edit) the launch.bat to:

java -Xmx1G -Xms512M -jar Tekkit.jar nogui

pause

but you probably want some more RAM in your system to be running the server and client.

Some other things that have come up in this thread:

The server folder name cannot include "!", this probably applies to other special characters as well.

If the server complains "too small initial heap" you most likely forgot the M on -Xms512M

Edit:

a couple more details.

G=Gigabyte

M=Megabyte

So Xmx specifies the maximum size of the heap. it does not limit the amount of memory tekkit will use, only the heap which is one use for memory.

Xmx should be less than total free memory, AND if you are running 32bit java it should be less than 1.5G.

If you get stack overflow errors you should increase this value

Xms specifies the initial size of the heap, its not that important in this case, ideally keep it around what the server uses right after it starts up, 512M is plenty for me, this should never really need to be changed.

Link to comment
Share on other sites

I fixed the M in 512 and it still doesnt work

also i try to run the tekkit server and it doesnt work (nothing opens) then i open tekkit and go to multiplayer and my server is up, I have it not running and its still up so i go on it and it works fine but i cant op myself to actually have any fun.

sorry havoc for not explaining it the first time

Link to comment
Share on other sites

I fixed the M in 512 and it still doesnt work

also i try to run the tekkit server and it doesnt work (nothing opens) then i open tekkit and go to multiplayer and my server is up, I have it not running and its still up so i go on it and it works fine but i cant op myself to actually have any fun.

sorry havoc for not explaining it the first time

Yeah I've had this happen, make sure you always start the server with launch.bat. If this does happen then you can either terminate the java.exe process or restart your computer.

I edited the "launch", but when I start it up it will start up and then disappear directley after. Me no happy! :(

You probably deleted the pause line, put it back in and see what error appears

Link to comment
Share on other sites

"pause" is back, and this is what it gives:

C:\Users\User\Desktop\TEKKIT!>java -Xmx1G -Xms512M -jar Tekkit.jar nogui

java.lang.NullPointerException

    at java.io.Reader.<init>(Unknown Source)

    at java.io.InputStreamReader.<init>(Unknown Source)

    at net.minecraft.server.AchievementMap.<init>(SourceFile:15)

    at net.minecraft.server.AchievementMap.<clinit>(SourceFile:9)

    at net.minecraft.server.Statistic.d(SourceFile:38)

    at net.minecraft.server.CounterStatistic.d(SourceFile:15)

    at net.minecraft.server.StatisticList.<clinit>(SourceFile:24)

    at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:589)

    at org.bukkit.craftbukkit.Main.main(Main.java:134)

Aliasing material 1 name: stone

Aliasing material 2 name: grass

Aliasing material 3 name: dirt

Aliasing material 4 name: stonebrick

Aliasing material 5 name: wood

Aliasing material 6 name: sapling

Aliasing material 7 name: bedrock

Aliasing material 8 name: water

Aliasing material 9 name: water

Aliasing material 10 name: lava

Aliasing material 11 name: lava

Aliasing material 12 name: sand

Aliasing material 13 name: gravel

Aliasing material 14 name: oreGold

Aliasing material 15 name: oreIron

Aliasing material 16 name: oreCoal

Aliasing material 17 name: log

Aliasing material 18 name: leaves

Aliasing material 19 name: sponge

Aliasing material 20 name: glass

Aliasing material 21 name: oreLapis

Aliasing material 22 name: blockLapis

Aliasing material 23 name: dispenser

Aliasing material 24 name: sandStone

Aliasing material 25 name: musicBlock

Aliasing material 26 name: bed

Aliasing material 27 name: goldenRail

Aliasing material 28 name: detectorRail

Aliasing material 29 name: pistonStickyBase

Aliasing material 30 name: web

Aliasing material 31 name: tallgrass

Aliasing material 32 name: deadbush

Aliasing material 33 name: pistonBase

Aliasing material 35 name: cloth

Aliasing material 37 name: flower

Aliasing material 38 name: rose

Aliasing material 39 name: mushroom

Aliasing material 40 name: mushroom

Aliasing material 41 name: blockGold

Aliasing material 42 name: blockIron

Aliasing material 43 name: stoneSlab

Aliasing material 44 name: stoneSlab

Aliasing material 45 name: brick

Aliasing material 46 name: tnt

Aliasing material 47 name: bookshelf

Aliasing material 48 name: stoneMoss

Aliasing material 49 name: obsidian

Aliasing material 50 name: torch

Aliasing material 51 name: fire

Aliasing material 52 name: mobSpawner

Aliasing material 53 name: stairsWood

Aliasing material 54 name: chest

Aliasing material 55 name: redstoneDust

Aliasing material 56 name: oreDiamond

Aliasing material 57 name: blockDiamond

Aliasing material 58 name: workbench

Aliasing material 59 name: crops

Aliasing material 60 name: farmland

Aliasing material 61 name: furnace

Aliasing material 62 name: furnace

Aliasing material 63 name: sign

Aliasing material 64 name: doorWood

Aliasing material 65 name: ladder

Aliasing material 66 name: rail

Aliasing material 67 name: stairsStone

Aliasing material 68 name: sign

Aliasing material 69 name: lever

Aliasing material 70 name: pressurePlate

Aliasing material 71 name: doorIron

Aliasing material 72 name: pressurePlate

Aliasing material 73 name: oreRedstone

Aliasing material 74 name: oreRedstone

Aliasing material 75 name: notGate

Aliasing material 76 name: notGate

Aliasing material 77 name: button

Aliasing material 78 name: snow

Aliasing material 79 name: ice

Aliasing material 80 name: snow

Aliasing material 81 name: cactus

Aliasing material 82 name: clay

Aliasing material 83 name: reeds

Aliasing material 84 name: jukebox

Aliasing material 85 name: fence

Aliasing material 86 name: pumpkin

Aliasing material 87 name: hellrock

Aliasing material 88 name: hellsand

Aliasing material 89 name: lightgem

Aliasing material 90 name: portal

Aliasing material 91 name: litpumpkin

Aliasing material 92 name: cake

Aliasing material 93 name: diode

Aliasing material 94 name: diode

Aliasing material 95 name: lockedchest

Aliasing material 96 name: trapdoor

Aliasing material 98 name: stonebricksmooth

Aliasing material 99 name: mushroom

Aliasing material 100 name: mushroom

Aliasing material 101 name: fenceIron

Aliasing material 102 name: thinGlass

Aliasing material 103 name: melon

Aliasing material 104 name: pumpkinStem

Aliasing material 105 name: pumpkinStem

Aliasing material 106 name: vine

Aliasing material 107 name: fenceGate

Aliasing material 108 name: stairsBrick

Aliasing material 109 name: stairsStoneBrickSmooth

Aliasing material 110 name: mycel

Aliasing material 111 name: waterlily

Aliasing material 112 name: netherBrick

Aliasing material 113 name: netherFence

Aliasing material 114 name: stairsNetherBrick

Aliasing material 115 name: netherStalk

Aliasing material 116 name: enchantmentTable

Aliasing material 117 name: brewingStand

Aliasing material 118 name: cauldron

Aliasing material 120 name: endPortalFrame

Aliasing material 121 name: whiteStone

Aliasing material 122 name: dragonEgg

java.lang.ExceptionInInitializerError

    at net.minecraft.server.LocaleI18n.<clinit>(SourceFile:5)

    at net.minecraft.server.Item.l(Item.java:344)

    at net.minecraft.server.StatisticList.a(SourceFile:134)

    at net.minecraft.server.StatisticList.c(SourceFile:81)

    at net.minecraft.server.Item.<clinit>(Item.java:530)

    at net.minecraft.server.Block.<clinit>(Block.java:854)

    at net.minecraft.server.StatisticList.a(SourceFile:117)

    at net.minecraft.server.StatisticList.<clinit>(SourceFile:52)

    at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:589)

    at org.bukkit.craftbukkit.Main.main(Main.java:134)

Caused by: java.lang.NullPointerException

    at java.io.Reader.<init>(Unknown Source)

    at java.io.InputStreamReader.<init>(Unknown Source)

    at net.minecraft.server.LocaleLanguage.b(SourceFile:35)

    at net.minecraft.server.LocaleLanguage.<init>(SourceFile:21)

    at net.minecraft.server.LocaleLanguage.<clinit>(SourceFile:10)

    ... 10 more



C:\Users\User\Desktop\TEKKIT!>pause

Press any key to continue...

Link to comment
Share on other sites

  • 2 weeks later...

Its kinda boring when this happens


  • [li]2012-mar-16 20:11:13 net.minecraft.server.ModLoader init
    FIN: ModLoader Server 1.1 Initializing...
    2012-mar-16 20:11:13 net.minecraft.server.ModLoader readFromModFolder
    FINARE: Adding mods from C:\Users\Rasmus\Desktop\IAMEXCITEDABOUTTEKKIT\mods\[1]Buildcraft-2.2.12-b1.1R3.zip
    2012-mar-16 20:11:13 net.minecraft.server.ModLoader readFromModFolder
    FINARE: Zip found.
    2012-mar-16 20:11:13 net.minecraft.server.ModLoader addMod
    FIN: Mod Loaded: "mod_BuildCraftBuilders 2.2.12" from mod_BuildCraftBuilders.class
    2012-mar-16 20:11:13 net.minecraft.server.ModLoader addMod
    FIN: Mod Loaded: "mod_BuildCraftFactory 2.2.12" from mod_BuildCraftFactory.class
    2012-mar-16 20:11:13 net.minecraft.server.ModLoader addMod
    FIN: Mod Loaded: "mod_BuildCraftEnergy 2.2.12" from mod_BuildCraftEnergy.class
    2012-mar-16 20:11:13 net.minecraft.server.ModLoader addMod
    FIN: Mod Loaded: "mod_BuildCraftCore 2.2.12" from mod_BuildCraftCore.class
    2012-mar-16 20:11:13 net.minecraft.server.ModLoader addMod
    FIN: Mod Loaded: "mod_BuildCraftTransport 2.2.12" from mod_BuildCraftTransport.class
    2012-mar-16 20:11:13 net.minecraft.server.ModLoader readFromModFolder
    FINARE: Adding mods from C:\Users\Rasmus\Desktop\IAMEXCITEDABOUTTEKKIT\mods\[1]Industrialcraft2-1.71-cb1.1R4-r4.zip
    2012-mar-16 20:11:13 net.minecraft.server.ModLoader readFromModFolder
    FINARE: Zip found.
    2012-mar-16 20:11:13 net.minecraft.server.ModLoader addMod
    FIN: Mod Loaded: "mod_IC2 v1.71" from mod_IC2.class
    2012-mar-16 20:11:13 net.minecraft.server.ModLoader readFromModFolder
    FINARE: Adding mods from C:\Users\Rasmus\Desktop\IAMEXCITEDABOUTTEKKIT\mods\[1]Redpower-all-2.0p4d-b1.1R3.zip
    2012-mar-16 20:11:13 net.minecraft.server.ModLoader readFromModFolder
    FINARE: Zip found.
    2012-mar-16 20:11:13 net.minecraft.server.ModLoader addMod
    FIN: Mod Loaded: "mod_RedPowerLighting 2.0pr4d" from mod_RedPowerLighting.class
    2012-mar-16 20:11:13 net.minecraft.server.ModLoader addMod
    FIN: Mod Loaded: "mod_RedPowerArray 2.0pr4d" from mod_RedPowerArray.class
    2012-mar-16 20:11:13 net.minecraft.server.ModLoader addMod
    FIN: Mod Loaded: "mod_RedPowerMachine 2.0pr4d" from mod_RedPowerMachine.class
    2012-mar-16 20:11:13 net.minecraft.server.ModLoader addMod
    FIN: Mod Loaded: "mod_RedPowerLogic 2.0pr4d" from mod_RedPowerLogic.class
    2012-mar-16 20:11:13 net.minecraft.server.ModLoader addMod
    FIN: Mod Loaded: "mod_RedPowerWorld 2.0pr4d" from mod_RedPowerWorld.class
    2012-mar-16 20:11:13 net.minecraft.server.ModLoader addMod
    FIN: Mod Loaded: "mod_RedPowerCore 2.0pr4d" from mod_RedPowerCore.class
    2012-mar-16 20:11:13 net.minecraft.server.ModLoader addMod
    FIN: Mod Loaded: "mod_RedPowerWiring 2.0pr4d" from mod_RedPowerWiring.class
    2012-mar-16 20:11:13 net.minecraft.server.ModLoader readFromModFolder
    FINARE: Adding mods from C:\Users\Rasmus\Desktop\IAMEXCITEDABOUTTEKKIT\mods\[2]Additionalpipes-32.3-bukkit-b1.1R4-r1.zip
    2012-mar-16 20:11:13 net.minecraft.server.ModLoader readFromModFolder
    FINARE: Zip found.
    2012-mar-16 20:11:13 net.minecraft.server.ModLoader addMod
    FIN: Mod Loaded: "mod_zAdditionalPipes Rev32.3" from mod_zAdditionalPipes.class
    2012-mar-16 20:11:13 net.minecraft.server.ModLoader readFromModFolder
    FINARE: Adding mods from C:\Users\Rasmus\Desktop\IAMEXCITEDABOUTTEKKIT\mods\[2]AdvancedMachines_3.6_bukkit.zip
    2012-mar-16 20:11:13 net.minecraft.server.ModLoader readFromModFolder
    FINARE: Zip found.
    2012-mar-16 20:11:13 net.minecraft.server.ModLoader addMod
    FIN: Failed to load mod from "mod_IC2AdvancedMachines.class"
    2012-mar-16 20:11:13 ModLoader addMod
    FINARE: THROW
    java.lang.UnsupportedClassVersionError: net/minecraft/server/mod_IC2AdvancedMachines : Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(Unknown Source)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$000(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at net.minecraft.server.ModLoader.addMod(ModLoader.java:172)
    at net.minecraft.server.ModLoader.readFromModFolder(ModLoader.java:929)
    at net.minecraft.server.ModLoader.init(ModLoader.java:683)
    at net.minecraft.server.ModLoader.Init(ModLoader.java:1357)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:102)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:411)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    2012-mar-16 20:11:13 net.minecraft.server.ModLoader ThrowException
    ALLVARLIG: Unexpected exception
    java.lang.UnsupportedClassVersionError: net/minecraft/server/mod_IC2AdvancedMachines : Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(Unknown Source)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$000(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at net.minecraft.server.ModLoader.addMod(ModLoader.java:172)
    at net.minecraft.server.ModLoader.readFromModFolder(ModLoader.java:929)
    at net.minecraft.server.ModLoader.init(ModLoader.java:683)
    at net.minecraft.server.ModLoader.Init(ModLoader.java:1357)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:102)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:411)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    2012-mar-16 20:11:13 ModLoader init
    FINARE: THROW
    java.lang.RuntimeException: Exception occured in ModLoader
    at net.minecraft.server.ModLoader.ThrowException(ModLoader.java:1292)
    at net.minecraft.server.ModLoader.ThrowException(ModLoader.java:1297)
    at net.minecraft.server.ModLoader.addMod(ModLoader.java:193)
    at net.minecraft.server.ModLoader.readFromModFolder(ModLoader.java:929)
    at net.minecraft.server.ModLoader.init(ModLoader.java:683)
    at net.minecraft.server.ModLoader.Init(ModLoader.java:1357)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:102)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:411)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    Caused by: java.lang.UnsupportedClassVersionError: net/minecraft/server/mod_IC2AdvancedMachines : Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(Unknown Source)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$000(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at net.minecraft.server.ModLoader.addMod(ModLoader.java:172)
    ... 6 more
    2012-mar-16 20:11:13 net.minecraft.server.ModLoader ThrowException
    ALLVARLIG: Unexpected exception
    java.lang.RuntimeException: Exception occured in ModLoader
    at net.minecraft.server.ModLoader.ThrowException(ModLoader.java:1292)
    at net.minecraft.server.ModLoader.ThrowException(ModLoader.java:1297)
    at net.minecraft.server.ModLoader.addMod(ModLoader.java:193)
    at net.minecraft.server.ModLoader.readFromModFolder(ModLoader.java:929)
    at net.minecraft.server.ModLoader.init(ModLoader.java:683)
    at net.minecraft.server.ModLoader.Init(ModLoader.java:1357)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:102)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:411)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    Caused by: java.lang.UnsupportedClassVersionError: net/minecraft/server/mod_IC2AdvancedMachines : Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(Unknown Source)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$000(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at net.minecraft.server.ModLoader.addMod(ModLoader.java:172)
    ... 6 more
    [/li]
    [li][/li]

Link to comment
Share on other sites

Yep that would be boring. You know what else is boring? Answering the same question over and over that has been answered in Stickies.

I'm really really sorry, i know you've probably answered this already

But i'm having the same error as the last person to post.

(my errors can be found here : http://pastebin.com/vsy3pJR7

http://pastebin.com/4jE22RMi)

And , i don't understand because i dont have an exclamation mark in the folder

Or any special characters whatsoever.

I would REALLY REALLY appreciate , any help you can give me at all.

Even if it's just a link to another thread.

Thanks for reading.

Link to comment
Share on other sites

I did everything that I saw here, but not my error.

When I open up launch.bat, it says:

(loacation on computer and the right code, at least I suppose)

"java is not recognised as an intern or extern command, program or batchfile."

Please help!

Ps. Sorry if this was actually posted already.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Announcements

  • Anything claiming to be official Technic servers are not allowed here, for obvious reasons



×
×
  • Create New...