英文:
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文件系统是以只读方式挂载的,因此您可以:
- 将/snap/eclipse/current/eclipse.ini复制到您可以编辑的地方,如/etc/eclipse.ini ...
- 编辑您想要更新的参数并保存文件。
- 打开Menulibre(apt-get install menulibre)。
- 搜索“Eclipse”。
- 单击Eclipse图标。
- 在“命令”输入框中,在二进制路径之后添加--launcher.ini选项...
--launcher.ini /etc/eclipse.ini - 单击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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论