把你的哪个包放到你的当前目录下,如果是.jar文件先解压,或者在你的classpath里面加入它的路径

解决方案 »

  1.   

    为什么要用ms的包呢,绝对是不好理解的
    import com.ms.wfc.app.*;
    import com.ms.wfc.core.*;
    import com.ms.wfc.ui.*;
    import com.ms.wfc.html.*;/**
     * This class can take a variable number of parameters on the command
     * line. Program execution begins with the main() method. The class
     * constructor is not invoked unless an object of type 'Form1' is
     * created in the main() method.
     */
    public class Form1 extends Form
    {
    public Form1()
    {
    // Required for Visual J++ Form Designer support
    initForm(); // TODO: Add any constructor code after initForm call
    } /**
     * Form1 overrides dispose so it can clean up the
     * component list.
     */
    public void dispose()
    {
    super.dispose();
    components.dispose();
    } private void Form1_click(Object source, Event e)
    {

    } private void button1_click(Object source, Event e)
    {
    ColorDialog colorDialog1=new ColorDialog();
    colorDialog1.showDialog();
    } /**
     * NOTE: The following code is required by the Visual J++ form
     * designer.  It can be modified using the form editor.  Do not
     * modify it using the code editor.
     */
    Container components = new Container();
    Button button1 = new Button(); private void initForm()
    {
    this.setText("Form1");
    this.setAutoScaleBaseSize(new Point(6, 12));
    this.setClientSize(new Point(292, 273));
    this.addOnClick(new EventHandler(this.Form1_click)); button1.setLocation(new Point(160, 16));
    button1.setSize(new Point(75, 23));
    button1.setTabIndex(0);
    button1.setText("button1");
    button1.addOnClick(new EventHandler(this.button1_click)); this.setNewControls(new Control[] {
    button1});
    } /**
     * The main entry point for the application. 
     *
     * @param args Array of parameters passed to the application
     * via the command line.
     */
    public static void main(String args[])
    {
    Application.run(new Form1());
    }
    }
      

  2.   

    同样 报异常
    Exception in thread "main" java.lang.UnsatisfiedLinkError: init
            at com.ms.lang.Delegate.init(Native Method)
            at com.ms.lang.Delegate.<init>(Delegate.java)
            at com.ms.lang.MulticastDelegate.<init>(MulticastDelegate.java)
            at com.ms.wfc.core.EventHandler.<init>(EventHandler.java)
            at com.ms.wfc.ui.BrushEntry.create(Brush.java)
            at com.ms.wfc.ui.Brush.<init>(Brush.java)
            at com.ms.wfc.ui.Brush.<clinit>(Brush.java)
            at com.ms.wfc.ui.Control.<clinit>(Control.java)
    kypfos(政治面貌:一世清白)  
    你能说说 是怎么配置微软的这些Java包的吗 classpath的设置??
      

  3.   

    只要把微软java包的绝对路径复制到classpath中就可以了。