Eclipse is a great open-source Integrated Development Environment that supports a lot of languages..
Install a Java Development Kit
For JavaEE work, I currently prefer JaveSE.
- Browse to Oracle’s Java SE Development Kit downloads
- In the section titled Java SE Development Kit 9.0.1, read the license and, if you agree, click Accept License Agreement
- Still in that section, click on jdk-9.0.1_windows-x64_bin.exe (or the right download for your OS)
- Run the downloaded JDK installer, using Run As Administrator
- Add the Windows (or Linux) Environment Variable JAVA_HOME. Set it to the root folder of your newly-installed JDK, which for me is C:\Program Files\Java\jdk1.8.0_51
- If you are working behind a proxy, you have my sympathy. Set these additional Environment Variables
- HTTP_PROXY to your proxy server and port. Something of the form http://myproxy:911
- HTTPS_PROXY to the appropriate server and port. Something of the form http://myproxy:911
- NO_PROXY to a comma-separated (on Windows) list of sites that are not on a proxy. Something like localhost,*.mycorp.com
Install Eclipse Oxygen for Java EE
- Browse to Eclipse Downloads
- Click on the Download button under Get Eclipse Oxygen.
- On the resulting page, click on the Download button.
- Note: the width (32 bit or 64 bit) must match the width of your installed JDK. You installed jdk-9.0.1_windows-x64 above, so download the 64-bit Eclipse.
- Run the downloaded installer using Run as Administrator.
- Choose the version of Eclipse you wish to install. I prefer Eclipse IDE for Java EE developers for Java work.
- If the installation fails, try again with realtime virus scanning temporarily turned off. Remember to turn it on again when you’re done.
- If you are behind a proxy, set the Eclipse Proxies to match:
- Start Eclipse
- Select Window / Preferences
- Select General / Network Connections (that is, expand the General section and click on Network Connections)
- For Active Provider, select Manual. In my experience, Eclipse has never been able to use the Native OS proxy settings.
- Set HTTP to your proxy and port as when you set up Java. Something like http://myproxy and 911
- Set HTTPS to the appropriate server and port, as when you set up Java.
- If you have a SOCKS proxy, set it here.
- NOTE: If SOCKS proxy is checked, make sure to set the proxy to something. It seems that a checked but empty Eclipse SOCKS proxy gives Maven some issues.
- Click OK
- Create a folder named lib under your Eclipse root folder. Something like C:\Users\YourLogin\Documents\eclipse\lib Do this to avoid Tomcat server errors later on.