What is the problem? does not work.

Find the proper support area, Saga-Version.
Forum rules
READ NOW: L2j Forums Rules of Conduct
User avatar
Motorola
Posts: 16
Joined: Tue May 03, 2011 4:42 am

What is the problem? does not work.

Post 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?
User avatar
Dumpster
Posts: 254
Joined: Thu Nov 04, 2010 5:15 am
Location: U.S.A

Re: What is the problem? does not work.

Post by Dumpster »

do you have java 7 installed?
Makes no claim to know anything about anything.
User avatar
Motorola
Posts: 16
Joined: Tue May 03, 2011 4:42 am

Re: What is the problem? does not work.

Post by Motorola »

Thanks, after installation, all work.
munte
Posts: 2
Joined: Mon Oct 03, 2011 8:37 pm

Re: What is the problem? does not work.

Post 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
blarke
Posts: 77
Joined: Thu Nov 18, 2010 7:48 am

Re: What is the problem? does not work.

Post 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)
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: What is the problem? does not work.

Post by Zoey76 »

If you do have Java 7 then check compilance level on Eclipse, it may be using 1.7 instead of 1.6.
Powered by Eclipse 4.30 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.2.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
blarke
Posts: 77
Joined: Thu Nov 18, 2010 7:48 am

Re: What is the problem? does not work.

Post 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)
munte
Posts: 2
Joined: Mon Oct 03, 2011 8:37 pm

Re: What is the problem? does not work.

Post 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.
Morus
Posts: 21
Joined: Fri Sep 18, 2009 8:53 pm

Re: What is the problem? does not work.

Post 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
cioancanicu
Posts: 2
Joined: Thu Nov 24, 2011 11:38 am

Re: What is the problem? does not work.

Post by cioancanicu »

Can some1 help me with this error !
ty in advance

Image

Uploaded with ImageShack.us
User avatar
tukune
Posts: 533
Joined: Sun Mar 29, 2009 2:35 pm
Location: Japan

Re: What is the problem? does not work.

Post by tukune »

server.properties
Password = :twisted: :twisted: :twisted:
You do not have the required permissions to view the files attached to this post.
davidrq7
Posts: 11
Joined: Mon Nov 28, 2011 4:25 pm

Re: What is the problem? does not work.

Post by davidrq7 »

I have error like this . I have Java 7 installed etc .
What's wrong ?
Image

Uploaded with ImageShack.us
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: What is the problem? does not work.

Post 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
cioancanicu
Posts: 2
Joined: Thu Nov 24, 2011 11:38 am

Re: What is the problem? does not work.

Post 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 ??? :?: :?:
Last edited by cioancanicu on Mon Nov 28, 2011 11:41 pm, edited 2 times in total.
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: What is the problem? does not work.

Post 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.
Post Reply