Skip to content

Commit

Permalink
rework after OH5 release
Browse files Browse the repository at this point in the history
Signed-off-by: Holger Friedrich <[email protected]>
  • Loading branch information
holgerfriedrich committed Jan 8, 2025
1 parent 2122c92 commit a77c1e4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion configuration/blockly/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Important: For Blockly to work, you need to have the [Javascript Scripting Addon
### openHAB 3 / openHAB 4 to openHAB 4.3 or Later - Migration

From openHAB 4 onwards, the script engine is GraalJS provided by the [JS Scripting Addon](https://www.openhab.org/addons/automation/jsscripting/), **ECMAScript 2022**, when Blockly creates new scripts.
OpenHAB versions before 4.3 could use **ECMAScript 2022** or **NashornJS** with **ECMAScript 5.1**, either installed by default or installed through an Addon.
openHAB versions before 4.3 could use **ECMAScript 2022** or **NashornJS** with **ECMAScript 5.1**, either installed by default or installed through an Addon.
**NashornJS** is no longer an option with openHAB 4.3 or later. Therefore the generated Blockly code needs to be converted to **ECMAScript 2022**.

Converting is as easy as making sure the [JS Scripting Addon](https://www.openhab.org/addons/automation/jsscripting/) is installed, and opening your Blockly script.
Expand Down
4 changes: 2 additions & 2 deletions installation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ Oracle Java is also suitable for most configurations but it's not recommended. L

::: warning
Java 17 is recommended for openHAB 4.x series.
OpenHABian can install Java 21, but only on the native 64-bit image.
openHABian can install Java 21, but only on the native 64-bit image.
Please note that versions of Java other than 17 and 21 are not supported at the moment.

Upcoming openHAB 5 will require Java 21.
openHAB 5 requires Java 21.
:::

| Java Platform | Advantages | Disadvantages |
Expand Down
2 changes: 1 addition & 1 deletion installation/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ When installing Zulu or Zulu Embedded from a .zip or .tar archive, make sure to

::: tip Note
Make sure to download Zulu or Java **17**.
Using Java 21 is possible, and will be required for openHAB 5.
Java 21 can be used openHAB 4.x, and is required for openHAB 5.
:::

## Installation
Expand Down
1 change: 1 addition & 0 deletions installation/synology.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ title: Synology DiskStation
:::tip Note

openHAB 4.x series requires Java 17.
Java 21 can be used openHAB 4.x, and is required for openHAB 5.
You will need to provide a working Java installation on your DiskStation.
The sections below are written for Java 11 but the docs are not updated currently, since we have not secured knowledge about how to install Java 17 on the DiskStation.
If you can provide some proper sources and explanation, we are happy to include your contribution into this article.
Expand Down

0 comments on commit a77c1e4

Please sign in to comment.