L2JMobius

The Kamael error compile

the_coca_ · 10 · 551

Offline the_coca_

  • Knight
  • ***
    • Posts: 65
Buildfile: D:\server kamael\L2J_Mobius_Classic_3.0_TheKamael\build.xml
checkRequirements:
init:
   [delete] Deleting directory D:\server kamael\build\bin
    [mkdir] Created dir: D:\server kamael\build\bin
compile:
    [javac] Compiling 2396 source files to D:\server kamael\build\bin
    [javac] error: invalid target release: 21
    [javac] Usage: javac <options> <source files>
    [javac] use --help for a list of possible options

BUILD FAILED
D:\server kamael\L2J_Mobius_Classic_3.0_TheKamael\build.xml:65: Compile failed; see the compiler error output for details.

Total time: 2 seconds


I have everything I need to compile, the others don't give me this problem. I have an old version of the datapack but it is bugged and I cannot compile the new one :( Can someone help me or provide a link to the already compiled new version of Kamael Classic?



Offline the_coca_

  • Knight
  • ***
    • Posts: 65
You need JDK 21.
https://l2jmobius.org/forum/index.php?topic=3231

yes ty, but the bug skill continue... :( the buffs are bugged, try buff with scheme buffer
and the mana potion or hp, cp potion too

npc_268475609_editschemes;Buffs;a;4 Cannot invoke "org.l2jmobius.gameserver.model.skill.Skill.getIcon()" because "skill" is null
[04/04 00:23:51] java.lang.NullPointerException: Cannot invoke "org.l2jmobius.gameserver.model.skill.Skill.getIcon()" because "skill" is null
   at


Offline lserver

  • Vassal
  • *
    • Posts: 6
Buildfile: D:\server kamael\L2J_Mobius_Classic_3.0_TheKamael\build.xml
checkRequirements:
init:
   [delete] Deleting directory D:\server kamael\build\bin
    [mkdir] Created dir: D:\server kamael\build\bin
compile:
    [javac] Compiling 2396 source files to D:\server kamael\build\bin
    [javac] error: invalid target release: 21
    [javac] Usage: javac <options> <source files>
    [javac] use --help for a list of possible options

BUILD FAILED
D:\server kamael\L2J_Mobius_Classic_3.0_TheKamael\build.xml:65: Compile failed; see the compiler error output for details.

Total time: 2 seconds


I have everything I need to compile, the others don't give me this problem. I have an old version of the datapack but it is bugged and I cannot compile the new one :( Can someone help me or provide a link to the already compiled new version of Kamael Classic?

I have a similar problem, with the Interlude Classic version

https://prnt.sc/yF7bBSG3EMkn


Offline the_coca_

  • Knight
  • ***
    • Posts: 65
I have a similar problem, with the Interlude Classic version

https://prnt.sc/yF7bBSG3EMkn

follow the mobius tutorial and remember to edit the windows environment variables


Offline qazokn

  • Vassal
  • *
    • Posts: 3
I'm also having the same issue with "error: invalid target release: 21" when attempting to Run As > Ant Build on build.xml.

I'm trying to build L2J_Mobius_11.2_AgeOfMagic

Output of the console when attempting a build: https://prnt.sc/Z_pCD5rVKn9O



You need JDK 21.
https://l2jmobius.org/forum/index.php?topic=3231
I've installed JDK v21.0.2 as per Mobius's instructions, and have added JDK 21 in Eclipse from menu Window -> Preferences -> Java -> Installed JREs.

Screenshot of Eclipse "Preferences" showing JDK v21: https://prnt.sc/Y0m_wSMKxiXb



follow the mobius tutorial and remember to edit the windows environment variables
I've had a look at the environment variables too, but it looks like it's configured correctly to me:

Screenshot of system environment: https://prnt.sc/X1sj2l3cRHO0
Screenshot of CMD output: https://prnt.sc/28b16a2DXJzd


It looks like the console is not happy with line 65 in build.xml
Code: [Select]
<javac srcdir="${src}" classpathref="classpath" destdir="${build.bin}" compiler="modern" debug="true" debuglevel="lines,vars,source" includeantruntime="false" source="21" target="21" encoding="UTF-8" />


If anyone has any other ideas please let me know.   :P
Otherwise I'll keep troubleshooting and share an update if I manage to get the build working.


Offline Maci

  • Vassal
  • *
    • Posts: 2
i had issues compileing interlude classic, i switched to Liberica Java SDK instead of oracle java sdk.
that solved the compileing issues i had https://bell-sw.com/pages/downloads/#jdk-22

https://ibb.co/xmNSMRS
https://ibb.co/JjmvCsF


Offline qazokn

  • Vassal
  • *
    • Posts: 3
i had issues compileing interlude classic, i switched to Liberica Java SDK instead of oracle java sdk.
that solved the compileing issues i had https://bell-sw.com/pages/downloads/#jdk-22

https://ibb.co/xmNSMRS
https://ibb.co/JjmvCsF

That build method also worked for me using LibericaJDK-21  ;D

The build was successful when doing your suggestion of: build.xml > Run As > External Tools Configuration... > JRE Tab > Seperate JRE: LibericaJDK-21
Whereas using build.xml > Run As > Ant Build was always failing for me.

Thank you for sharing that!

Screenshots: https://prnt.sc/UjxJpsWksSCU


Online anarki

  • Knight
  • ***
    • Posts: 62
And whoever wants can use my way :) Unzip to the mobius project folder and run the necessary bat file.

Before you start, make sure you have JDK 21 installed.

https://drive.usercontent.google.com/download?id=1VeNdhKft2YeM6Zy97XkfP5iuvWWbtJEN&export=download&authuser=0


Offline Maci

  • Vassal
  • *
    • Posts: 2
That build method also worked for me using LibericaJDK-21  ;D

The build was successful when doing your suggestion of: build.xml > Run As > External Tools Configuration... > JRE Tab > Seperate JRE: LibericaJDK-21
Whereas using build.xml > Run As > Ant Build was always failing for me.

Thank you for sharing that!

Screenshots: https://prnt.sc/UjxJpsWksSCU

Creds to Liamxroxy, he helped me when i had the same issue on discord.
Just passing it on :)