简体   繁体   English

如何从命令提示符下编辑eclipse.ini文件-Ubuntu

[英]how to edit eclipse.ini file from command prompt - ubuntu

My program shows Exception : GC overhead limit exceeded . 我的程序显示异常:超出了GC开销限制。 I found one solution as , to increase the eclipse heap size in eclipse.ini.I tried to open eclipse.ini from Ubuntu command prompt using the command given below 我找到了一个解决方案,以增加eclipse.ini中的eclipse堆大小。我尝试使用下面给出的命令从Ubuntu命令提示符中打开eclipse.ini

sudo gedit /usr/bin/eclipse/etc/eclipse.ini

But this is not working..it just opens a new gedit file named eclipse.ini.. How can i open eclipse.ini in Ubuntu command prompt and edit 但这不起作用..它只是打开一个新的gedit文件,名为eclipse.ini。.如何在Ubuntu命令提示符下打开eclipse.ini并进行编辑

Have you tried finding the existing file and editing it? 您是否尝试过查找现有文件并进行编辑? Check this question for more details on where to find the file on Linux, then edit it. 检查此问题以获取有关在Linux上何处查找文件,然后进行编辑的更多详细信息。

The 'eclipse.ini' file is always in the same directory as the eclipse executable in your Eclipse installation. “ eclipse.ini”文件始终与Eclipse安装中的eclipse可执行文件位于同一目录中。 This is normally the root directory of the installation, not 'etc'. 这通常是安装的根目录,而不是“ etc”。

sudo gedit /opt/eclipse/eclipse.ini

You should probably use the following command from a terminal: 您可能应该在终端上使用以下命令:

locate eclipse.ini

You will know the exact location of eclipse.ini and will be able to edit it. 您将知道eclipse.ini的确切位置,并将能够对其进行编辑。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM