Problem with FastMap usage in latest update

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
avatar7
Posts: 30
Joined: Fri Aug 07, 2009 11:10 pm

Problem with FastMap usage in latest update

Post 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?
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7008
Joined: Tue Aug 11, 2009 3:36 am

Re: Problem with FastMap usage in latest update

Post 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.
Powered by Eclipse 4.34 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.3.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
avatar7
Posts: 30
Joined: Fri Aug 07, 2009 11:10 pm

Re: Problem with FastMap usage in latest update

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