Hi Chris, i will try the Kar bundles of the driver Many thanks, Jeff
> -----原始邮件----- > 发件人: "Christofer Dutz" <[email protected]> > 发送时间: 2020-08-25 14:40:21 (星期二) > 收件人: "[email protected]" <[email protected]> > 抄送: > 主题: Re: plc4j in osgi env > > You could try out the Kar bundles every driver should produce. Not 100% sure > the 0.7.0 already had that feature, but the 0.8.0-SNAPSHOT definitely should. > > Chris > ________________________________ > Von: 刘存杰 <[email protected]> > Gesendet: Dienstag, 25. August 2020 06:53 > An: [email protected] <[email protected]> > Betreff: plc4j in osgi env > > Hello all together > > I developed a small application and run in OSGi Env. with plc4j modbus driver > 0.7.0, I try to do sth list below > > 1、I package all dependencies into a fat jar, and exception "Unable to find > driver for protocol modbus", driver not registed > > 2、 i try > PlcConnection plcConnection = new > ModbusDriver().getConnection(connectionString) > > plcConnection.connect(); > and exception "Unimplement transport tcp" > > > > > 3、i package the dependencies into multi bundles, and the > org.apache.org.plc4x.java.osgi package missing > > What can i use this project in osgi env.? > > Thanks and Regards, Jeff
