We moved our repositories to BitBucket!

If you can't login or you can't register to the forums do not rise an issue, instead please write to support (at) l2jserver.com

Check our wiki!

Report server issues here

Forum has been updated to phpBB 3.2, let's see if this fixes some minor bugs we had.

Thank you for visiting http://www.l2jserver.com/

JDK Version

Find the proper support area, Saga-Version.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Locked
STARKILLER
Posts: 8
Joined: Tue Apr 15, 2014 7:27 pm

JDK Version

Post by STARKILLER » Tue Apr 15, 2014 9:35 pm

Greetings.
build.xml define required jdk version, like 1.6 or 1.7.
But what about jdk updates? What's batter to use to compile l2j server: jdk with newest update, or jdk with older update, that was released nearly current server release?
Is it matter at all?

User avatar
jurchiks
Posts: 6760
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: JDK Version

Post by jurchiks » Wed Apr 16, 2014 8:43 am

You should be able to compile with JDK8. L2J doesn't use any of the new features yet though, because Eclipse stable doesn't support JDK8 yet.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.

STARKILLER
Posts: 8
Joined: Tue Apr 15, 2014 7:27 pm

Re: JDK Version

Post by STARKILLER » Wed Apr 16, 2014 2:51 pm

I am interested to hear an info about subversions (updates) to current jdk versions aka 1.6, 1.7.
You are telling me there is no difference which version to use at all.
I am not familiar with java yet, that's why I started to ask.
For example in c++ there is a big difference between a libraries, like 2005, 2008, 2010.
When there is no difference which libraries to use, I see it possible only when:
1. Every newer version have a pack of all previous versions (like Physics for example).
2. Every newer version have the same libraries, which has no sense.

So when you advised me to use jdk 8, the only way I see it normal thing to do - if it works as I describe as a 1st way.
But I prefer to use version required by the source code.
As I said before, I want to hear, which update (subversion) should I use: the newest one or the actual one at the time of source code release (mean old chronicles server releases).
Any extra explanation will be appreciated.

User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 6862
Joined: Tue Aug 11, 2009 3:36 am

Re: JDK Version

Post by Zoey76 » Wed Apr 16, 2014 5:33 pm

I don't use Subversion, I use Subclipse as Eclipse's SVN client, both the stable and beta branches require JRE7 to run and JDK7 to work on the source, and it's as jurchiks said compatible with JDK8.
Using Eclipse Photon 4.8 - OpenJDK11 - MySQL 8.0.12 - L2J Server :+1:
Live support

User avatar
jurchiks
Posts: 6760
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: JDK Version

Post by jurchiks » Wed Apr 16, 2014 5:36 pm

Subversion is not related to Java.
I, personally, have no trouble with SVN 1.8 whatsoever.
Just use JDK8 and SVN 1.8, if you get any problems, write here and we'll solve them.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.

STARKILLER
Posts: 8
Joined: Tue Apr 15, 2014 7:27 pm

Re: JDK Version

Post by STARKILLER » Wed Apr 16, 2014 6:18 pm

By subversion of jdk I mean not svn client.
I mean jdk sub-version aka jdk 1.6 u01 - jdk 1.6 u40 for example.
Perhaps I am worried to much about that.
By the info you said I could made conlusion, that the code witch require 1.6 version of jdk could be successfully compiled even by jdk 1.7 - jdk 1.8.
I just used to be precise with the tools versions and choose the most proper one. In most of the cases that's important.

User avatar
jurchiks
Posts: 6760
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: JDK Version

Post by jurchiks » Wed Apr 16, 2014 6:29 pm

JDK8, latest version.
By the info you said I could made conlusion, that the code witch require 1.6 version of jdk could be successfully compiled even by jdk 1.7 - jdk 1.8.
That is true.
Java is backwards-compatible down to 1.5 or even 1.4, afaik.
You can't compile Java 8 code with Java 6, but you can do the opposite.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.

Locked