Skip to content

Latest commit

 

History

History
168 lines (145 loc) · 6.13 KB

00-02-java-eclipse-installation.md

File metadata and controls

168 lines (145 loc) · 6.13 KB

Installing Java

Google for "java jdk download"

Image

Land on the Oracle JDK Download Site

Image

Accept License Agreement

Image Image

Download JDK for Your Specific Operating System

Image

Launch the Downloaded file

Image

Java Installation Screens

Image

Image

Choose Defaults and Copy Install Location

Image

Image

Choose Defaults and Copy Install Location

Image

Image

Congratulations

Image

Verify Java and JShell Installation

Launch Terminal or Command Prompt

Image

Image

Detailed Instructions
  1. If you are on Windows : Open the Command Prompt window by
  • Click the Start button
  • Select All Programs -> Accessories > Command Prompt.
  • Or use Ctrl + Esc, and type in cmd and launch up command.
  1. If you are on Mac or other OS, launch up Terminal.
    • cmd + space -> Type terminal -> Press enter

Java Version Successful

Image

Image

JShell Version Successful

Image

Image

Launching JShell

Image

Image

Error In Launching JShell

Image

If you are in windows, java -version is working and jshell -version is not working, directly jump to the section Setting PATH environment variable in Windows

Troubleshooting

  1. Check if there are any pre-existing Java installs. Uninstall them and reinstall again.
  2. Temporarily turn off firewalls and antivirus software.
  3. If you get file corrupt message, download the installation file again.
  4. Check if you are on 32-bit OS or 64-bit OS. Remember, Java 9 is not supported on 32 bit windows.
  5. Check if you need PATH variable to point to right Java Version - https://www.java.com/en/download/help/path.xml

More Help

Setting PATH environment variable in Windows

Goal - What we want to do?

Image

More Help


Browsing to Java Folder

Image

Browsing to JDK Bin Folder

Image

Launch Environment Variables

Two Options

  • Short Route - Click Start Button or Ctrl + Esc to launch start menu and type in Env. Choose Edit System Environment Variables.
  • Long Route - Select Control Panel and then System. Click Advanced and then Environment Variables. Image

Image

Select and Edit Path Variable

Image

Image

Add JDK Bin Folder To Path

Image

Image

Image

Image

Installing Eclipse

Eclipse is the most popular open source Java IDE.

Choose the latest available version of Eclipse - Eclipse Oxygen (4.7) or Later.

Tip : Do not use an old eclipse version!

Prerequisites

  • Java JDK 9

Installation

  1. Search google for “download eclipse” and choose the first result. The direct link is http://www.eclipse.org/downloads/eclipse-packages/. Image

  2. Choose the right Operation System. Image

  3. We recommend to choose “Eclipse IDE for Java EE Developers”. Choose 32 bit or 64 bit based on your operating system. (Right-click My Computer, and then click Properties. If "x64 Edition" is listed under System, your processor is capable of running a 64-bit version of Windows.)

  4. Wait for the download to complete. Extract the zip file to a folder (Example : c:\eclipse).

  5. When you unzip Eclipse, the directory layout looks something like this:

   eclipse/
      features/			''the directory containing Eclipse features''
      plugins/			''the directory containing Eclipse plugins''
      eclipse.exe		''platform executable''
      eclipse.ini
      eclipsec.exe              ''(windows only) console executable''
      epl-v10.html		''the EPL license''
       jre/			''the JRE to run Eclipse with''
      notice.html	
      readme	
  1. You can start Eclipse by running eclipse.exe on Windows or eclipse on other platforms. This small launcher essentially finds and loads the JVM. On Windows, the eclipsec.exe console executable can be used for improved command line behavior.

More Details - https://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F

Troubleshooting