也可能是没有定义main方法 ^_^最好把错误贴上来看看

解决方案 »

  1.   

    //: 2-1.java
    import java.util.*;/** The first Excese
    * Displays a string and today's date.
    * @author Rockay
    * @version 2.0
    */
    public class HelloJava{
    /** Sole entry point to class & application
    * @param args array of string arguments
    * @return No return value
    * @exception exceptions NO exceptions thrown
    */
    public static void main(String[] args){
      System.out.println("HelloJava");
      System.out.println(new Date());
      }
    }///:~
      

  2.   

    class文件名称必须和类名一致,所以HelloJava类怎么会产生111.class? 应该是HelloJava.class吧
      

  3.   

    那个试举个例子,产生的当然是hellojava.class啊 
    然后想运行一下就是出错
    显示“Exception in thread "main" java.lang.NoClassDefFoundError: hellojava/exe”
      

  4.   

    要是HelloJava.class,大小写要完全一致!
    如果大小写一致了还有问题,就是classpath没有设置好了。
      

  5.   

    hellojava/exe ???你是怎么执行的啊?怎么出来exe了?