- Joined
- Jan 18, 2010
- Messages
- 3,109
- Reaction score
- 1,139
C:\Users\Owner\Desktop\Dynasty v83\src\scripting\reactor\ReactorScriptManager.java:44: error: diamond operator is not supported in -source 1.6
private Map<Integer, List<ReactorDropEntry>> drops = new HashMap<>();
(use -source 7 or higher to enable diamond operator)
C:\Users\Owner\Desktop\Dynasty v83\src\scripting\reactor\ReactorScriptManager.java:60: error: multi-catch statement is not supported in -source 1.6
} catch (final ScriptException | NoSuchMethodException | NullPointerException e) {
(use -source 7 or higher to enable multi-catch statement)
C:\Users\Owner\Desktop\Dynasty v83\src\scripting\reactor\ReactorScriptManager.java:69: error: try-with-resources is not supported in -source 1.6
try (PreparedStatement ps = DatabaseConnection.getConnection().prepareStatement("SELECT itemid, chance, questid FROM reactordrops WHERE reactorid = ? AND chance >= 0")) {
(use -source 7 or higher to enable try-with-resources)
3 errors
C:\Users\Owner\Documents\NetBeansProjects\Dynasty\nbproject\build-impl.xml:601: The following error occurred while executing this line:
C:\Users\Owner\Documents\NetBeansProjects\Dynasty\nbproject\build-impl.xml:243: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 4 seconds)
sorry guys this is the problem i meet now can anyone help me please
Stop bumping threads and make a Help Thread. Your problem is that the Diamond Operator feature was implemented in Java 7, however you are using a Java 6 JDK. Upgrade to Java 7.