当前位置:首页
开发技术指南» 文章正文
    引言:

    摘要: 不要说 通过findwindow得到的句柄和hwnd作比较。 有没有这种api,参数是hwnd,返回值如果为什么就能表示这个值的窗口不存在。 谢谢! ......
    摘要: 最近不知怎么了,我的.net2003每次调试都会重新生成(未修改任何文件的时候,应该是可以直接就调试的,可是我的项目确又重新生成了),搞的调试起来很不爽,不知哪里的设置问题,各位高手遇到过没有?帮帮忙~好像还没有见别人遇到过。搜索了好多也没有个相应的问题的~ ......


提示无法找到main,怎么回事

我已经定义了main,怎么提示却找不到?class   VocanoRobot{  
  String     status;  
  int   speed;  
  float   temperature;  
  void   checktemperature(){  
  if(temperature>600){  
  status="return   home";  
  speed=5;  
  }  
  }  
  public   void   shouAttribute(){  
  System.out.println("status="   +   status);  
  System.out.println("speed="   +   speed);  
  System.out.println("temperature="   +   temperature);  
  }  
  /*public   static   void   main(String[]   args){  
  VocanoRobot   dante=new   VocanoRobot("expoing",2);  
  dante.shouAttribute();  
  dante.temperature=520;}  
  */  
  VocanoRobot(String   status,int   speed){  
  this.status=status;  
  this.speed=speed;  
  }  
  }  
  class   WalkRobot   extends   VocanoRobot{  
  String   Color;  
  public   WalkRobot(String   status,int   speed,String   Color){  
  super(status,speed);  
  this.Color=Color;  
  }  
                  void   speak(String   talk){  
  System.out.println(talk);  
  }  
  public   static   void   main(String   []   args){  
  WalkRobot   sony=new   WalkRobot("walking",4,"red");  
  sony.shouAttribute();  
  sony.speak("i   am   walking");  
  }  
   
  }  
  错误信息为:  
  Exception   in   thread   "main"   java.lang.NoSuchMethodError:   main

NO.1   作者: rainly1985

我运行你的程序没问题啊,  
  这是结果:  
  status=walking  
  speed=4  
  temperature=0.0  
  i   am   walking  
   
  你的文件名写对了吗,就是在javac的时候,是不是写成了别的文件啊,反正你的程序没问题  
 

NO.2   作者: interhanchi

你要   java   WalkRobot

NO.3   作者: believefym

classpath前加.;

NO.4   作者: yanransoft

对不起,没看清楚。是java   WalkRobot


 ·如何使用preg    »显示摘要«
    摘要: 我想把 <!--begin $abcd-->xxxxxxxxxxx<!--end $abcd--> 替换成 getd($abcd,"xxxxxxxxx") 其中 getd 是个函数,请问正则表达式怎么写。 ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE