我有一个使用 fxml 和 JavaFX Scene Builder 1.1 的 JavaFX 应用程序。当我在 Netbeans 中编译项目时,它会为项目中包含的每个 jar 文件发出警告,这使得编译需要更多时间。 例如:
Warning:
The signer certificate will expire within six months.
Enter Passphrase for keystore: Enter key password for nb-jfx:
Signing JAR: E:\Project\Client\Development\Mednet\dist\lib\activation.jar to E:\Project\Client\Development\Mednet\dist\lib\activation.jar as nb-jfx
Warning:
The signer certificate will expire within six months.
Enter Passphrase for keystore: Enter key password for nb-jfx:
Signing JAR: E:\Project\Client\Development\Mednet\dist\lib\antlr-2.7.7.jar to E:\Project\Client\Development\Mednet\dist\lib\antlr-2.7.7.jar as nb-jfx
Warning:
The signer certificate will expire within six months.
Enter Passphrase for keystore: Enter key password for nb-jfx:
Signing JAR: E:\Project\Client\Development\Mednet\dist\lib\asm-3.1.jar to E:\Project\Client\Development\Mednet\dist\lib\asm-3.1.jar as nb-jfx
Warning:
The signer certificate will expire within six months.
Enter Passphrase for keystore: Enter key password for nb-jfx:
Signing JAR: E:\Project\Client\Development\Mednet\dist\lib\dom4j-1.6.1.jar to E:\Project\Client\Development\Mednet\dist\lib\dom4j-1.6.1.jar as nb-jfx
Warning:
The signer certificate will expire within six months.
Enter Passphrase for keystore: Enter key password for nb-jfx:
Signing JAR: E:\Project\Client\Development\Mednet\dist\lib\hibernate-commons-annotations-4.0.2.Final.jar to E:\Project\Client\Development\Mednet\dist\lib\hibernate-commons-annotations-4.0.2.Final.jar as nb-jfx
Warning:
The signer certificate will expire within six months.
Enter Passphrase for keystore: Enter key password for nb-jfx:
Signing JAR: E:\Project\Client\Development\Mednet\dist\lib\hibernate-core-4.2.2.Final.jar to E:\Project\Client\Development\Mednet\dist\lib\hibernate-core-4.2.2.Final.jar as nb-jfx
……还有很多……
我怎样才能阻止它们并减少编译时间? 谢谢。
最佳答案
您可以转到属性>构建>部署,然后取消选中请求无限制访问(启用签名)复选框
关于java - 如何在 netbeans 中的 java fxml 应用程序中编译时删除警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18011525/