Lombok is a great plugin that has an installer for Eclipse and IntelliJ. AnyLogic is Eclipse-based, so how do we get it to work there too?
Asked
Active
Viewed 222 times
1 Answers
4
On a Mac, this is the most recent process:
- Go to Applications, right click on AnyLogic, and select Show Package Contents
- Copy
lombok.jar
toContents/MacOS
- Edit
AnyLogic.ini
. Add-javaagent:lombok.jar
on a line by itself after-vmargs
Windows and Linux are similar.

Dylan Knowles
- 2,726
- 1
- 26
- 52
-
Very interesting, did not know this was possible, but I assume only applicable if all team members make use of the same plugin, since the code Lombok creates is not in the ALP file? – Jaco-Ben Vosloo Aug 30 '21 at 09:48
-
Yup, but if you're designing with Lombok as a key pillar you'd just enforce everyone to use it anyway, if for no other reason than their code wouldn't compile. – Dylan Knowles Aug 30 '21 at 14:51
-
2I am curious to know if this will be compatible with AL 9 coming the end of this year. Since it is now browser-based it might not use the Eclipse technology in the same way it used to. – Jaco-Ben Vosloo Aug 31 '21 at 06:09
-
As long as it has a Java backend this approach should work in some way or another. `-javaagent` AFAIK is a JVM thing and not an Eclipse thing. – Dylan Knowles Aug 31 '21 at 17:46
-
3On Windows it might be necessary to set it using `-javaagent:./lombok.jar'. Also don't forget to import lombo.jar as a library dependency. – Artem P. Sep 13 '21 at 15:59