eclipseubuntulombok

Ubnutu : install lombok in Eclipse IDE show error "can't write directory" even using sudo


I am facing problem to install Lombok on Eclipse, it shows an Error message attached screenshot.

I also tried with root (with sudo) user or with command sudo java -jar lombok.jar . I am using ubuntu 20.04 LTS. Kindly help, how I install lombok?

 Screenshot


Solution

  • The reason behind this is, you've installed eclipse via snap. Snap is immutable directory, so you cannot add/update code in it.

    There are two options to achieve your goal :

    Opt 1 -> Create your own eclipse.ini file that runs with lombok. Here is a good description.

    Opt 2 -> Uninstall eclipse from snap, install it via eclipse web page, than you can surely add your lombok plugin with installer.