Skip to content
devonfw-core edited this page Sep 7, 2022 · 5 revisions

Set up JRE for development

CobiGen is supposed to support both java 8 and java 11 even though we are moving to 11. Here is a short description of how to setup the execution environment for developing so that you can test both environments.

By default, CobiGen development tools come with some installed JREs in /software/java (11) and /software/java/additionalJdk (7 and 8)

installed jre

In CobiGen, there is a fixed setup of JAVASE-1.8 in maven, which leads to the odd that no matter which Java is currently used, eclipse keeps showing JAVASE-1.8. A temporary reconfiguration of JRE in build path will also be overwritten by a maven update.

java 11

Eclipse has a fixed list of execution environments, which is automatically matched with the current most suitable installed JRE, in our case JDK-8 by default. The matching JRE is the actual one, which is used to compile no matter which name eclipse shows

execution environments

As that, to move to 11, just setup the match JRE of JAVASE-1.8 to 11 or any version you need

Clone this wiki locally