Skip to content

Featured Replies

Solved by SweeTs

  • Author

Thanks Sweet!

Edited by Andrey™

UP: Can someone tell me how to fix that fucking problem with databasefactroy?

READ THE COMMENTS !!

  • Author
Thanks Sweet!

READ THE COMMENTS !!

OMFG! I don't have problem with imports. Check what error I have and shut the fuck up!

 

"Cannot make a statitc reference to the non-static methor getConnection() from the type L2DatabaseFactory" , this is the error that I have!

Edited by Andrey™

  • Solution

You should be more polite if you want to get asnwer. We are not some kind of robots to answer to your questions like instant..

 

Also, we're providing tips/hints so you can LEARN, if you rly want.. If you just came here and want to get READY file(s) like most of this 'meh' community, then.. Well..

 

 

@Devlin

Shame on you, if you does something, make it properly or do not do it at all :P

 

@Andrey

If you would be a lil bit smart, you would open ANY file and use SEARCH for L2DatabaseFactory and see how that Connection con should looks like, is that so hard to TRY to manage it on your own - no offense, it's just the way you should follow.. Searching for ready codes / examples to fix your error..

Connection con = L2DatabaseFactory.getConnection()

should be

Connection con = L2DatabaseFactory.getInstance().getConnection()

Edited by SweeTs

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.