-->

Build issues RXTX library on Wildfly 10.0

2019-08-13 19:07发布

问题:

I have a simple java application using the RXTX library and it is working fine.No links errors and no builds errors.

I made another web dynamic application (JAVA EE) using the same library but when i try to deployed it on a Wildfly 10.0 i have this error :

java.lang.NoClassDefFoundError: gnu/io/CommPortIdentifier

Which i know means that either the library is not found or loaded multiple times.

Here is the library :

and here is the hierarchy of my application :

As you can see for the Eclipse part it is ok, but on the server-side it is not working.

I aleady read this and this, but it did not solve my problem.

I tried to put the .jar and the dlls of the library in multiple folders of the wildfly server, to change the classpaths ... but nothing.