当我尝试将我的项目导出为可运行的JAR文件时,我看到了这个错误。

huangapple go评论53阅读模式
英文:

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文件,我收到了这个错误消息:

当我尝试将我的项目导出为可运行的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:

当我尝试将我的项目导出为可运行的JAR文件时,我看到了这个错误。

答案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.

huangapple
  • 本文由 发表于 2020年9月15日 00:01:48
  • 转载请务必保留本文链接:https://go.coder-hub.com/63887921.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定