Overview
In this tutorial, we show you how to install Eclipse and get started with Java JDK 10 on Windows 10.Step 1: Install Eclipse on Windows 10
For more details please see the below link. Install Java JDK 10 Step by Step- Go to Oracle Java SE Downloads to download the JDK 10 latest version.
- Double click the JDK installer "jdk-10.0.1_windows-x64_bin.exe" file to install both the JDK on windows 10.
Step 2: Download Eclipse support java 10
- Go to Eclipse Page to download the Eclipse Photon R Packages: http://www.eclipse.org/downloads/packages/release/Photon/R.
- For Platform, choose "Windows 64bit", then select the 'Eclipse IDE for Java EE Developers'. We will receive a 'eclipse-jee-photon-R-win32-x86_64.zip' file.
- To run Eclipse, unzip the 'eclipse-jee-photon-R-win32-x86_64.zip' file and open the "eclipse-jee-photon-R-win32-x86_64\eclipse\" folder and click on the "Eclipse" icon.
Step 3: Write a Hello Java 10! Program
Click File -> New -> Other ... -> Choose Java Project. Click NextEnter the 'Hello Java 10' in Project Name input and select Java Runtime Environment (JRE) is 'JavaSE-10'. Click Next
Then, choose Don't Create module-info.java file.
Finish
Create a Hello class under com.jackrutorial package and write the following code in it.
Hello.java
package com.jackrutorial; public class Hello { public static void main(String[] args) { var helloWorld = new String("Hello Java 10!"); System.out.println(helloWorld); } }
Run Application and check Eclipse console
OutputHello Java 10!