public class Hello {
  public static void main(String[] args) {
    System.out.print("你好,世界");
  }
}

解决方案 »

  1.   

    public class Faint {
      public static void main(String[] args) {
        System.out.println("晕死!!!!");
      }
    }
      

  2.   

    public class Haha{
      public static void main(String[] args){
         System.out.println("我倒.......");
      }
    }
      

  3.   

    // The most basic Java program 
    public class HelloWorld 

       public static void main(String args[]) throws Exception 
       { 
           System.out.println("Hello World!"); 
       } 

      

  4.   

    源代码:
    public class Try{
      public static void main(String[] args){
    System.out.println("你好!");
      }
    }运行结果:
    E:\>javac Try.javaE:\>java Try
    你好!
      

  5.   

    我也是winxp
    有谁遇过或听过相同的状况吗??
    是不是环境参量的问题??
      

  6.   

    这个和环境变量有关吗?
    你再配置一遍试试看
    按这里的配:
    http://expert.csdn.net/Expert/topic/2733/2733515.xml?temp=.3662836
      

  7.   

    java中文问题解决:(转贴 xqi8(星期八) )
    当输入中文字串时调用下这个方法就没问题了public static String toChinese(String strvalue)
       {
             try{
                 if(strvalue==null)
                    return null;
                 else
                 {
                    strvalue = new String(strvalue.getBytes("ISO8859_1"), "GBK");
                    return strvalue;
             }
             }catch(Exception e){
                   return null;
             }
       }凡是涉及中文字符串,如从数据库中读取中文字符串,或变量名赋值时,使用toChinese函数:
    toChinese("这是中文字符串")
      

  8.   

    你不要用其他的编译器,直接用记事本写一个JAVA程序,在命令提示符下编译、运行,
    看看结果。