I am doing the problem that LoadLibrary encountered in a project

xiaoxiao2021-03-06  38

The previous subsidiary made a maritime project, which needs to call the .so class library under Linux, and use the LoadLibrary method in the Java file to load this class. But after the call is called. But in java.policy

Permission java.net.socketpermission "*", "connect, accept, resolve";

Permission java.lang.RuntimePermission "loadLibrary. *";

But there is a problem that we load this class through the EJB container, running normally in the container, once we re-deploy the program, load this class again, then report the exception. There is still no good solution to find a good solution.

转载请注明原文地址:https://www.9cbs.com/read-72964.html

New Post(0)