Jump to content
  • 0

java probleam


Red-Hair-Shanks

Question

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

  • 0

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

  • 0

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

  • 0

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

  • 0

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

  • 0

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

ti teleutaia ekdosi exw ..7.0.25

Link to comment
Share on other sites

  • 0

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

 

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

ok filaraki..euxaristw gia tin boh8eia pantos :)

Link to comment
Share on other sites

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