Migrating from 3.4 to 4.3 to 5.1 and from MacOS Intel to MacOS Apple Silicon - Problems with serial bundle

Hi all,

after years of stable operations on an Intel Mac running Openhab 3.4 I decide to switch over to an Apple Silicon Mac mini M2. I initially started out with an intermediate step to OH 4.3.9, upgraded to Java 17 in doing so. Since the core of my home is Enocean-based the Eocean Binding is what I tried first. What I see in the UI, is that the the serial port could not be opened and an error in the logs, stating that the Port could not be found. I verified that the /dev/[cu|tty].usbserial-XXXXXX is present. I tried this with my *.things file that defines the enocean.bridge as well as with a bridge added through the UI.

java.lang.NoClassDefFoundError: gnu.io.RXTXCommDriver

Additionally openhab.log showed: ChatGPT claimed that this was due to old serial bindings/bundles that were still present in 4.3. (an RXTX bundle). I thought that - as I wanted to update to 5.1 anyway, (and rebuild quite a bit of stuff anyway) to give 5.1 a try but the problem persists. (using Java 21). I started out with a bare-minimum OH 5.1, just the Enocean Binding installed.

openhab> bundle:list | grep -i serial
250 │ Active │  80 │ 5.2.1.OH1             │ nrjavaserial
258 │ Active │  80 │ 5.1.0                 │ openHAB Core :: Bundles :: Configuration USB-Serial Discovery
259 │ Active │  80 │ 5.1.0                 │ openHAB Core :: Bundles :: Configuration USB-Serial Discovery for Linux using sysfs scanning
260 │ Active │  80 │ 5.1.0                 │ openHAB Core :: Bundles :: Configuration USB-Serial Discovery using ser2net mDNS scanning
261 │ Active │  80 │ 5.1.0                 │ openHAB Core :: Bundles :: Configuration USB-Serial Discovery for Windows
262 │ Active │  80 │ 5.1.0                 │ openHAB Core :: Bundles :: Configuration Serial
263 │ Active │  80 │ 5.1.0                 │ openHAB Core :: Bundles :: Serial Transport
264 │ Active │  80 │ 5.1.0                 │ openHAB Core :: Bundles :: Serial Transport for RXTX
265 │ Active │  80 │ 5.1.0                 │ openHAB Core :: Bundles :: Serial Transport for RFC2217

ChatGPT claims that the RXTX and the RFC2217 bundles are to blame as they are obsolete now. I tried to get rid of them, but they are not pulled in by the Enocean-Binding but come somewhere from the core. Is anyone successfully running OH 4.3.x or 5.x on an Apple Silicon Mac and interfaces with a USBSerial Device? Any hints where to look next?
Thanks and a Happy New Year
CM