Dynamically loading a native library inside Java applet

后端 未结 5 1655
孤街浪徒
孤街浪徒 2020-12-17 07:11

I am trying to write a Java applet that will read from a user\'s serial port. For this I am using the Java Comm API in conjuction with the RXTX library. I\'ve successfully m

5条回答
  •  不知归路
    2020-12-17 07:38

    Frankly, trying to access devices from a Java applet is a bad idea even if you could make it work, and loading a dynamic library into the conventional applet is an even worse idea; in fact, I'd be astounded if you could find a way to trick a modern browser into doing it. (Consider the possible security implications.)

    You're better off, as suggested on other questions, building an app that can be launched with Web Start.

提交回复
热议问题