# openHAB 4 Windows issue

**URL:** <https://community.openhab.org/t/openhab-4-windows-issue/149765>\
**Category:** Migration\
**Created:** [September 20, 2023, 12:54pm UTC](https://community.openhab.org/t/openhab-4-windows-issue/149765 "2023-09-20T12:54:09Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![wborn](https://community.openhab.org/user_avatar/community.openhab.org/wborn/32/55946_2.png) [@wborn](https://community.openhab.org/u/wborn)\
**Post date:** [September 20, 2023, 3:02pm UTC](https://community.openhab.org/t/openhab-4-windows-issue/149765/9 "2023-09-20T15:02:58Z")

</div>

> [@justaoldman](#):
>
> `Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private transient java.util.NavigableMap java.util.TreeSet.m accessible: module java.base does not "opens java.util" to unnamed module @d97db2`

Do you run openHAB as a service? Perhaps it doesn’t properly execute the startup script. Does it work if you start openHAB from the command line instead? There is some [config](https://github.com/openhab/openhab-distro/blob/c50140639681381fc6af743bffc0c9a205878406/distributions/openhab/src/main/resources/bin/karaf.bat#L420) to prevent exceptions like these by “opening” the package. By default Java class internals are unavailable but some older code still depends on Java internals so that’s why these packages are opened.

---

_[View the full topic](https://community.openhab.org/t/openhab-4-windows-issue/149765)._
