--------------------配置:            <--------------------
Error : Invalid path, \bin\javac.exe -classpath D:\Xunlei\codedn.com\src -d D:\Xunlei\codedn.com\src D:\Xunlei\codedn.com\src\login.java 处理已完成。
 这个是什么意思啊,我又如何解决呢,请大家帮帮忙!

解决方案 »

  1.   

    bin目录没有配置正确,  
      在配置-->选项--> JDK 配置文件 
        新建一个,新建过程中选择正确的bin路径就行 不好意思,我用的是中文版
      

  2.   

    谢谢你的答复了呵!我去下载了一个新的JDK,安装了就可以了。
    但我的有运行一个代码
    import java.net.*;
    import java.io.*;
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    public class login extends Applet implements Runnable,ActionListener
    {
      TextField txt_user;  
      TextField txt_psw; 
      
      Label lab_user;
      Label lab_psw;
      
      
      Button btn_add=new Button();
      Label tishi;
      Label xianshi;
      
      Socket socket=null;
      DataInputStream in=null;
      DataOutputStream out=null;
      Thread thread;  public void init(){
      txt_user=new TextField(10);  
      txt_psw=new TextField(10);
     
      
      lab_user=new Label("请输入用户名",Label.CENTER);
      lab_psw=new Label("请输入密码",Label.CENTER);
      
      btn_add=new Button("注册");//又添加   
      tishi=new Label("正在连接到服务器,请稍等...",Label.CENTER);
      tishi.setForeground(Color.red);
      tishi.setFont(new Font("TimesRoman",Font.BOLD,24));
      xianshi=new Label(" 提    示    结      果      ");
      
      Panel box1=new Panel();  
      Panel box2=new Panel();  
      Panel box3=new Panel();
      Panel box4=new Panel();
      Panel box5=new Panel();
      Panel box6=new Panel();
      Panel box7=new Panel();
      Panel box8=new Panel();
      Panel box9=new Panel();
      Panel box10=new Panel();
      Panel box11=new Panel();
      Panel box12=new Panel();
      
      
    //   box1.add(new Label("输入查询内容:",Label.CENTER));
      
      
      box3.add(lab_user);
      box3.add(txt_user);
      box4.add(lab_psw);
      box4.add(txt_psw);   box2.add(xianshi);
      box1.add(btn_add);//又添加  

      add(tishi);
      add(box1);
      add(box3);
      
      add(box4);
      add(box2);
      btn_add.addActionListener(this);//又添加   
    }
    public void start(){
    if(socket!=null&&in!=null&&out!=null)
          {  try
                {
                  socket.close();
                  in.close(); 
                  out.close();
                }
            catch(Exception ee)
                {
                }
          }
       try
          {
            socket=new Socket(this.getCodeBase().getHost(), 6668);
            in=new DataInputStream(socket.getInputStream());
            out=new DataOutputStream(socket.getOutputStream());
          }
       catch (IOException ee)
          { 
           tishi.setText("连接失败");
          }
       if(socket!=null)
          {
            InetAddress address=socket.getInetAddress();
            tishi.setText("连接:"+address+"成功");
          } 
       if(thread==null)
          {
            thread=new Thread(this);
            thread.start();
          }
    }

    public void run(){
    String s=null;
        while(true)
         { 
           try{
                 s=in.readUTF();
                
              }
            catch (IOException e)
              {
                tishi.setText("与服务器已断开");
                break;
              }
         xianshi.setText(s);
        } }
    //..........
    public void actionPerformed(ActionEvent e)
     {
       if(e.getSource()==btn_add)
         { 
           String s1="",s2="";
           String tianjia=btn_add.getLabel();//有写的
          
           s1=txt_user.getText();
           s2=txt_psw.getText();
           
           
          
           String str=s1+","+s2;      
           if(str.length()>0)       
            { 
              try{
                  out.writeUTF(str);
                 }
              catch(IOException e1)
                 {
                  tishi.setText("与服务器已断开");
                 } 
            } 
           else
            {
            xianshi.setText("请填写");
            }              
           
         }
     } //............
    }
    提示的错误是java.lang.NoSuchMethodError: main
    Exception in thread "main" 
    处理已完成。
              
    我不知道要怎么样加个MAIN的主函数,不好意思啊可,刚刚学的,有很多不知道的!
      

  3.   

    好强,刚刚学就研究得这么深。不要run as application
    试试run as Applet