Difference between revisions of "Setting Default JRE In Eclipse"

From Documentation
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Introduction ==
+
= Introduction =
  
This document will guide you to setup Eclipse IDE use Java Development Kit (JDk) as the default compile JRE for it's projects.
+
This document will guide you to set up Eclipse IDE and use Java Development Kit (JDK) as the default JRE.
For using [https://www.zkoss.org/product/zk ZK framework] 9.5.0, you have to use Java '''1.8'''.
+
For using [https://www.zkoss.org/product/zk ZK Java Web UI Framework] 9.5.0, you have to use Java '''1.8''' or later.
  
== Setup Default JRE as JDK ==
+
= Setup Default JRE as JDK =
  
 
#Once you have started Eclipse, click [Window]/[Preference]:<br/>[[Image: SettingJREinEclipse01.png]]<br/><br/>
 
#Once you have started Eclipse, click [Window]/[Preference]:<br/>[[Image: SettingJREinEclipse01.png]]<br/><br/>

Latest revision as of 09:46, 13 October 2020

Introduction

This document will guide you to set up Eclipse IDE and use Java Development Kit (JDK) as the default JRE. For using ZK Java Web UI Framework 9.5.0, you have to use Java 1.8 or later.

Setup Default JRE as JDK

  1. Once you have started Eclipse, click [Window]/[Preference]:
    SettingJREinEclipse01.png

  2. Select Java/Install JREs on the left, click the Add... button on the right side.
    SettingJREinEclipse02.png

  3. On the first page of popup wizard, select "Standard VM", then click Next.
    SettingJREinEclipse03.png

  4. Click Directory...,
    SettingJREinEclipse04.png

  5. Select JDK's path then press OK.
    SettingJREinEclipse05.png
    Note: on Windows 32bit machine, the default install path of JDK would be C:\Program Files\Java\jdk[version_number]

  6. On next page, verify the the JRE name and it's System libraries are recognized properly by Eclipse itself, then click Finish.
    SettingJREinEclipse06.png

  7. Check the just created JRE entry on the list, then press OK.
    SettingJREinEclipse07.png