how to configure lombok in eclipse luna

后端 未结 13 911
没有蜡笔的小新
没有蜡笔的小新 2020-11-30 09:45

I configure lombok in eclipse Luna with Maven. Annotation is added properly, but no getter and setter are generated.

eclipse.ini

`-vm E:\\Program Fil         


        
13条回答
  •  旧巷少年郎
    2020-11-30 10:18

    Step 1: Goto https://projectlombok.org/download and click on 1.18.2

    Step 2: Place your jar file in java installation path in my case it is C:\Program Files\Java\jdk-10.0.1\lib

    step 3: Open your Eclipse IDE folder where you have in your PC.

    Step 4: Add the place where I added then open your IDE it will open without any errors.

    -startup
    plugins/org.eclipse.equinox.launcher_1.5.0.v20180512-1130.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.700.v20180518-1200
    -product
    org.eclipse.epp.package.jee.product
    -showsplash
    org.eclipse.epp.package.common
    --launcher.defaultAction
    openFile
    --launcher.defaultAction
    openFile
    --launcher.appendVmargs
    -vmargs
    -Dosgi.requiredJavaVersion=1.8
    -javaagent:C:\Program Files\Java\jdk-10.0.1\lib\lombok.jar
    -Xbootclasspath/a:C:\Program Files\Java\jdk-10.0.1\lib\lombok.jar
    -Dosgi.instance.area.default=@user.home/eclipse-workspace
    -XX:+UseG1GC
    -XX:+UseStringDeduplication
    --add-modules=ALL-SYSTEM
    -Dosgi.requiredJavaVersion=1.8
    -Dosgi.dataAreaRequiresExplicitInit=true
    -Xms256m
    -Xmx1024m
    --add-modules=ALL-SYSTEM
    

提交回复
热议问题