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 8u45, read the license and, if you agree, click Accept License Agreement
- Still in that section, click on jdk-8u45-windows-x64 (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 MARS for Java EE
- Browse to Eclipse Downloads
- In the dropdown menu on the right, select your OS
- Click on the Eclipse version you want. I choose Eclipse IDE for Java EE Developers, Windows 64 bit.
- Note: the width (32 bit or 64 bit) must match the width of your installed JDK. You installed jdk-8u45-windows-x64 above, so download the 64-bit Eclipse.
- Unzip the downloaded zip file to somewhere it can run. For example, C:\Users\YourLogin\Documents
- I prefer putting Eclipse under my Windows Documents folder because in the past I’ve had permissions/plugin issues if I installed Eclipse in C:\Program Files or elsewhere directly under C:
- The eclipse.exe file in the unzipped folder is the runnable Eclipse. Pin this to your taskbar or start menu, or create a desktop shortcut for it.
- Note: multiple versions of Eclipse can co-exist if necessary. You just need to remember which is which.
- 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.