Red-Hair-Shanks Posted August 1, 2013 Share Posted August 1, 2013 paw na kanw compile kai mou bgazi error [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5 java\net\sf\l2j\gameserver\model\entity\Olympiad.java:287: error: try-with-resources is not supported in -source 1.5 [javac] try (Connection con = L2DatabaseFactory.getInstance().getConnection()) [javac] ^ [javac] (use -source 7 or higher to enable try-with-resources) [javac] 1 error [javac] 1 warning ti prepei na kanw; 3erei kaneis; Link to comment Share on other sites More sharing options...
0 Ovenuç® Posted August 1, 2013 Share Posted August 1, 2013 paw na kanw compile kai mou bgazi error [javac] try (Connection con = L2DatabaseFactory.getInstance().getConnection()) [javac] ^ [javac] (use -source 7 or higher to enable try-with-resources) ti prepei na kanw; 3erei kaneis; den nomizo na einai mono auto to error.. Link to comment Share on other sites More sharing options...
0 Red-Hair-Shanks Posted August 1, 2013 Author Share Posted August 1, 2013 den nomizo na einai mono auto to error.. mono afto mou bgazi sto eclipse ... try (Connection con = L2DatabaseFactory.getInstance().getConnection()) { PreparedStatement statement = con.prepareStatement(OLYMPIAD_LOAD_NOBLES); ResultSet rset = statement.executeQuery(); while (rset.next()) { StatsSet statDat = new StatsSet(); int charId = rset.getInt(CHAR_ID); statDat.set(CLASS_ID, rset.getInt(CLASS_ID)); statDat.set(CHAR_NAME, rset.getString(CHAR_NAME)); statDat.set(POINTS, rset.getInt(POINTS)); statDat.set(COMP_DONE, rset.getInt(COMP_DONE)); statDat.set("to_save", false); _nobles.put(charId, statDat); } rset.close(); statement.close(); con.close(); } Link to comment Share on other sites More sharing options...
0 Ovenuç® Posted August 1, 2013 Share Posted August 1, 2013 mono afto mou bgazi sto eclipse ... try (Connection con = L2DatabaseFactory.getInstance().getConnection()) { PreparedStatement statement = con.prepareStatement(OLYMPIAD_LOAD_NOBLES); ResultSet rset = statement.executeQuery(); while (rset.next()) { StatsSet statDat = new StatsSet(); int charId = rset.getInt(CHAR_ID); statDat.set(CLASS_ID, rset.getInt(CLASS_ID)); statDat.set(CHAR_NAME, rset.getString(CHAR_NAME)); statDat.set(POINTS, rset.getInt(POINTS)); statDat.set(COMP_DONE, rset.getInt(COMP_DONE)); statDat.set("to_save", false); _nobles.put(charId, statDat); } rset.close(); statement.close(); con.close(); } auto sto bgazi to build i sou exei genika error mesa sto eclipse me kokino na fantasto eisai l2jh5? Link to comment Share on other sites More sharing options...
0 Red-Hair-Shanks Posted August 1, 2013 Author Share Posted August 1, 2013 auto sto bgazi to build i sou exei genika error mesa sto eclipse me kokino na fantasto eisai l2jh5? oxi dn exw kanena allo error ..oxi dn einai l2jh5...interlude project Link to comment Share on other sites More sharing options...
0 Ovenuç® Posted August 1, 2013 Share Posted August 1, 2013 oxi dn exw kanena allo error ..oxi dn einai l2jh5...interlude project acis? Link to comment Share on other sites More sharing options...
0 Red-Hair-Shanks Posted August 1, 2013 Author Share Posted August 1, 2013 acis? l2jserver Link to comment Share on other sites More sharing options...
0 MikeJ Posted August 1, 2013 Share Posted August 1, 2013 Κατέβασε την τελευταία έκδοση της Java και δοκίμασε. (αν δεν την έχεις ήδη) Link to comment Share on other sites More sharing options...
0 Red-Hair-Shanks Posted August 1, 2013 Author Share Posted August 1, 2013 Κατέβασε την τελευταία έκδοση της Java και δοκίμασε. (αν δεν την έχεις ήδη) ti teleutaia ekdosi exw ..7.0.25 Link to comment Share on other sites More sharing options...
0 MikeJ Posted August 1, 2013 Share Posted August 1, 2013 ti teleutaia ekdosi exw ..7.0.25 Έχεις Teamviewer να μπω να σε βοηθήσω; Αν ναι, στείλε τα στοιχεία σε PM. Link to comment Share on other sites More sharing options...
0 Red-Hair-Shanks Posted August 1, 2013 Author Share Posted August 1, 2013 Έχεις Teamviewer να μπω να σε βοηθήσω; Αν ναι, στείλε τα στοιχεία σε PM. ok filaraki..euxaristw gia tin boh8eia pantos :) Link to comment Share on other sites More sharing options...
0 Red-Hair-Shanks Posted August 1, 2013 Author Share Posted August 1, 2013 fixed...close topic !!:) Link to comment Share on other sites More sharing options...
0 Fanky Posted August 1, 2013 Share Posted August 1, 2013 fixed...close topic !!:) okey,locked. Link to comment Share on other sites More sharing options...
Question
Red-Hair-Shanks
paw na kanw compile kai mou bgazi error
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
java\net\sf\l2j\gameserver\model\entity\Olympiad.java:287: error: try-with-resources is not supported in -source 1.5
[javac] try (Connection con = L2DatabaseFactory.getInstance().getConnection())
[javac] ^
[javac] (use -source 7 or higher to enable try-with-resources)
[javac] 1 error
[javac] 1 warning
ti prepei na kanw; 3erei kaneis;
Link to comment
Share on other sites
12 answers to this question
Recommended Posts