英文:
When I try to export my project as runnable jar file I see this error
问题
可以帮我将这个项目导出为可运行的JAR文件吗?
import javax.swing.JFrame;
import com.toedter.calendar.JCalendar;
import java.awt.BorderLayout;
public class Test extends JFrame {
    public Test() {
        this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        this.setSize(400, 500);
        this.setVisible(true);
        JCalendar calendar = new JCalendar();
        getContentPane().add(calendar, BorderLayout.CENTER);
    }
    public static void main(String[] args) {
        new Test();
    }
}
如果我想将项目导出为JAR文件,我收到了这个错误消息:

英文:
Can you help me to exporting this project as runnable jar file?
import javax.swing.JFrame;
import com.toedter.calendar.JCalendar;
import java.awt.BorderLayout;
public class Test extends JFrame {
    public Test() {
        this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        this.setSize(400, 500);
        this.setVisible(true);
        JCalendar calendar = new JCalendar();
        getContentPane().add(calendar, BorderLayout.CENTER);
    }
    public static void main(String[] args) {
        new Test();
    }
}
I got this error message if I want to export my project as jar file:

答案1
得分: 1
只需按下“确定”按钮,即可创建JAR文件。该消息只是一个警告,告知您许可证允许您重新打包。
英文:
Just press OK and the JAR file is created. The message is just a warning to let you know that the licenses allow you to repackage.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。


评论