Re: [Ikvm-developers] Question
Brought to you by:
jfrijters
|
From: nguyen c. <chu...@ya...> - 2011-01-26 15:09:59
|
My command line is:
..\ikvmc -r:System.Windows.Form.dll Main.class
after that., it appear:
//
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")
//
and
I have the Main.exe in curent directory.And I copied into IKVM folder Bin to run that. And it has exception when I run Main.exe in that.The Swing Application can not process Button event in my form.
Thanks you Mr Volker Berlin
///////////////////////////////////////////////////////////////////////////////////////////
Từ: Volker Berlin <VB...@in...>
Chủ đề: Re: [Ikvm-developers] Chuyển tiếp: Re: Question
Đến: ikv...@li...
Ngày: Thứ Tư, 26 tháng 1, 2011, 0:57
How look your command line for ikvmc?
Volker
Von: nguyen chuong [mailto:chu...@ya...]
Gesendet: Mittwoch, 26. Januar 2011 04:21
An: ikv...@li...
Betreff: [Ikvm-developers] Chuyển tiếp: Re: Question
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
-----Thư đính kèm sau đây-----
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
-----Thư đính kèm sau đây-----
_______________________________________________
Ikvm-developers mailing list
Ikv...@li...
https://lists.sourceforge.net/lists/listinfo/ikvm-developers
|