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

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..