Jump to content
  • 0

[Solved!!]Cannot launch server for the first time!


Question

Posted

Title: Cannot launch server for the first time!

Version: 3.1.2

OS: Windows 7 Home premium 64Bit

Java Version: Java7

Description of Problem:

I recently went from bukkit to Tekkit, but I cannot start the server at all. I click the launch bat and It seems to try and start the server and then it just stops and tells me : Press any key to continue . . . when I do the cmd just closes down. I tried reinstalling java, I downloaded latest tekkit version (I downloaded it 3 days ago), I tried ajusting the Bat file to specify where Java is... Also, I adjusted the RAM it may take to something lower too.when I looked up the problem I didnt know what to specificly search for, what I tried to search for just gave me problems from people that tried logging into a server. but mine is starting my server... I am not an expert on these things... I hope I posted it correctly now, Thank you! (ps, this is not a launcer problem right?) ps: I DID instal newest java version and it says its fully updated!

Error Messages:

java.lang.NullPointerException ( I guess?)

Error Log:


C:\Users\Roborooskie\Desktop\Server stuff\Tekkit server!>"C:\Program Files (x86)

\Java\jre7\bin\java.exe" -Xmx1G -Xms1G -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>(StatisticList.java:17)

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

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

java.lang.ExceptionInInitializerError

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

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

        at net.minecraft.server.StatisticList.a(StatisticList.java:124)

        at net.minecraft.server.StatisticList.c(StatisticList.java:59)

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

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

        at net.minecraft.server.StatisticList.a(StatisticList.java:102)

        at net.minecraft.server.StatisticList.<clinit>(StatisticList.java:40)

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

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

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(LocaleLanguage.java:33)

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

        at net.minecraft.server.LocaleLanguage.<clinit>(LocaleLanguage.java:14)

        ... 10 more

 

C:\Users\Roborooskie\Desktop\Server stuff\Tekkit server!>pause

Press any key to continue . . .

25 answers to this question

Recommended Posts

  • 0
Posted

I had already changed the RAM to 1gb before by changing 4G to 1G, now I changed it to 1024M to be sure, still did not work.

Here is what is in my launch.bat:

"C:\Program Files (x86)\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar Tekkit.jar nogui

pause

It still isnt working.

did I do something wrong? what should I change in the config folder?

Thank you!

  • 0
Posted

Nope, my pc is rather new (bought it slightly more than half a year ago). I'll try this, Thanks!

Edit: if I put in what you tell me it gives me this:

C:\Users\Roborooskie\Desktop\Server stuff\Tekkit server!>java -Xmx1G -Xms1G -jar

Tekkit.jar nogui

'java' is not recognized as an internal or external command,

operable program or batch file.

C:\Users\Roborooskie\Desktop\Server stuff\Tekkit server!>pause

Press any key to continue . . .

if I change the last part of mine with yours it gives me the first error again...

  • 0
Posted

Oh... :)

Well, hosting a server on a PC is pretty tough to do...

Go to Start, Control Panel, System and Maintenance, System.

Under Memory (RAM) it'll tell you your amount of RAM. From that could you tell me how much ram you have? That would help a lot!

  • 0
Posted

4gb RAM, though I used to have a bukkit server, I switched to tekkit since it had all the neat plugins... the bukkit server was up and running within 10 minutes... I dont think its the RAM.

  • 0
Posted

If you're using the java in Program Files (x86) it means you're using 32bit java. With that you can't allocate more than 1.5GB anyway.

Install 64bit java, make sure that's whats used to launch the server and see how you go

  • 0
Posted

ok, uninstalled java, went to site, downloaded the 64bit java7, changed launch.bat to:

"C:\Program Files\Java\jre7\bin\java.exe" -Xmx1G -Xms1G -jar Tekkit.jar nogui

pause

and still no go...

still gives me the

C:\Users\Roborooskie\Desktop\Server stuff\Tekkit server!>"C:\Program Files\Java\

jre7\bin\java.exe" -Xmx1G -Xms1G -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>(StatisticList.java:17)

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

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

java.lang.ExceptionInInitializerError

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

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

at net.minecraft.server.StatisticList.a(StatisticList.java:124)

at net.minecraft.server.StatisticList.c(StatisticList.java:59)

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

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

at net.minecraft.server.StatisticList.a(StatisticList.java:102)

at net.minecraft.server.StatisticList.<clinit>(StatisticList.java:40)

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

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

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(LocaleLanguage.java:33)

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

at net.minecraft.server.LocaleLanguage.<clinit>(LocaleLanguage.java:14)

... 10 more

C:\Users\Roborooskie\Desktop\Server stuff\Tekkit server!>pause

Press any key to continue . . .

What should I do? did I do something wrong?

Edit: Technic launcher stopped working somehow? was this becouse I changed the Java thing?

  • 0
Posted

Have you tried downloading the server again, just to make sure you don't have a corrupt download?

That's about the only other thing I can think of.

Technic may be remembering the the old java version, although as long as java is in your path I would expect it to still work, reinstall that too maybe

  • 0
Posted

I had this problem to recently all I had to do was make a new server and add in the world files from the old one... It was the only way that I could fix it. But after that It worked like a charm!!!

  • 0
Posted

It never ran before xD I dont have any tekkit worlds to put in.

edit: I tried bukkit worlds (just to be sure) and they didnt work (who wouldve thought xD).

Ugh still not working :(

  • 0
Posted

try remove the "!" from the file path for your server location and rename the folder to match

C:\Users\Roborooskie\Desktop\Server stuff\Tekkit server!>"C:\Program Files\Java\

  • 0
Posted

as i said try taking the ! out of your path, if you tried googling the first line of your error you would have found this

http://forums.bukkit.org/threads/server-crash-instantly-help.99285/

a link to a bukkit forum where they have the exact same output for errors

if that does not work for you then move the entire folder with corrected name to the root of your c:\ drive and try running it, that will rule out any issue with directory structure.

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
×
×
  • Create New...