Page 1 of 1

Problem with FastMap usage in latest update

Posted: Wed Nov 09, 2011 5:41 am
by avatar7
If you want to receive support we need this info to help you properly.
ยป Find Revision
L2J Revision 5069:
L2JDP Revision 8518:

For some reason I'm getting the following error in a couple of files (MC_Show.java, RandomSpawn.java and SeedOfAnnihilation.java):

1. ERROR in /RandomSpawn.java (at line 32)
private static Map<Integer, Location[]> SPAWN_POINTS = new FastMap<>();

Syntax error on token "<", ? expected after this token

The error began to pop up on my live Ubuntu server after I applied the Changeset 8510 of DP (http://trac.l2jdp.com/changeset/8510) which switches to Location usage for the coordinates. It works fine on my private Windows test machine though, no error at all.

I had to add the variable type to the FastMap initialization to make it work on Ubuntu, like this:

new FastMap<Integer, Location[]>();

Similarly I did the same for the other files which gave the error.

I have the latest Oracle JRE/JDK on both machines, so I can't really figure out what's causing it. Any ideas?

Re: Problem with FastMap usage in latest update

Posted: Wed Nov 09, 2011 6:14 am
by Zoey76
If you have Java 7, then you have wrong library or keep the old one there, you should use http://trac.l2jserver.com/changeset/4937

You need to cleanup lib folder, would be good if you backup crest folder, log folder, configs and clean whole server folder.

Re: Problem with FastMap usage in latest update

Posted: Wed Nov 09, 2011 4:12 pm
by avatar7
I've applied those updates in Eclipse, it compiles fine and it runs fine on my local server under Windows, but not on the Ubuntu machine. I have the new library, etc.

I guess I'll delete the live server folders, copy over a fresh build and see what happens. Thanks for the suggestion.