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?
Problem with FastMap usage in latest update
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- Zoey76
- L2j Inner Circle
- Posts: 7008
- Joined: Tue Aug 11, 2009 3:36 am
Re: Problem with FastMap usage in latest update
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.
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! 

-
- Posts: 30
- Joined: Fri Aug 07, 2009 11:10 pm
Re: Problem with FastMap usage in latest update
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.
I guess I'll delete the live server folders, copy over a fresh build and see what happens. Thanks for the suggestion.