Installing Eclipse with Java 9. Minimum barebones Eclipse IDE for Java EE Developers. Fast. Eclipse Oxygen 1a

Eclipse IDE is slow. Java 9 is now supported by Eclipse Oxygen. I show you how to install a minimum version of Eclipse IDE for Java EE Developers, without the bloat, and fast!!!

This tutorial:

  • is NOT for Eclipse beginners, it’s for developers.
  • assumes linux
  • assumes you have Tomcat downloaded and unzipped and not installed (using any package manager) and not running.
  • creates a very simple servlet and a web page.

Download Oracle Java 9 JDK

1. Download JDK from the Oracle download site and save the download to your Downloads directory:

~/Downloads/

Oracle JDK download site

Download Eclipse IDE Installer

3. Download the Eclipse Installer linux 64 bit and save the download to your Downloads directory:

~/Downloads/

Eclipse IDE linux 64 bit installer download

4. Rename the existing Eclipse settings directory. Rename the profiles directory. (We want a brand new environment):

$ cd ~
$ ls -lart | grep eclipse
drwxrwxr-x   10 louie louie   4096 Sep 23 18:00 .eclipse
$ mv ~/.eclipse ~/.oldeclipse
$ ls -lart | grep eclipse
drwxrwxr-x   10 louie louie   4096 Sep 23 18:00 .oldeclipse

$ ls -larth | grep p2
drwxrwxr-x    6 louie louie 4.0K Oct 12 15:17 .p2
$ mv .p2 .oldp2
$ ls -larth | grep p2
drwxrwxr-x    6 louie louie 4.0K Oct 12 15:17 .oldp2
        

5. Go to ~/Downloads, uncompress the Eclipse download into ~/Downloads/:

$ cd ~/Downloads
$ ls -lart eclipse-inst*
-rw-rw-r-- 1 louie louie 48022873 Oct 11 16:13 eclipse-inst-linux64.tar.gz

$ tar -xzf eclipse-inst-linux64.tar.gz

$ ls -lart | grep eclipse-inst
drwxr-xr-x   7 louie louie      4096 Jun 14 02:38 eclipse-installer
-rw-rw-r--   1 louie louie  48022873 Oct 11 16:13 eclipse-inst-linux64.tar.gz
        

6. Also in ~/Downloads, uncompress the JDK download into ~/Downloads/:

$ cd ~/Downloads
$ ls -larth | grep jdk-9
-rw-rw-r--   1 louie louie 331M Oct 11 17:27 jdk-9_linux-x64_bin.tar.gz
$ tar -xzf jdk-9_linux-x64_bin.tar.gz
$ ls -larth | grep jdk-9
-rw-rw-r--   1 louie louie 331M Oct 11 17:27 jdk-9_linux-x64_bin.tar.gz
drwxrwxr-x   8 louie louie 4.0K Oct 11 18:15 jdk-9
        

Remaining steps

  1. Add Java’s bin directory to the path:

    $ echo 'export PATH=~/Downloads/jdk-9/bin:$PATH' >> ~/.bashrc
    $ source ~/.bashrc
    
    $ jshell
    |  Welcome to JShell -- Version 9
    |  For an introduction type: /help intro
    
    jshell> /exit
    |  Goodbye
    $
              
  2. Start the install of Eclipse:

    $ cd eclipse-installer
    $ ./eclipse-inst
              
  3. After the installer program starts, click the icon to update the installer (top)

  4. Click on Eclipse Platform (absolute minimum IDE) and accept the suggested directory

  5. Help/Install New Software/All Available Sites:

    -Eclipse Java EE Developer Tools

    -Eclipse Java Web Developer Tools

  6. Install: JST Server Adapter Extension (just this one!)

  7. Window/Perspective/Open Perspective/Other/Java EE

  8. Window/Show View/Other/Problems

  9. File/New/Dynamic Web Project/myproject/Finish

  10. Right click on myproject/New/Servlet/Java package:mystuff/Class name:MyServlet/Finish

  11. Right click on myproject/Properties/Java Build Path/Classpath/Add External Jars/servlet-api.jar (from your Tomcat9 folder)/Ok/Apply and Close

  12. (Optional)Markers Tab (at the bottom of the screen)/(expand)Classpath Dependency Validator Message/Right click on Classpath Entry/Quick fix/Finish

  13. Right click on myproject/Run as/Run on server/(manually define a new Apache/Tomcat9 server)/Finish (shows error page)

  14. Point Firefox/Chrome to http://localhost:8080/myproject/MyServlet (and smile!)

  15. Find WebContent folder in the project, right click on it/New/HTML File/index.html/Finish

  16. Insert your hello world content into that page, and save.

  17. Visit your masterpiece at http://localhost:8080/myproject/

  18. If you found this useful, leave a thanks in the comments below. Share the luv.

Advertisements

About SunKing2

Former web developer, guitar player, started Piano 2012 -yes still doing it! Recovery, sobriety, mental health advocate.
This entry was posted in Eclipse and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s