Reputation: 423
I am running Ubuntu 12.04 LTS 64-bit. I recenetly downloaded eclipse kepler from their website and it runs fine and all that. But one thing i noticed was that it was a downloaded archive file, and it wasn't installed on the system. When I launch the icon to the launchbar, it does not open it the next time. And upon restart, the icon is gone. Kindly help me out here. Thank you.
Upvotes: 8
Views: 21621
Reputation: 423
I figured it out after sometime. In order to do so, make a desktop file of the same name of the executable file for example eclipse.desktop in this case. Type the following in the file:
[Desktop Entry]
Version = 1.0
Name=Eclipse
Comment=Used to run C++
Exec= "Path to the executable of the application"
Icon="Path to the icon of the application"
Terminal=false
Type=Application
Categories=Application;
Save the file and then right click on it and click Properties. Go to the Permissions tab and then check allow executing file as program.
Launch eclipse from it and then pin it to the Launcher. Done and Done.
Upvotes: 13
Reputation: 1
The most simple and effective way.
Go to usr/share/applications folder and find Eclipse icon. Right click on it and select copy to desktop.
Thats it. Now double click on this icon and it will run.
Upvotes: -1
Reputation: 144
The simplest way is: Start your App and on Launcher menu click right-mouse button on your app and choose "Lock to Launcher"
Upvotes: 0
Reputation: 2181
I had the same problem when rolling back from Mars to Luna on Ubuntu 16.04. Turns out there was a dirty file left by Mars in:
~/.local/share/applications/eclipse.desktop
created when I had locked Mars to the panel the first time and pointing to the deleted Mars folder. Problem solved by:
Naxt time it should start by clicking the panel icon.
The advantage of re-creating automatically the desktop file this way is that Eclipse is launched with the correct parameters, i.e.:
Exec=/usr/bin/java -Dosgi.requiredJavaVersion=1.6 -XX:MaxPermSize=256m -Xms40m -Xmx512m -jar ...
Upvotes: 4
Reputation: 427
I'm using Ubuntu 15.04 with Eclipse Mars (4.5.0) and did not need to perform any of the above. All I did was:
tar -zxvf eclipse-java-mars-R-linux-gtk-x86_64.tar.gz
sudo mv ./eclipse /opt
/opt/eclipse
eclipse
Lock to Launcher
Eclipse is now in my launcher and works as expected.
Upvotes: 6
Reputation: 4260
Even though it is nearly an year old and I cannot find a relevant question in the SO, I am adding my own answer which worked for me :-)
The easiest way is to create a shortcut to the downloaded eclipse in the /usr/bin directory and pin it to the launcher.
# cd $ECLIPSE_DIRECTORY
# ln -s eclipse /usr/bin/eclipse
And then launch the eclipse like you normally do. Then Right Click on the Eclipse icon in the launcher and Click on Lock To Launcher in the context menu properties.
Upvotes: 0