NoClassDefFoundError当我运行我的Java应用程序时,我得到了一个.这通常是什么原因?
public class LoginCumReg implements ActionListener,KeyListener {
private JFrame form;
private JTextField txtunm;
private JTextField txtnm;
private JTextField txteml;
private JButton cmdcreate;
private JPasswordField txtpass;
private JPasswordField txtpassreg;
private JButton cmdok;
private JLabel lblunm;
private JLabel lblpass;
private JLabel lbleml;
private JLabel lblpassreg;
private JLabel lblnm;
private JPanel panel_1;
public LoginCumReg() {
// construct components
form = new JFrame("Sign Up");
form.getContentPane().setFont(
new Font("Plantagenet Cherokee", Font.BOLD, 18));
txtunm = new JTextField(5);
txtunm.addKeyListener(this);
txtunm.setBounds(637, 55, 100, 25);
txtnm = new JTextField(5);
txtnm.setBounds(637, 228, …Run Code Online (Sandbox Code Playgroud) 我编写了maven项目,并在Eclipse中运行了它,但是我想使用命令行来运行maven项目,所以我写了
java -jar -Dapple.awt.UIElement="true" target/myproject-1.0-SNAPSHOT.jar -h
Run Code Online (Sandbox Code Playgroud)
行在cmd中,但出现此错误http://i.stack.imgur.com/c03mN.png。
我该如何解决?