I'm developing an applet that uses the RXTX library, it works fine on eclipse, but when i export the jar and embed in an html page I get

NoClassDefFoundError: could not initialize class gnu.io.CommPortIdentifier.

I suppose that I don't have to include the jar in the embed tag, because it is included in the java environment extensions, but I tried it and it didn't worked, how can i solve this?

If I include the source of the RXTXcomm library or anything like that, could it work?

有帮助吗?

解决方案

Check this question it might help you. As they say the error is probably you don't have ALL RxTx native dependency in the right directory or path.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top