Open Laboratory for Technocrats

Grab the developer role, learn concepts & prepare with senior software engineers to get solutions for problems in a software job. Coding and Programming Solutions crafted for you.

Run Eclipse as Root User In Ubuntu


Opening always eclipse as root user is a time consuming. To short out this we can simplify things by making the eclipse to be open always as the root user. It will save the lot of time for the coder as it will have the access to the folders as root user.

Follow the steps for the same to happen:

1. Locate the eclipses .desktop file
 2. Open Terminal and run command
.desktop|grep eclipse 
3. Open with gedit: 
 gksudo gedit /usr/share/applications/eclipse.desktop 
 4. Change then line 
 Exec=APP_COMMAND  
to 
Exec=gksudo -k -u root APP_COMMAND 
5. Save and log out and log in again

Its done now you will be able to open eclipse as root user all the time.

Enjoy learning :) 

Top #3 Articles

Most Read