Help Needed with SARL and Environment in Java Version Compatibility

11 views
Skip to first unread message

Brandon Hodges

unread,
Aug 20, 2024, 11:28:19 AM8/20/24
to sarl
I'm new to SARL and working on a project where I need to use SARL for agent-based tasks. The environment provided to me is in Java version 22, but my SARL setup is in version 17. I'm running into errors because of the version mismatch.

Is there any way I can work with an environment that's in version 22, or can SARL be used with Java version 22? I'm a beginner, so any help or tips would be greatly appreciated! Also, where can I find syntax help if I make mistakes? I've been using the documentation and ChatGPT 4 for reference.

Thanks a lot!

Stéphane Galland

unread,
Aug 22, 2024, 2:01:19 AM8/22/24
to sarl
Dear Brandon.

We want to release a new version of SARL without this limitation about the JDK. It will be in September.

To have SARL working on different JDK version before this release, you have to regenerate the SARL product:
1) Download the source code from https://github.com/sarl/sarl 
2) Change the JDK configuration in the file "sarl-bom/sarl-properties/sarl-lang.properties" by changing all the properties with a name ending with "max.jdk.version".
3) Open a command-line interface in the root folder of SARL
4) Run the compiler with: mvn clean install -Dmaven.test.skip=true
5) The new product will be in the folder "sarl-eclipse/products/io.sarl.eclipse.products.ide/target/products".

The documentation of SARL in on http://www.sarl.io/docs/official/

Stéphane Galland

unread,
Nov 6, 2024, 4:41:54 PM11/6/24
to sarl
Dear Brandon.

Version 0.14 of SARL, which is just published, acept JDK 21 and higher.

Reply all
Reply to author
Forward
0 new messages