Jump to content
  • 0

Java error


Question

Posted

Hi mxc  I have this Error when Im trying to strart my server

Exception in thread "main" java.lang.NullPointerException

        at net.sf.l2j.util.MTRandom.next(MTRandom.java:349)

        at java.util.Random.nextInt(Unknown Source)

        at java.util.Random.nextBytes(Unknown Source)

        at net.sf.l2j.util.Rnd.nextBytes(Rnd.java:73)

        at net.sf.l2j.gameserver.LoginServerThread.generateHex(LoginServerThread

.java:433)

        at net.sf.l2j.gsregistering.GameServerRegister.main(GameServerRegister.j

ava:98)

 

Can someone tell me how to fix it?

2 answers to this question

Recommended Posts

  • 0
Posted

What l2j server are you using and what is your JRE version? I had the same problem when I was trying to use the latest JRE's with old L2j distrobutions.

  • 0
Posted

What l2j server are you using and what is your JRE version? I had the same problem when I was trying to use the latest JRE's with old L2j distrobutions.

 

Use JDK 1.6, as dpbBryan told.

Or refactor Random to use Rnd instead.

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

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock