v116 Compile Errors?

Results 1 to 1 of 1
  1. #1
    Member waldo451 is offline
    MemberRank
    Dec 2010 Join Date
    127.0.0.1Location
    64Posts

    v116 Compile Errors?

    Hello RZ, I downloaded this source http://forum.ragezone.com/f427/sourc...rev1-w-879391/ planning to start up a server with just whatever i coded mainly as a learning development. Well (yes i know how to compile) When I make a new project i get errors and i think its the normal ones where you have to add the JAR/FOLDER to the libraries, So i do that and I still have ALL the errors there. Any ideas?
    Spoiler:
    init:
    deps-jar:
    Compiling 342 source files to C:\Users\Johnny\Desktop\MidnightMS\build\classes
    warning: [options] bootstrap class path not set in conjunction with -source 1.5
    C:\Users\Johnny\Desktop\MidnightMS\MidnightMS\src\client\MapleCharacter.java:3169: error: diamond operator is not supported in -source 1.5
    Map<Skill, SkillEntry> list = new HashMap<>();
    (use -source 7 or higher to enable diamond operator)
    C:\Users\Johnny\Desktop\MidnightMS\MidnightMS\src\client\MapleCharacterCards.java:38: error: diamond operator is not supported in -source 1.5
    private Map<Integer, CardData> cards = new LinkedHashMap<>(); // order
    (use -source 7 or higher to enable diamond operator)
    C:\Users\Johnny\Desktop\MidnightMS\MidnightMS\src\client\MapleClient.java:105: error: diamond operator is not supported in -source 1.5
    private Map<Integer, Pair<Short, Short>> charInfo = new LinkedHashMap<>();
    (use -source 7 or higher to enable diamond operator)
    C:\Users\Johnny\Desktop\MidnightMS\MidnightMS\src\client\PlayerStats.java:59: error: diamond operator is not supported in -source 1.5
    private Map<Integer, Integer> setHandling = new HashMap<>(), skillsIncrement = new HashMap<>(), damageIncrease = new HashMap<>();
    (use -source 7 or higher to enable diamond operator)
    C:\Users\Johnny\Desktop\MidnightMS\MidnightMS\src\client\messages\CommandProcessor.java:58: error: diamond operator is not supported in -source 1.5
    ArrayList<String> cL = new ArrayList<>();
    (use -source 7 or higher to enable diamond operator)
    C:\Users\Johnny\Desktop\MidnightMS\MidnightMS\src\client\messages\commands\AdminCommand.java:88: error: try-with-resources is not supported in -source 1.5
    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\Johnny\Desktop\MidnightMS\MidnightMS\src\constants\OccupationConstants.java:93: error: diamond operator is not supported in -source 1.5
    return new Pair<>(chance, drops);
    (use -source 7 or higher to enable diamond operator)
    C:\Users\Johnny\Desktop\MidnightMS\MidnightMS\src\handling\channel\handler\InventoryHandler.java:442: error: diamond operator is not supported in -source 1.5
    final List<StructItemOption> pots = new LinkedList<>(ii.getAllSocketInfo(rank).values());
    (use -source 7 or higher to enable diamond operator)
    C:\Users\Johnny\Desktop\MidnightMS\MidnightMS\src\handling\channel\handler\ItemMakerHandler.java:691: error: diamond operator is not supported in -source 1.5
    final Map<Skill, SkillEntry> sa = new HashMap<>();
    (use -source 7 or higher to enable diamond operator)
    C:\Users\Johnny\Desktop\MidnightMS\MidnightMS\src\handling\channel\handler\MobHandler.java:106: error: diamond operator is not supported in -source 1.5
    /* 122 */ final List<Pair<Integer, Integer>> unk3 = new ArrayList<>();
    (use -source 7 or higher to enable diamond operator)
    C:\Users\Johnny\Desktop\MidnightMS\MidnightMS\src\handling\channel\handler\MovementParse.java:37: error: diamond operator is not supported in -source 1.5
    final List<LifeMovementFragment> res = new ArrayList<>();
    (use -source 7 or higher to enable diamond operator)
    C:\Users\Johnny\Desktop\MidnightMS\MidnightMS\src\handling\channel\handler\PlayersHandler.java:535: error: diamond operator is not supported in -source 1.5
    final List<Integer> newDrops = new ArrayList<>();
    (use -source 7 or higher to enable diamond operator)
    C:\Users\Johnny\Desktop\MidnightMS\MidnightMS\src\handling\login\handler\AutoRegister.java:49: error: try-with-resources is not supported in -source 1.5
    try (PreparedStatement ipc = con.prepareStatement("SELECT SessionIP FROM accounts WHERE SessionIP = ?")) {
    (use -source 7 or higher to enable try-with-resources)
    C:\Users\Johnny\Desktop\MidnightMS\MidnightMS\src\handling\login\handler\CharLoginHandler.java:170: error: diamond operator is not supported in -source 1.5
    final Map<Integer, Integer> cids = new LinkedHashMap<>();
    (use -source 7 or higher to enable diamond operator)
    C:\Users\Johnny\Desktop\MidnightMS\MidnightMS\src\handling\world\CharacterTransfer.java:81: error: diamond operator is not supported in -source 1.5
    public final Map<Integer, CardData> cardsInfo = new LinkedHashMap<>();
    (use -source 7 or higher to enable diamond operator)
    C:\Users\Johnny\Desktop\MidnightMS\MidnightMS\src\scripting\NPCConversationManager.java:572: error: diamond operator is not supported in -source 1.5
    final List<StructItemOption> pots = new LinkedList<>(ii.getAllSocketInfo(grade).values());
    (use -source 7 or higher to enable diamond operator)
    C:\Users\Johnny\Desktop\MidnightMS\MidnightMS\src\server\CashItemFactory.java:27: error: diamond operator is not supported in -source 1.5
    private final Map<Integer, List<Integer>> openBox = new HashMap<>();
    (use -source 7 or higher to enable diamond operator)
    C:\Users\Johnny\Desktop\MidnightMS\MidnightMS\src\server\CharacterCardFactory.java:49: error: diamond operator is not supported in -source 1.5
    private final Map<Integer, Integer> cardEffects = new HashMap<>(); // cardid, skillid
    (use -source 7 or higher to enable diamond operator)
    C:\Users\Johnny\Desktop\MidnightMS\MidnightMS\src\server\MapleInventoryManipulator.java:853: error: diamond operator is not supported in -source 1.5
    final Map<Skill, SkillEntry> ss = new HashMap<>();
    (use -source 7 or higher to enable diamond operator)
    C:\Users\Johnny\Desktop\MidnightMS\MidnightMS\src\server\MapleItemInformationProvider.java:49: error: diamond operator is not supported in -source 1.5
    protected final Map<Integer, Map<Integer, StructItemOption>> socketCache = new HashMap<>(); // Grade, (id, data)
    (use -source 7 or higher to enable diamond operator)
    C:\Users\Johnny\Desktop\MidnightMS\MidnightMS\src\server\MapleStatEffect.java:125: error: diamond operator is not supported in -source 1.5
    ret.info = new EnumMap<>(MapleStatInfo.class);
    (use -source 7 or higher to enable diamond operator)
    C:\Users\Johnny\Desktop\MidnightMS\MidnightMS\src\server\StructItemOption.java:38: error: diamond operator is not supported in -source 1.5
    public Map<String, Integer> data = new HashMap<>();
    (use -source 7 or higher to enable diamond operator)
    C:\Users\Johnny\Desktop\MidnightMS\MidnightMS\src\server\maps\MapScriptMethods.java:1030: error: diamond operator is not supported in -source 1.5
    final Map<Skill, SkillEntry> sa = new HashMap<>();
    (use -source 7 or higher to enable diamond operator)
    C:\Users\Johnny\Desktop\MidnightMS\MidnightMS\src\server\maps\MapleMapFactory.java:65: error: diamond operator is not supported in -source 1.5
    private static final Map<Integer, List<AbstractLoadedMapleLife>> customLife = new HashMap<>();
    (use -source 7 or higher to enable diamond operator)
    C:\Users\Johnny\Desktop\MidnightMS\MidnightMS\src\server\quest\MapleQuestAction.java:233: error: diamond operator is not supported in -source 1.5
    final Map<Skill, SkillEntry> sa = new HashMap<>();
    (use -source 7 or higher to enable diamond operator)
    C:\Users\Johnny\Desktop\MidnightMS\MidnightMS\src\tools\packet\CWvsContext.java:949: error: diamond operator is not supported in -source 1.5
    /* 3612 */ List<Pair<Integer, Long>> size = new ArrayList<>();
    (use -source 7 or higher to enable diamond operator)
    C:\Users\Johnny\Desktop\MidnightMS\MidnightMS\src\tools\packet\PacketHelper.java:135: error: diamond operator is not supported in -source 1.5
    final Map<Integer, Integer> skillsWithoutMax = new LinkedHashMap<>();
    (use -source 7 or higher to enable diamond operator)
    C:\Users\Johnny\Desktop\MidnightMS\MidnightMS\src\tools\wztosql\DumpItems.java:60: error: diamond operator is not supported in -source 1.5
    private final List<String> subCon = new LinkedList<>();
    ^
    (use -source 7 or higher to enable diamond operator)
    28 errors
    1 warning
    C:\Users\Johnny\Desktop\MidnightMS\nbproject\build-impl.xml:354: The following error occurred while executing this line:
    C:\Users\Johnny\Desktop\MidnightMS\nbproject\build-impl.xml:163: Compile failed; see the compiler error output for details.
    BUILD FAILED (total time: 8 seconds)


    Edit: Ignore i had netbeans 6...




Advertisement