Page 1 of 2

What is the problem? does not work.

Posted: Sun Sep 18, 2011 5:23 am
by Motorola
Freya server last version
--------------------------------------------------------
Starting L2J Login Server.

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/l2jserver
/loginserver/L2LoginServer : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: com.l2jserver.loginserver.L2LoginServer. Program
will exit.

Server terminated abnormaly


server terminated
-------------------------------------------------------
What is the problem?

Re: What is the problem? does not work.

Posted: Sun Sep 18, 2011 5:30 am
by Dumpster
do you have java 7 installed?

Re: What is the problem? does not work.

Posted: Sun Sep 18, 2011 3:56 pm
by Motorola
Thanks, after installation, all work.

Re: What is the problem? does not work.

Posted: Mon Oct 03, 2011 8:39 pm
by munte
i have the same problem ... i just reinstal java 7 but i have the same error:
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/l2jserver
/loginserver/L2LoginServer : Unsupported major.minor version 51.0

Re: What is the problem? does not work.

Posted: Mon Oct 03, 2011 9:57 pm
by blarke
"It means that you compiled your classes under a specific JDK, but then try to run them under older version of JDK. So, you can't run classes compiled with JDK 6.0 under JDK 5.0. The same with classes compiled under JDK 7.0 when you try to run them under JDK 6.0."

Are you sure you have JDK _AND_ JRE 7 installed?

Edit: I'd also suggest to reinstall every java package you have and clean up the registry with a regcleaner before attempting to reinstall Java 1.7. I assume if this is not due to invalid java references, it may be related to environment variable settings (search the forum) or illegal java keys in the registry. (Long story short: JFGI)

Re: What is the problem? does not work.

Posted: Mon Oct 03, 2011 10:23 pm
by Zoey76
If you do have Java 7 then check compilance level on Eclipse, it may be using 1.7 instead of 1.6.

Re: What is the problem? does not work.

Posted: Tue Oct 04, 2011 5:48 pm
by blarke
Zoey76 wrote:If you do have Java 7 then check compilance level on Eclipse, it may be using 1.7 instead of 1.6.
The code wouldnt compile if that would be the problem, would it? (Just theoretical question, no offense - I had a java version error running the ant build with outdated java)

Re: What is the problem? does not work.

Posted: Tue Oct 04, 2011 6:05 pm
by munte
hi, i did everything u tel but now i get another error:
'java' is not recognized as an internal or external command,
operable program or batch file.

Re: What is the problem? does not work.

Posted: Sat Nov 19, 2011 5:59 pm
by Morus
Even you installed java 7 you need to use that command to chose the one you want to use. (for linux users)
sudo update-alternatives --config java
and chose the option proper one for you. (example below)
There are 2 choices for the alternative java (providing /usr/bin/java).

Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode
1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode
2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode
3 /usr/lib/jvm/jdk1.7.0/jre/bin/java manual mode

Press enter to keep the current choice
, or type selection number: 3

Re: What is the problem? does not work.

Posted: Fri Nov 25, 2011 3:50 am
by cioancanicu
Can some1 help me with this error !
ty in advance

Image

Uploaded with ImageShack.us

Re: What is the problem? does not work.

Posted: Fri Nov 25, 2011 4:07 am
by tukune
server.properties
Password = :twisted: :twisted: :twisted:

Re: What is the problem? does not work.

Posted: Mon Nov 28, 2011 6:00 pm
by davidrq7
I have error like this . I have Java 7 installed etc .
What's wrong ?
Image

Uploaded with ImageShack.us

Re: What is the problem? does not work.

Posted: Mon Nov 28, 2011 11:05 pm
by MELERIX
incorrect db, as you can read it says Unknown database "l2jls"

so check your configs and don't use old configs, also check the guide: http://trac.l2jserver.com/wiki/L2J_Install

Re: What is the problem? does not work.

Posted: Mon Nov 28, 2011 11:17 pm
by cioancanicu
thx 2 u my server is almost k , but the big problem begins now ..... :? :? :?: :?:

1. my login and game server runs and it looks like that :
Image

2. gs ls ipconfig
  • # Note: External/Internal address definitions was moved to the ipconfig.xml

    ExternalHostname = L2xxx.servegame.com
    LoginHost = 127.0.0.1
    LoginPort = 9014
    LoginHost = L2xxx.servegame.com
    GameserverHostname = *
    GameserverPort = 7777
    Driver = com.mysql.jdbc.Driver
    URL = jdbc:mysql://localhost/l2jdb
    Login = root
    Password = root
    MaximumDbConnections = 100
    MaximumDbIdleTime = 0
    RequestServerID = 1
    AcceptAlternateID = True
    MaximumOnlineUsers = 100
    AllowedProtocolRevisions = 146;148;152;214;216
    CnameTemplate = .*
    PetNameTemplate = .*
    CharMaxNumber = 7
  • ExternalHostname = L2xxx.servegame.com
    InternalHostname = L2xxx.servegame.com
    LoginserverHostname = *
    LoginserverPort = 2106
    LoginHostname = *
    LoginPort = 9014
    IpUpdateTime = 15
    LogLoginController = True
    LoginTryBeforeBan = 10
    LoginBlockAfterBan = 600
    AcceptNewGameServer = False
    ForceGGAuth = False
    EnableFloodProtection = True
    FastConnectionLimit = 15
    NormalConnectionTime = 700
    FastConnectionTime = 350
    MaxConnectionPerIP = 50
    Driver = com.mysql.jdbc.Driver
    URL = jdbc:mysql://localhost/l2jdb
    Login = root
    Password = root
    MaximumDbConnections = 10
    MaximumDbIdleTime = 0
    ShowLicence = True
    AutoCreateAccounts = True
    Debug = False
    Assert = False
    Developer = False
  • <?xml version="1.0" encoding="UTF-8"?>
    <!-- Externalhost here (Internet IP) or Localhost IP for local test -->
    <gameserver address="L2xxx.gameserve.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ipconfig.xsd">
    <!-- Localhost here -->
    <define subnet="127.0.0.0/8" address="127.0.0.1" />
    <!-- Internalhosts here (LANs IPs) -->
    <define subnet="255.255.255.255" address="193.231.252.1" />
    </gameserver>
3. i cannot login from other computer to my server; it freeze at login ....."please wait a moment"

4. i make inbound rules and outbound rules at firewall for 9014,7777,2106..... , i think i'm missing something .... i'm juat not an programer .... , search at all kind of forums and made changes like i saw (ipconfig;hosts-etc)i had router , i give up thinking that router is problem ..... i made direct connection to broadband ..... sorry for the long post , i just try to be accurate..

thanx for reading all this stuff
best regards


i just try to work it out but ... my IQ is bluffin me :mrgreen:

what should i do now ??? :?: :?:

Re: What is the problem? does not work.

Posted: Mon Nov 28, 2011 11:22 pm
by MELERIX
ok, why you have modified: LoginHost, internalHost, ExternalHost in configs ?

if the config says the following:
# WARNING: Please don't change default IPs here if you don't know what are you doing!
# WARNING: External/Internal IPs are now inside "ipconfig.xml" file.
and btw the configs you are using, are not valid for a h5 server.