Closed dvogel closed 1 year ago
The uber-jar did indeed include the transports but the META-INF/services/org.freedesktop.dbus.spi.transport.ITransportProvider
was missing. This is working for me now.
These messages mentioning the classpath could mention the ServiceLoader docs instead of or in addition to the classpath for easier debugging.
The uber-jar did indeed include the transports but the
META-INF/services/org.freedesktop.dbus.spi.transport.ITransportProvider
was missing. This is working for me now.
where is this missing?
EDIT: isnt it this?
The described problem here was, that creating an ueber-jar using maven shade or assembly plugin, you may have to define to include the META-INF/services/org.freedesktop.dbus.spi.transport.ITransportProvider
in the ueber jar as well.
Otherwise the plugins will include the java classes, but not the service loader definition file required when using dbus-java from class path instead of module path.
thank you!
I'm receiving this error:
I would expect the unix transport to be found and used because my environment has:
And my uber-jar contains:
This is using java 17: