Jump to content

Question

Posted

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;

12 answers to this question

Recommended Posts

  • 0
Posted
  On 8/1/2013 at 2:03 AM, ourat1995 said:

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..

  • 0
Posted
  On 8/1/2013 at 2:05 AM, Ovenuç® said:

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();

}

  • 0
Posted
  On 8/1/2013 at 2:07 AM, ourat1995 said:

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?

  • 0
Posted
  On 8/1/2013 at 2:11 AM, Ovenuç® said:

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

  • 0
Posted

Κατέβασε την τελευταία έκδοση της Java και δοκίμασε. (αν δεν την έχεις ήδη)

  • 0
Posted
  On 8/1/2013 at 11:40 AM, MikeJ said:

Κατέβασε την τελευταία έκδοση της Java και δοκίμασε. (αν δεν την έχεις ήδη)

ti teleutaia ekdosi exw ..7.0.25

  • 0
Posted
  On 8/1/2013 at 11:48 AM, ourat1995 said:

ti teleutaia ekdosi exw ..7.0.25

Έχεις Teamviewer να μπω να σε βοηθήσω;

 

Αν ναι, στείλε τα στοιχεία σε PM.

  • 0
Posted
  On 8/1/2013 at 12:26 PM, MikeJ said:

Έχεις Teamviewer να μπω να σε βοηθήσω;

 

Αν ναι, στείλε τα στοιχεία σε PM.

ok filaraki..euxaristw gia tin boh8eia pantos :)

Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock