Setting Up Java and Eclipse for Windows
If you have any issues after completing this setup, please visit our page Support: Troubleshooting Common Issues which provides solutions to many of the errors that our learners encounter.
In this course we (and you) will be using the Eclipse integrated development environment (IDE) to develop and run our Java code. Eclipse is a powerful, industry-grade IDE. While it might be a little confusing at first because of its power, once you get the hang of it, it will provide for a very pleasant programming experience and you’ll wonder how you ever programmed without it!
Part 1: Install the Java JDK, if you don’t have it already installed
Eclipse accompanies its own compiler, which implies numerous individuals can compose programs utilizing Eclipse without introducing the Java Development Kit (JDK for short). However, having a working JDK is an extremely helpful thing, and is a simple method to forestall potential issues later on. Along these lines, we prescribe introducing the JDK to your framework. In this class we have tried our files with Java adaptations 7 and 8, so on the off chance that you have anything more seasoned than that, you'll need to redesign.
1. Go to http://www.oracle.com/technetwork/java/javase/downloads/index.html
2. Snap on one of the catches to download the most recent rendition of the Java SE JDK. These catches are featured in the screen capture beneath (click it is possible that one).
3. Acknowledge the permit arrangement in the main rundown of files named "Java SE Development Kit … " and afterward download the file that is appropriate for your working framework.
4. Install the JDK as appropriate for your operating system. If you need instructions, you can find them here:
That’s it. You’ve got the Java SDK on your machine (SDK stands for software development kit -- a more general term).
Part 2: Download, “install” and setup Eclipse
Next, you will install and setup eclipse. You might find the following guide helpful:
https://wiki.eclipse.org/Eclipse/Installation - Download_Eclipse And/or you can follow our instructions here:
1. Go to https://www.eclipse.org/downloads/
2. Select your working framework from the dropdown menu in the upper right. At that point, in the column named Eclipse IDE for Java Developers, click on 32 or 64-bit as proper to go to the download page.
3. Click the Download button to start your download. Save the compressed (.zip) file wherever you want on your computer. 4. Uncompress the downloaded file to any location on your computer. Note: Eclipse will run from here. There is nothing else you need to do to “install” it. However, Windows users should note the following warning from https://wiki.eclipse.org/Eclipse/Installation#Download_Eclipse
“Note that there is a known issue with the implicit decompression utility on all current forms of Windows. We suggest that you utilize a more vigorous decompression utility, for example, the open source 7zip when decompressing an Eclipse download. A few people report achievement when at first decompressing Eclipse into a root directory (for example c:\) and afterward moving it to a more proper home (for example c:\ProgramFiles\Eclipse)"
5. Whenever Eclipse is unfastened, shown it to either double tapping on eclipse.exe (Windows and Mac) or composing eclipse at the order line (Linux- - ensure it is on your path).
6. Eclipse will request that you select your workspace. This is the place eclipse will store the entirety of your code and venture files. We suggest you pick a directory that gets upheld up consistently (for example on Google Drive, for instance). Alternatively, make this the default workspace (so Eclipse won't ask you again).
7. At that point you will see an invite screen that has connections to a lot of data including tutorials and overviews. We encourage you to try out some of these, but if you just want to dive in and get started, click the Workbench icon in the top right corner.
Setting Up the Correct JDK
IMPORTANT: Sometimes Eclipse will not use the version of Java that we have installed. This can create problems later on. Follow these steps to make sure Eclipse is using the version of Java that we installed in Part 1.
1. Go to Window->Preferences.
2. In the window that opens select Java->Installed JREs in the menu on the left. In the main portion of the window will be listed each version of Java that Eclipse knows about. If you see the newer version of Java that you installed, then make sure the box next to it is checked and click “OK”. If you do not see the newer version of Java you installed, then click “Search…”
3. Navigate to where you installed the JDK in Part 1. Make sure you select the JDK directory and not the newly installed JRE directory! Then click OK.
4. After a moment, eclipse should list a second JRE in the Java->Installed JREs window. Select the JRE in the newly installed JDK folder, and click OK: