Unable to save after editing eclipse.ini (OS Ubuntu 12.04 LTS). How to make changes in eclipse.ini file or in anyother .ini file?

StackOverflow https://stackoverflow.com/questions/10963807

Question

Unable to save after editing eclipse.ini (OS Ubuntu 12.04 LTS). How to make changes in eclipse.ini file or in anyother .ini file?

Eclipse and Scala IDE requires to set Heap Size atleat to 1024 MB. Current Heap size shows 371MB So I need to modify the eclipse.ini

Kindly note that the dialogue to change the permission is disabled and says that 'You are not the owner so you can not change the permissions. (The owner is : root).

Was it helpful?

Solution

If it's actually a permissions problem, you'll need to change the permissions using sudo and chown, then change the permissions if needed.

First, you need to own the file to change the permissions. You do that by running this command: sudo chown your_username:your_username filename

It will ask for your password. Enter the one you logged into Ubuntu with.

Then run: ls -l filename

you'll get output in that may begin something like:

-rw-rw-r--

Note that and are changed to yours. The "-rw-rw-r--" section is what you're interested in next. If the first set of 'r's or 'w's are missing you'll need to add them. Those are the permissions to read and write to the file. You can do that by running this command:

sudo chmod ug+rw

Now editing the file with gedit should work.

I recommend getting familiar with those commands if you're don''t know them already.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top