更新了错误解决方案“ JDK7u25,应使用Codebase清单属性来限制JAR的用途请设置manifest.custom.codebase”

问题描述

在这里搜索了相同的错误解决方案。我已经尝试过,并且每次尝试将属性添加到jfx-impl和构建文件(如此处建议的那样)时,都会出错。我遇到了一个使用纯豆子进行清洁重建的解决方案,该问题将解决其自身问题,但这对我不起作用。我当前使用的是netbeans 8.2版。请任何人提供简单易用的更新解决方案。在提交问题之前,我尝试了几种不同的建议

错误在下面

Detected JavaFX Ant API version 1.3
Launching <fx:jar> task from C:\Program Files\Java\jdk1.8.0_261\jre\..\lib\ant-javafx.jar
Warning: From JDK7u25 the Codebase manifest attribute should be used to restrict JAR repurposing.
         Please set manifest.custom.codebase property to override the current default non-secure value '*'.
C:\Users\aaaa\Documents\NetBeansprojects\usermodelApplication\nbproject\jfx-impl.xml:3479: The following error occurred while executing this line:
C:\Users\aaaa\Documents\NetBeansprojects\usermodelApplication\nbproject\jfx-impl.xml:1487: The following error occurred while executing this line:
C:\Users\aaaa\Documents\NetBeansprojects\usermodelApplication\nbproject\jfx-impl.xml:3133: The following error occurred while executing this line:
C:\Users\aaaa\Documents\NetBeansprojects\usermodelApplication\nbproject\jfx-impl.xml:1658: Error: File C:\Users\aaaa\Documents\NetBeansprojects\usermodelApplication\dist\usermodelApplication.jar Could not be deleted




Updating property file: C:\Users\aaaa\Documents\NetBeansprojects\usermodelApplication\build\built-clean.properties
Deleting directory C:\Users\aaaa\Documents\NetBeansprojects\usermodelApplication\build
C:\Users\aaaa\Documents\NetBeansprojects\usermodelApplication\nbproject\build-impl.xml:1398: Unable to delete file C:\Users\aaaa\Documents\NetBeansprojects\usermodelApplication\dist\usermodelApplication.jar
BUILD Failed (total time: 1 second)

更新---

我进行了进一步的调查,我认为此错误与“在jar文件中没有主清单属性”有关。我发现了一个建议的解决方案,即Main-Class必须是已配置的路径,但没有演示确切的方式和方法

Here is my MANIFEST.MF 

Manifest-Version: 1.0
Implementation-Title: usermodelApplication
X-COMMENT: Main-Class will be added automatically by build
Implementation-Version: 1.0
Permissions: sandBox
Codebase: *
JavaFX-Version: 8.0
Class-Path: 
Created-By: JavaFX Packager
Implementation-vendor: aaaa
Main-Class: usermodelapplication.usermodelApplication

我已经在这个问题上研究了很长时间了,请为我提供一个清晰的解决方案。我很想安装Net Bean 8.0,因为已经添加属性

我已经尝试了所有最新版本的java,但仍然收到相同的问题。建议使用最新版本平稳运行JavaFx仍然会收到问题

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)