[Ikvm-developers] Chuyển tiếp: Re: Question
Brought to you by:
jfrijters
|
From: nguyen c. <chu...@ya...> - 2011-01-26 03:21:31
|
I use the IKVM but It have exception
//this is my code
//
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ikvmform2;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import cli.System.Windows.Forms.*;
public class Main extends JFrame {
JButton a;
Form formNet ;
public Main() {
this.setBounds(500, 200, 500, 500);
this.setVisible(true);
this.setDefaultCloseOperation(Main.EXIT_ON_CLOSE);
this.setLayout(new FlowLayout());
a = new JButton("HELLO");
this.add(a);
formNet = new Form();
a.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
formNet.SetBounds(100, 100, 100, 100);
formNet.set_Visible(true);
}
});
}
public static void main(String[] args) {
Main a = new Main();
}
}
//This is a processing build and Main$1 not found.
Note IKVMC0001: found main method in class "ikvmform2.Main"
Note IKVMC0002: output file is "Main.exe"
Warning IKVMC0100: class "ikvmform2.Main$1" not found
Warning IKVMC0111: emitted java.lang.NoClassDefFoundError in "ikvmform2.Main.<in
it>()V"
("ikvmform2.Main$1")
//
So fix or give me infornation to repair the exception!And in IKVM I can use code java and code .net(by ikvmstub) each other?
Thanks Volker Berlin
|