search

Home  >  Q&A  >  body text

java - myeclipse使用lombok

myeclipse导入lombok后为什么会显示警告,使用IDEA需要安装插件,myeclipse也是要安装什么或者要修改什么配置吗?

PHPzPHPz2895 days ago434

reply all(2)I'll reply

  • PHPz

    PHPz2017-04-18 10:01:04

    Yes, myeclise also needs to install plug-ins. Execute java -jar lombok.jar to pop up the graphical interface. Select the directory of myeclipse and the installation will be successful.
    The official website of lombok has an installation tutorial

    reply
    0
  • ringa_lee

    ringa_lee2017-04-18 10:01:04

    1. Visit https://projectlombok.org/dow... and download lombok.jar;

    2. Copy lombok.jar to the Eclipse/MyEclipse installation directory;

    3. Add at the end of the eclipse.ini/myeclipse.ini configuration file in the Eclipse/MyEclipse installation directory:

         -Xbootclasspath/a:lombok.jar
         -javaagent:lombok.jar
    4. Restart Eclipse/MyEclipse.

    reply
    0
  • Cancelreply