First, download MyEclipse
Official website Download:http://www.myeclipseide.com/
I am using the MyEclipse Pro 2014.run, renamed to Myeclipse.run
Example path:/usr/local/myeclipse/myeclipse2014
Example file name: Myeclipse.run
Second, start the installation
1.ctrl+alt+t open terminal, switch to MyEclipse path: cd/usr/local/myeclipse
2. Set the Myeclipse.run execution permission to install: sudo chmod +x myeclipse.run
3. Run the MyEclipse Setup Wizard, switch to the folder where Myeclipse.run is located, and then sudo./myeclipse.run
4.OK, enter the image interface to install MyEclipse, (choose the installation path, select the system, I am here 32-bit, note change the directory: here to/usr/local/myeclipse/myeclipse2014, otherwise there is a problem on the shortcut),
Three. Create a shortcut to start the program normally
1. Before executing the MyEclipse, we will assign it root: [email protected]:~# cd/usr
[email protected] :/usr/local# sudo chown-r root:root myeclipse
[email protected] :/usr/local# sudo Chmod-r +r myeclipse
[email Protected] :/usr/local# CD ' myeclipse/myeclipse2014/'
[email protected] :/usr/local/myeclipse/myeclipse2014# sudo chown-r root : Root MyEclipse
[email protected]:/usr/local/myeclipse/myeclipse2014# sudo chmod-r +r myeclipse
2. Create the MyEclipse executable file, similar to the. exe file in Windows sudo gedit/usr/bin/myeclipse
After executing the command, the editor is automatically opened, and the following contents are written to their own, with the quotation marks in the English state:
#!/bin/sh
#export mozilla_five_home= "/usr/lib/mozilla/"
Export Myeclipse_home= "/usr/local/myeclipse/myeclipse2014/myeclipse"
$MYECLIPSE _home/myeclipse $*
3. Set file permissions mymeclipse file permissions: sudo chmod 755/usr/bin/myeclipse
4. Add myeclipse2014 shortcut to the dash panel sudo gedit/usr/share/applications/myeclipse.desktop
After executing the command, automatically open the editor, write the following directory to their own, quotation marks in the English state, icon can be arbitrarily replaced:
[Desktop Entry]
Encoding=utf-8
name=myeclipse2014
Comment=ide for Java EE
Exec=/usr/local/myeclipse/myeclipse2014/myeclipse
icon=/usr/local/myeclipse/myeclipse2014/icon.xpm
Terminal=false
Type=application
Categories=gnome; Application;development;
Startupnotify=true
5. The final step, initialize start: '/usr/local/myeclipse/myeclipse2014/myeclipse '-clean
Iv. problems that arise
1. Launch the MyEclipse2014 you just created in the Dash panel , prompting the following error:
The configuration area at '/usr/myeclipse/myeclipse 10/configuration ' was not writable. Please choose a writable location using the '-configuration ' command line option.
Solutions ( myeclipse and all files and folders inside are changed to 777 permissions to read and write and execute ):
sudo chmod-r 777/usr/myeclipse
Install MyEclipse under Ubuntu