本帖最后由 pope_key 于 2010-04-20 16:24:29 编辑

解决方案 »

  1.   

    run:
    Exception in thread "Timer-0" java.lang.RuntimeException: Uncompilable source code - 不兼容的类型
      要求:netexample.Client
      发现:   java.lang.Object
            at netexample.ds$1.run(Main.java:60)
            at java.util.TimerThread.mainLoop(Timer.java:512)
            at java.util.TimerThread.run(Timer.java:462)
      

  2.   

          netexample.Client signalClient =  client.get(i);
      

  3.   

    LZ,JDK版本多少,要是5以上加泛型,不然那里要强转一下,因为Vector返回来是一个Object
      

  4.   

    需要造型吧  返回类型不一致
    Exception in thread "Timer-0" java.lang.RuntimeException: Uncompilable source code - 不兼容的类型
      要求:netexample.Client
      发现: java.lang.Object