- 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.
- If you are on Mac or other OS, launch up Terminal.
- cmd + space -> Type terminal -> Press enter
If you are in windows,
java -version
is working andjshell -version
is not working, directly jump to the sectionSetting PATH environment variable in Windows
- Check if there are any pre-existing Java installs. Uninstall them and reinstall again.
- Temporarily turn off firewalls and antivirus software.
- If you get file corrupt message, download the installation file again.
- Check if you are on 32-bit OS or 64-bit OS. Remember, Java 9 is not supported on 32 bit windows.
- Check if you need PATH variable to point to right Java Version - https://www.java.com/en/download/help/path.xml
- Windows - https://docs.oracle.com/javase/9/install/installation-jdk-and-jre-microsoft-windows-platforms.htm
- Mac - https://docs.oracle.com/javase/9/install/installation-jdk-and-jre-macos.htm#JSJIG-GUID-2FE451B0-9572-4E38-A1A5-568B77B146DE
- Linux - https://docs.oracle.com/javase/9/install/installation-jdk-and-jre-linux-platforms.htm#JSJIG-GUID-737A84E4-2EFF-4D38-8E60-3E29D1B884B8
Two Options
- Short Route -
Click
Start Button orCtrl + Esc
to launch start menu and type inEnv
. ChooseEdit System Environment Variables
. - Long Route - Select
Control Panel
and thenSystem
. ClickAdvanced
and thenEnvironment Variables
.
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!
- Java JDK 9
-
Search google for “download eclipse” and choose the first result. The direct link is http://www.eclipse.org/downloads/eclipse-packages/.
-
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.)
-
Wait for the download to complete. Extract the zip file to a folder (Example : c:\eclipse).
-
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
- 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
- Use 7Zip instead of windows built-in decompression utility.
- Unzip to root folder (e.g. c:) compared to a long directory path (e.g. c:\Program Files\Eclipse).
- Reference - https://wiki.eclipse.org/Eclipse/Installation#Troubleshooting