是不是有java不支持的字符集。
代码贴上来看一看。

解决方案 »

  1.   

    不能解释的符号。
    是否没有引入(import)该类的包?
    或者程序中含有不可见的非法字符(从网页上拷贝下来的程序经常出现这中问题)
      

  2.   

    如果正确,马上送分,代码是这样的:
    public class Launcher
    {public static void main (String [] args)
    {
    if (args.length>0)
    {
    try{
    Command command=(Command) Class.forName(args[0]).newInstance();
    command.process();
    }catch(Exception ex){
    System.out.println("Invalid command");
    }
    }else{
    System.out.println("Usage:Launcher<command>");
    }
    }
    }
      

  3.   

    包含Command这个类的包你加进来了没有?