Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Netbeans Compiling error;

Initiate Mage
Joined
Jan 25, 2013
Messages
2
Reaction score
0
Hey Ragezone,


I am sorry to burden any one with these questions, but I am in need of some assistance on this. I am new to maplestory development and I thought I knew how to set up the server from start to finish, then I ran into a compiling error. Note: I have added the Jar files and installed Java7/JDK7, in-case that is needed to be known. Any help would be greatly appreciated.


Compile error;
init:
deps-jar:
Created dir: C:\Users\Kevin\Desktop\build
Updating property file: C:\Users\Kevin\Desktop\build\built-jar.properties
Created dir: C:\Users\Kevin\Desktop\build\classes
Created dir: C:\Users\Kevin\Desktop\build\empty
Created dir: C:\Users\Kevin\Desktop\build\generated-sources\ap-source-output
Compiling 343 source files to C:\Users\Kevin\Desktop\build\classes
C:\Users\kevin\Desktop\AriaStory\src\client\MapleCharacter.java:3161: error: diamond operator is not supported in -source 1.6
Map<Skill, SkillEntry> list = new HashMap<>();
(use -source 7 or higher to enable diamond operator)
C:\Users\kevin\Desktop\AriaStory\src\client\MapleCharacterCards.java:38: error: diamond operator is not supported in -source 1.6
private Map<Integer, CardData> cards = new LinkedHashMap<>(); // order
(use -source 7 or higher to enable diamond operator)
C:\Users\kevin\Desktop\AriaStory\src\client\MapleClient.java:105: error: diamond operator is not supported in -source 1.6
private Map<Integer, Pair<Short, Short>> charInfo = new LinkedHashMap<>();
(use -source 7 or higher to enable diamond operator)
C:\Users\kevin\Desktop\AriaStory\src\client\PlayerStats.java:59: error: diamond operator is not supported in -source 1.6
private Map<Integer, Integer> setHandling = new HashMap<>(), skillsIncrement = new HashMap<>(), damageIncrease = new HashMap<>();
(use -source 7 or higher to enable diamond operator)
C:\Users\kevin\Desktop\AriaStory\src\client\SkillFactory.java:40: error: diamond operator is not supported in -source 1.6
private static final Map<Integer, Skill> skills = new HashMap<>();
(use -source 7 or higher to enable diamond operator)
C:\Users\kevin\Desktop\AriaStory\src\client\messages\CommandProcessor.java:58: error: diamond operator is not supported in -source 1.6
ArrayList<String> cL = new ArrayList<>();
(use -source 7 or higher to enable diamond operator)
C:\Users\kevin\Desktop\AriaStory\src\client\messages\commands\AdminCommand.java:88: error: try-with-resources is not supported in -source 1.6
try (PreparedStatement ps = con.prepareStatement("INSERT INTO wz_customlife (dataid, f, hide, fh, cy, rx0, rx1, type, x, y, mid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)")) {
(use -source 7 or higher to enable try-with-resources)
C:\Users\kevin\Desktop\AriaStory\src\constants\OccupationConstants.java:93: error: diamond operator is not supported in -source 1.6
return new Pair<>(chance, drops);
(use -source 7 or higher to enable diamond operator)
C:\Users\kevin\Desktop\AriaStory\src\handling\channel\handler\InventoryHandler.java:442: error: diamond operator is not supported in -source 1.6
final List<StructItemOption> pots = new LinkedList<>(ii.getAllSocketInfo(rank).values());
(use -source 7 or higher to enable diamond operator)
C:\Users\kevin\Desktop\AriaStory\src\handling\channel\handler\ItemMakerHandler.java:691: error: diamond operator is not supported in -source 1.6
final Map<Skill, SkillEntry> sa = new HashMap<>();
(use -source 7 or higher to enable diamond operator)
C:\Users\kevin\Desktop\AriaStory\src\handling\channel\handler\MobHandler.java:106: error: diamond operator is not supported in -source 1.6
/* 122 */ final List<Pair<Integer, Integer>> unk3 = new ArrayList<>();
(use -source 7 or higher to enable diamond operator)
C:\Users\kevin\Desktop\AriaStory\src\handling\channel\handler\MovementParse.java:37: error: diamond operator is not supported in -source 1.6
final List<LifeMovementFragment> res = new ArrayList<>();
(use -source 7 or higher to enable diamond operator)
C:\Users\kevin\Desktop\AriaStory\src\handling\channel\handler\PlayersHandler.java:535: error: diamond operator is not supported in -source 1.6
final List<Integer> newDrops = new ArrayList<>();
(use -source 7 or higher to enable diamond operator)
C:\Users\kevin\Desktop\AriaStory\src\handling\login\handler\AutoRegister.java:49: error: try-with-resources is not supported in -source 1.6
try (PreparedStatement ipc = con.prepareStatement("SELECT SessionIP FROM accounts WHERE SessionIP = ?")) {
(use -source 7 or higher to enable try-with-resources)
C:\Users\kevin\Desktop\AriaStory\src\handling\login\handler\CharLoginHandler.java:170: error: diamond operator is not supported in -source 1.6
final Map<Integer, Integer> cids = new LinkedHashMap<>();
(use -source 7 or higher to enable diamond operator)
C:\Users\kevin\Desktop\AriaStory\src\handling\world\CharacterTransfer.java:81: error: diamond operator is not supported in -source 1.6
public final Map<Integer, CardData> cardsInfo = new LinkedHashMap<>();
(use -source 7 or higher to enable diamond operator)
C:\Users\kevin\Desktop\AriaStory\src\scripting\NPCConversationManager.java:572: error: diamond operator is not supported in -source 1.6
final List<StructItemOption> pots = new LinkedList<>(ii.getAllSocketInfo(grade).values());
(use -source 7 or higher to enable diamond operator)
C:\Users\kevin\Desktop\AriaStory\src\server\CashItemFactory.java:27: error: diamond operator is not supported in -source 1.6
private final Map<Integer, List<Integer>> openBox = new HashMap<>();
(use -source 7 or higher to enable diamond operator)
C:\Users\kevin\Desktop\AriaStory\src\server\CharacterCardFactory.java:49: error: diamond operator is not supported in -source 1.6
private final Map<Integer, Integer> cardEffects = new HashMap<>(); // cardid, skillid
(use -source 7 or higher to enable diamond operator)
C:\Users\kevin\Desktop\AriaStory\src\server\MapleInventoryManipulator.java:853: error: diamond operator is not supported in -source 1.6
final Map<Skill, SkillEntry> ss = new HashMap<>();
(use -source 7 or higher to enable diamond operator)
C:\Users\kevin\Desktop\AriaStory\src\server\MapleItemInformationProvider.java:49: error: diamond operator is not supported in -source 1.6
protected final Map<Integer, Map<Integer, StructItemOption>> socketCache = new HashMap<>(); // Grade, (id, data)
(use -source 7 or higher to enable diamond operator)
C:\Users\kevin\Desktop\AriaStory\src\server\MapleStatEffect.java:125: error: diamond operator is not supported in -source 1.6
ret.info = new EnumMap<>(MapleStatInfo.class);
(use -source 7 or higher to enable diamond operator)
C:\Users\kevin\Desktop\AriaStory\src\server\StructItemOption.java:38: error: diamond operator is not supported in -source 1.6
public Map<String, Integer> data = new HashMap<>();
(use -source 7 or higher to enable diamond operator)
C:\Users\kevin\Desktop\AriaStory\src\server\maps\MapScriptMethods.java:1030: error: diamond operator is not supported in -source 1.6
final Map<Skill, SkillEntry> sa = new HashMap<>();
(use -source 7 or higher to enable diamond operator)
C:\Users\kevin\Desktop\AriaStory\src\server\maps\MapleMapFactory.java:65: error: diamond operator is not supported in -source 1.6
private static final Map<Integer, List<AbstractLoadedMapleLife>> customLife = new HashMap<>();
(use -source 7 or higher to enable diamond operator)
C:\Users\kevin\Desktop\AriaStory\src\server\quest\MapleQuestAction.java:233: error: diamond operator is not supported in -source 1.6
final Map<Skill, SkillEntry> sa = new HashMap<>();
(use -source 7 or higher to enable diamond operator)
C:\Users\kevin\Desktop\AriaStory\src\tools\packet\CWvsContext.java:949: error: diamond operator is not supported in -source 1.6
/* 3612 */ List<Pair<Integer, Long>> size = new ArrayList<>();
(use -source 7 or higher to enable diamond operator)
C:\Users\kevin\Desktop\AriaStory\src\tools\packet\PacketHelper.java:135: error: diamond operator is not supported in -source 1.6
final Map<Integer, Integer> skillsWithoutMax = new LinkedHashMap<>();
(use -source 7 or higher to enable diamond operator)
28 errors
C:\Users\kevin\Desktop\nbproject\build-impl.xml:596: The following error occurred while executing this line:
C:\Users\kevin\Desktop\nbproject\build-impl.xml:242: Compile failed; see the compiler error output for details.
 
Mythic Archon
Joined
Dec 25, 2011
Messages
723
Reaction score
97
Your NetBeans is still reading jdk 6/java 6 rather than jdk 7 or java 7. You can uninstall and install it again with it reading off JDK 7. I don't really know if there is an option changing it. You can explore that.
 
Upvote 0
Experienced Elementalist
Joined
Aug 24, 2012
Messages
280
Reaction score
101
Your NetBeans is still reading jdk 6/java 6 rather than jdk 7 or java 7. You can uninstall and install it again with it reading off JDK 7. I don't really know if there is an option changing it. You can explore that.

Pretty much this. Re-install everything and make sure you're placing the STRENGTH files in the correct folders.
 
Upvote 0
Skilled Illusionist
Joined
May 28, 2011
Messages
380
Reaction score
38
Just change it to JDK 7 in Netbeans. It's easy. You don't have to reinstall/install anything. Right click your project, and change the preferences on the JDK loading.
 
Upvote 0
Custom Title Activated
Loyal Member
Joined
Apr 29, 2008
Messages
1,297
Reaction score
509
Pretty much this. Re-install everything and make sure you're placing the STRENGTH files in the correct folders.

Why are so many people linking every single problem to JCE files.

You only need to reinstall NetBeans if you have Java 7. Or just edit the settings.
 
Upvote 0
Back
Top