Jump to content
  • 0

Java error


Aya

Question

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?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...