制作 jar 文件,应用程序被 java 安全阻止
Making A jar File, app blocked by java security
我 运行 使用 IntelliJ Idea 运行 jar 文件时遇到问题。项目正在使用 JAVA 1.8.0_201。创建 JAR 时,我构建工件,在 运行 JAR 上我得到错误:
这里是intellij设置
我正在使用 IntelliJ 2018.3,社区
来自官方网站
Java has further enhanced security to make the user system less vulnerable to external exploits. Starting with Java 7 Update 51, Java does not allow users to run applications that are not signed (unsigned), self-signed (not signed by trusted authority) or that are missing permission attributes.
解决方案(*我从未实际尝试过),您可以自行签署项目的 jar 文件,(重要的是)在 Java 安全控制面板中提及(导入)您的证书。这样,您的应用程序将被视为经过签名和验证的应用程序,并且应该没有问题 运行 它。
关于如何对 JAR 进行自签名,以下链接可能会对您有所帮助。
https://www.java.com/en/download/help/java_blocked.xml
https://docs.oracle.com/javase/tutorial/deployment/jar/intro.html
https://docs.oracle.com/javase/7/docs/technotes/guides/jweb/security/rsa_signing.html
Java Error: "Your security settings have blocked a local application from running"
我 运行 使用 IntelliJ Idea 运行 jar 文件时遇到问题。项目正在使用 JAVA 1.8.0_201。创建 JAR 时,我构建工件,在 运行 JAR 上我得到错误:
这里是intellij设置
我正在使用 IntelliJ 2018.3,社区
来自官方网站
Java has further enhanced security to make the user system less vulnerable to external exploits. Starting with Java 7 Update 51, Java does not allow users to run applications that are not signed (unsigned), self-signed (not signed by trusted authority) or that are missing permission attributes.
解决方案(*我从未实际尝试过),您可以自行签署项目的 jar 文件,(重要的是)在 Java 安全控制面板中提及(导入)您的证书。这样,您的应用程序将被视为经过签名和验证的应用程序,并且应该没有问题 运行 它。
关于如何对 JAR 进行自签名,以下链接可能会对您有所帮助。
https://www.java.com/en/download/help/java_blocked.xml
https://docs.oracle.com/javase/tutorial/deployment/jar/intro.html
https://docs.oracle.com/javase/7/docs/technotes/guides/jweb/security/rsa_signing.html
Java Error: "Your security settings have blocked a local application from running"