Clean Code hochulshin.com

eclipse - How to install eclipse on ubuntu 14.04

2016-07-24

Let’s install the eclipse on ubuntu 14.04

Installation

  1. Move to the eclipse web page and download the latest version of the eclipse. Note that you check 32-bit or 64-bit.
  2. After completing the download, open a terminal and move to the folder where the file was downloaded for example ~/Downloads.
  3. tar -zxvf [the eclipse file] /opt
  4. sudo ln -s /opt/[eclipse folder]/eclipse /usr/local/bin
  5. Create a new file eclipse.desktop in /usr/share/applications/ and add the below code. Then ‘sudo desktop-file-install /usr/share/applications/eclipse.desktop’
[Desktop Entry]
Name=Eclipse
Type=Application
Exec=/opt/[eclipse folder]/eclipse
Terminal=false
Icon=/opt/[eclipse folder]/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=eclipse.desktop

For Eclipse icon to be displayed in dash, run following command:

  • sudo cp /opt/eclipse/icon.xpm /usr/share/pixmaps/eclipse.xpm

1. default Configuration

1.1 VIM

  1. Menu > Help > Install New Software… > Add button
  2. Name: vim, Location: http://vrapper.sourceforge.net/update-site/stable
  3. Select all > Next …
  4. Accept the license agreement > Finish

1.2 Code snippets

  • Preferences > Java > Editor > Templates
1.2.1 sout
System.out.println("${cursor}");
1.2.2 siscan
Scanner scan = new Scanner(System.in);
${cursor}
scan.close();
1.2.3 psvm
public static void main(String argc[]){
	${cursor}
}

1.3 Java code formatter setting

  1. Download Google Java Style formatter
  2. Preferences > Java > Code Style > Formatter
  3. Import the downloaded formatter
  4. Edit
  5. Bracess tab > Lambda body > Next line indented
  6. OK

2. For Web Projects

  1. Menu > Help > Install New Software…
  2. The drop down menu of Work with
  3. Select the corresponding version. For example, mars if the version of eclipse is mars(4.5)
  4. In the box of software list, find ‘Web, XML, Java EE and OSGi Enterprise Development’.
  5. Select Eclipse Java EE Developer Tools, Eclipse java Web Developer Tools Eclipse Web Developer Tools, and JavaScript Development Tools
  6. Install them and accept the term of license agreement.

3. For the AWS Toolkit for Eclipse

  1. Menu > Help > Install New Software… > Add button
  2. Name: aws, Location: https://aws.amazon.com/eclipse
  3. Select all > Next …
  4. Accept the license agreement > Finish

3.1 Register AWS Key ID

3.1.1 Create AWS Key
  1. Open the AWS > IAM console.
  2. From the navigation menu, click Users.
  3. Select your IAM user name.
  4. Click User Actions, and then click Manage Access Keys.
  5. Click Create Access Key. Now you get the Access Key.
3.1.2 Register AWS Key in the eclipse
  1. Open Eclipse’s Preferences dialog box and click AWS Toolkit in the sidebar.
  2. Type or paste your AWS access key ID in the Access Key ID box.
  3. Type or paste your AWS secret access key in the Secret Access Key box.
  4. Click Apply or OK to store your access key information.

Similar Posts

Comments