Linux

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
There is no support for other server builds than the official provided by l2jserver.com
Post Reply
teris1994
Posts: 73
Joined: Sat Apr 30, 2011 1:15 pm

Linux

Post by teris1994 »

Hi i use a pc for server on Linux CentOS 6.x i try run installer for install server and he do that error :

Code: Select all

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/l2jserver/gameserver/GameServer : Unsupported major.minor version 52.0
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: Linux

Post by Sdw »

Update to java8
teris1994
Posts: 73
Joined: Sat Apr 30, 2011 1:15 pm

Re: Linux

Post by teris1994 »

Sometimes problems are so simple solution , thank you very much sir
siulx
Posts: 70
Joined: Mon Jul 20, 2009 4:36 pm

Re: Linux

Post by siulx »

How do you install java ? :P (using Debian)

I decompress the tar.gz file in the /usr/lib/java/ folder
I end up with /usr/lib/java/jre1.8.0_40

after this I try to set the PATH with export PATH=/usr/lib/java/jre1.8.0_40/bin:$PATH, then I type java -version in console but nothing ...

any tips ?
zobobb
Posts: 2
Joined: Sun Oct 10, 2010 7:53 pm

Re: Linux

Post by zobobb »

hi there
  I use Ubuntu as a server ant y use openjdk java
1 sudo add-apt-repository ppa:openjdk-r/ppa
2 sudo apt-get update
sudo apt-get install openjdk-8-jdk
3 sudo update-alternatives --config java
Type in a number to select a Java version.
And set default Java Compiler by running:......
4. Finally check out current Java version by running:
java -version
siulx
Posts: 70
Joined: Mon Jul 20, 2009 4:36 pm

Re: Linux

Post by siulx »

for Debian I only manage by doing this process.

Code: Select all

su -
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update
apt-get install oracle-java8-installer
exit
zobobb
Posts: 2
Joined: Sun Oct 10, 2010 7:53 pm

Re: Linux

Post by zobobb »

do the java -versiun and see what java you have instaled
see attachment
ubuntu use openjdk --->>> Java
and you have ibm java ----->>>> Java
and Oracle java ------>>>> Java
You do not have the required permissions to view the files attached to this post.
teris1994
Posts: 73
Joined: Sat Apr 30, 2011 1:15 pm

Re: Linux

Post by teris1994 »

I have a request more , i don't create new topic for not spam the forum... When i do //server_restart , the server shutdown just and not start again
Post Reply