gpt4 book ai didi

java - javafx 上的 sun.security.pkcs11

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:52:55 29 4
gpt4 key购买 nike

我尝试开发一个访问智能卡的 javafx 应用程序。

我有一个简单的概念证明,如下所示:

package javafxapplication7;

import java.net.URL;
import java.util.ResourceBundle;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Label;
import sun.security.pkcs11.SunPKCS11;


public class SampleController implements Initializable {

@FXML
private Label label;

@FXML
private void handleButtonAction(ActionEvent event) {
SunPKCS11 a = new SunPKCS11();
}

@Override
public void initialize(URL url, ResourceBundle rb) {
// TODO
}
}

执行的是:

Caused by: java.lang.NoClassDefFoundError: sun/security/pkcs11/SunPKCS11
at javafxapplication7.SampleController.handleButtonAction(SampleController.java:26)

最佳答案

关于java - javafx 上的 sun.security.pkcs11,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15787245/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com