Lombok not working with STS

后端 未结 18 1939
我在风中等你
我在风中等你 2020-12-14 06:49

Although I love lombok, it gives too much problems while configuring sometimes, specially in Linux. When I was trying to install it, I was getting the following error:

18条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-14 07:41

    If you are using STS4 and having custom -vm arguments like below in SpringToolSuite4.ini file.


    -vm

    C:\Program Files\RedHat\java-1.8.0-openjdk-1.8.0.242-3\bin\javaw.exe


    Then you need add following to your SpringToolSuite4.ini file.


    -vmargs

    -javaagent:lombok.jar


    I have already did below part:

    1. you can rename lombok-1.18.10 to lombok.jar.

    2. Copy lombok.jar as same path of SpringToolSuite4.ini file and install it. java -jar lombok.jar.

提交回复
热议问题