本帖最后由 ewwerpm 于 2010-05-13 16:53:33 编辑

解决方案 »

  1.   

    1. 升级电脑。。所以说Java写桌面应用很撮。
    2. 请说出JDK版本,旧版本好象有BUG
    参考:http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6394563
    3. 这个倒是头次看到,查了下
    参考:http://topic.csdn.net/u/20100408/09/a5044d5c-3c3b-40f6-9334-9876e7eb55bb.html
    4.根据3,4就是无意义了,编译参数在compiler里选选就有了。
      

  2.   

    晕,还有 ,为什么在项目中会出现2个public static void main(final String[] args) {}方法呢?编译也没问题,java是怎么知道该从哪个main先执行呢?
      

  3.   

    eclipse中选project->Build Automatically,取消这个选项就行
      

  4.   

    打jar包时有指定使用哪个main的。在META-INF/MANIFEST.MF中
      

  5.   

    jdk-6u20-windows-i586.exe装的,JDK 1.6.0_20
      

  6.   

    According to the javac documentation, -Xlint:none only disables warnings "not mandated by the Java Language Specification". It appears that warning you of the use of deprecated APIs is managed by the language spec.Your best option would be to fix the use of deprecated APIs. However, an option would be to add the @SupressWarnings("deprecation") annotation to the classes or methods that are using the deprecated APIs.参考吧
      

  7.   

    顺便翻译一下
    根据Javac的文档, -Xlint:none 只会禁止 “不符合Java语言规范的警告”. 意思就是说废用的API的警告是符合Java语言规范的。要解决要么你不要已经废用的API,要么在用到废用API的代码方法体或类上加上@SupressWarnings("deprecation")注解。
      

  8.   

    没打包之前也能跑,还没在META-INF/MANIFEST.MF指定吧
      

  9.   

    你用eclipse?点下RUN右边的小箭头就知道怎么回事了。直接点RUN运行的一般是最后一个。
      

  10.   

    对了,谢谢。不过 直接点RUN运行的话,是当前文件不知道怎么说了。反正指定当前文件中的main
      

  11.   

    谢谢,2.的话,是说旧版本没问题,新版本忽略了- nowarn选项吧。
    1.java都可以写网页游戏的,慢的说法似乎有些勉强,何况我2G内存够用吧。我刚才又在eclipse中跑起来几次,可是又有几次跑不起来。
    对了,对于这种大型的项目,如何去看啊?我从main方法所在的类入手,可看起来很慢,文件太多了。
      

  12.   

    运行不了的时候在命令行用java运行,看看输出什么错误,是否是OutOfMemory异常