如何将java或类文件转换为exe文件

时间:2014-07-25 15:30:24

标签: java swing

我已经使用swing创建了一个java应用程序,我想转换为exe文件怎么做。

public Performance() {
    f = new JFrame("Ticket Booking");
    f1 = new JFrame("Payment Details");
    f2 = new JFrame("Payment Successfull");
    l1 = new JLabel("Movies :");
    l2 = new JLabel("Timing :");
    l3 = new JLabel("Class:");
    l4 = new JLabel();
    l5 = new JLabel();
    l6 = new JLabel("No of Person:");
    l11 = new JLabel("Movies :");
    l22 = new JLabel();
    l33 = new JLabel("Timing :");
    l44 = new JLabel();
    l55 = new JLabel("Class:");
    l66 = new JLabel();
    l77 = new JLabel("No of Person:");
    l88 = new JLabel();
    l99 = new JLabel("Amount:");
    l00 = new JLabel();
    lsuccess = new JLabel("          Thank u For booking Ticket...");
    c1 = new JComboBox(s1);
    c2 = new JComboBox(s2);
    r1 = new JRadioButton("10:00pm");
    r2 = new JRadioButton("1:00pm");
    r3 = new JRadioButton("4:30pm");
    buttongroup = new ButtonGroup();
    b1 = new JButton("Submit");
    b11 = new JButton("Pay Bill");
    b22 = new JButton("Edit");
    t1 = new JTextField(10);
}

1 个答案:

答案 0 :(得分:0)

要将(实际上,打包).class文件转换为.jar文件,请使用Jar tool。然后,您可以使用Launch4j,JSmooth或其他几个软件包(在网上搜索“jar exe”)从.jar生成.exe文件。