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

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

  • 0
Posted

ti teleutaia ekdosi exw ..7.0.25

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

 

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

Guest
This topic is now closed to further replies.


  • Posts

    • Hi players ! Meet our project Lineage 2 Hiro Classic ! A low rate classic pvp oriented with many features. No pay to win, RB/AoE, group clan pvp castle etc ...  Dynamic rates, RB Xp 4x and soon massive update with auto farm ! Join now !  https://www.lineage2hiro.com/ Can't wait to see you online !
    • To all first time buyers we give a bonus + 10% of the order. 
    • 🔥 Looking for a powerful, clean, and player-friendly Auction House system for your Lineage 2 server? This fully-featured module is ready to plug into your project and provide your players with a modern, centralized marketplace!   💼 What is it? A complete Auction House system designed for fixed-price item sales between players. Forget about private stores and spammed zones—this system offers a smooth, secure, and offline-friendly way to buy and sell items across your server.   Photo Library: https://imgur.com/a/zLlUQbW   ✅ Main Features: 🔹 Fixed-Price Listings Only: Players list items at a set price. No bidding, no delays—just fast, clean trades. 🔹 Multi-Currency Support: Works with Adena, event coins, custom currencies—fully configurable. 🔹 Dynamic Interface: Players can filter items by name, type, and price. Easy-to-use HTML layout with smooth pagination. 🔹 Sell While Offline: Post items and receive payments even if you're not online—true passive trading. 🔹 Safety First: Full validation: no equipped/augmented/restricted items unless allowed. Prevents scams, mispricing, and listing errors. 🔹 Expiration Timer (Optional): Set listing time limits. Expired items go to warehouse/mail automatically. 🔹 Spam & Duplication Protection: Prevents multiple listings of identical items and unnecessary database load. 🔹 Performance Optimized: Clean, indexed SQL structure. No lag or bloating even with thousands of listings.   ⚙️ Plug & Play Clean Java code (compatible with aCis & derivatives). Easy setup with full instructions and sample configurations. Includes SQL, HTML files, and all Java classes – fully working out of the box.   💰 Pricing & Contact 📦 50 euro - One-time purchase with full support for setup & basic customization. 💬 Contact me here via PM or on Discord: @Luminous 🔐 Serious buyers only – source is clean, secure, and tested on live servers.     Give your server the next-level economy it deserves. No more chaotic trade zones. No more confusion. Just clean, efficient, server-wide trading.
    • We are certainly not an ambulance, but we will definitely cure you of blacklists and empty pockets. Live freely with SX! Each of you will receive a trial version of SX to familiarize yourself with the product, all you have to do is post in this thread
    • 166 pisses on their heads any day of the week though
  • Topics

×
×
  • Create New...