Skip to content

Commit 0f8d6b4

Browse files
Updated to JDK21.
1 parent 7c779df commit 0f8d6b4

File tree

7 files changed

+13
-10
lines changed

7 files changed

+13
-10
lines changed

.classpath

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
3-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-21">
44
<attributes>
55
<attribute name="module" value="true"/>
66
</attributes>

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ and understanding the data used by Lineage 2.
1313

1414
## Recommended software
1515

16-
- Liberica JDK 17
16+
- Liberica JDK 21
1717
- Eclipse IDE for Java Developers

build.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
</not>
3535
</condition>
3636
</fail>
37-
<available classname="java.util.stream.Stream" property="JDK17.present" />
38-
<fail unless="JDK17.present" message="Java 17 is required. But your version is Java ${ant.java.version} and probably JDK is not installed." />
37+
<available classname="java.util.stream.Stream" property="JDK21.present" />
38+
<fail unless="JDK21.present" message="Java 21 is required. But your version is Java ${ant.java.version} and probably JDK is not installed." />
3939
</target>
4040

4141
<target name="init" depends="checkRequirements" description="Create the output directories.">
@@ -44,7 +44,7 @@
4444
</target>
4545

4646
<target name="compile" depends="init" description="Compile the source.">
47-
<javac srcdir="${src}" destdir="${build.bin}" compiler="modern" debug="true" debuglevel="lines,vars,source" includeantruntime="false" source="17" target="17" encoding="UTF-8" />
47+
<javac srcdir="${src}" destdir="${build.bin}" compiler="modern" debug="true" debuglevel="lines,vars,source" includeantruntime="false" source="21" target="21" encoding="UTF-8" />
4848
</target>
4949

5050
<target name="jar" depends="compile" description="Create the jar files.">

dist/L2ClientDat.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@echo off
22
@title L2ClientDat Console - L2jMobius Edition
3-
@path="C:\Progra~1\BellSoft\LibericaJDK-17\bin\"
3+
@path="C:\Progra~1\BellSoft\LibericaJDK-21\bin\"
44
@java -splash:images/splash.png -Dfile.encoding=UTF-8 -Djava.util.logging.manager=org.l2jmobius.log.AppLogManager -Xms1g -Xmx2g -jar .\libs\L2ClientDat.jar
55
@pause

dist/data/enums/base.xml

+1
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@
478478
<node index="10" name="client_debug_msg" />
479479
<node index="11" name="getitems" />
480480
<node index="12" name="dice" />
481+
<node index="13" name="siege" />
481482
</enum>
482483
<enum name="ranking_type">
483484
<node index="0" name="character" />

dist/data/structure/format/SkillNameFormat.java

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
/*
23
* This file is part of the L2ClientDat project.
34
*

java/org/l2jmobius/compiler/Compiler.java

+5-4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import javax.tools.Diagnostic;
3030
import javax.tools.DiagnosticListener;
3131
import javax.tools.JavaCompiler;
32+
import javax.tools.JavaCompiler.CompilationTask;
3233
import javax.tools.JavaFileObject;
3334
import javax.tools.StandardJavaFileManager;
3435
import javax.tools.ToolProvider;
@@ -56,11 +57,11 @@ public boolean compile(File... files)
5657
{
5758
final List<String> options = new ArrayList<>();
5859
// options.add("-Xlint:all");
59-
options.add("-source");
60-
options.add("1.8");
61-
options.add("-g");
60+
// options.add("-source");
61+
// options.add("1.8");
62+
// options.add("-g");
6263

63-
final JavaCompiler.CompilationTask compile = Compiler.JAVAC.getTask(new StringWriter(), _memFileManager, _listener, options, null, _fileManager.getJavaFileObjects(files));
64+
final CompilationTask compile = Compiler.JAVAC.getTask(new StringWriter(), _memFileManager, _listener, options, null, _fileManager.getJavaFileObjects(files));
6465
return compile.call();
6566
}
6667

0 commit comments

Comments
 (0)