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

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

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

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

ti teleutaia ekdosi exw ..7.0.25

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

 

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

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..