无法在Ubuntu系统中编辑eclipse.ini文件以添加lombok设置。

huangapple go评论68阅读模式
英文:

Can't edit eclipse.ini file in ubuntu system for adding lombok settings?

问题

我想将以下内容添加到Ubuntu系统中的eclipse.ini文件中:

-javaagent:lombok.jar
-Xbootclasspath/a:lombok.jar

但是在添加了这些内容后,当我尝试保存文件时,所做的更改根本没有保存或反映在eclipse.ini文件中。

我该如何解决这个问题?

我运行了以下命令以找到eclipse.ini文件的位置:

locate eclipse.ini
/snap/eclipse/48/eclipse.ini

以及这个命令来编辑文件:

sudo -H gedit /snap/eclipse/48/eclipse.ini

但是运气不佳,对该文件所做的更改根本没有保存,显示了一些权限问题。

英文:

I want to add following lines to eclipse.ini file in ubuntu system

-javaagent:lombok.jar
-Xbootclasspath/a:lombok.jar

but after adding these lines when I try to save the file, the changes made are not at all saving or reflecting in eclipse.ini file.

How can I over come from the this issue?

ran below command to find the location of eclipse.ini file

locate eclipse.ini 
/snap/eclipse/48/eclipse.ini

and this command to edit the file

sudo -H gedit /snap/eclipse/48/eclipse.ini

But no luck, the changes made to this file are not at all saved, showing some permission issues.

答案1

得分: 1

Snap文件系统是以只读方式挂载的,因此您可以:

  1. 将/snap/eclipse/current/eclipse.ini复制到您可以编辑的地方,如/etc/eclipse.ini ...
  2. 编辑您想要更新的参数并保存文件。
  3. 打开Menulibre(apt-get install menulibre)。
  4. 搜索“Eclipse”。
  5. 单击Eclipse图标。
  6. 在“命令”输入框中,在二进制路径之后添加--launcher.ini选项...
    --launcher.ini /etc/eclipse.ini
  7. 单击Menulibre的“保存”按钮。
英文:

the snap file system is mounted readonly, so you could:
1.Copy /snap/eclipse/current/eclipse. ini to somewhere you can edit it. /etc/eclipse.ini ...
2.Edit the arguments you want to update and save the file.
3.Open Menulibre.(apt-get install menulibre)
4.Search for "Eclipse."
5.Click in the Eclipse icon.
6.In the "Command" input, add the --launcher.ini option after the binary path. ...
--launcher.ini /etc/eclipse.ini
7.Click in Menulibre's "Save" button.

huangapple
  • 本文由 发表于 2020年10月3日 16:55:16
  • 转载请务必保留本文链接:https://go.coder-hub.com/64182429.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定