public class aaa { // here
public static void main(String args[])
{
  aaa ss=new aaa();
  String msg="54353465ghujj";
  String signed="dfsgdfsy54654";
  String pubKey="fdsgdfh5473gdh";
  ss.verify(msg,signed,pubKey)
}
public verify(String msg,String signed,String pubKey/*here*/)
{
  ……
}
}

解决方案 »

  1.   

    public class aaa {
    public static void main(String args[])
    {
      aaa ss=new aaa();
      String msg="54353465ghujj";
      String signed="dfsgdfsy54654";
      String pubKey="fdsgdfh5473gdh";
      ss.verify(msg,signed,pubKey)
    }
    public verify(String msg,String signed,pubKey)
    {
      ……
    }
    }
    你掉了两个 {}啊
      

  2.   

    public verify(String msg,String signed,pubKey)
    {
      ……
    }
    pubKey是什么?String 吗?需要申明的
      

  3.   

    不是吧,我定义了这个方法啊!没有方法指的是没有哪个方法啊?我也就只是调用了一个方法而已嘛!我查过API,里面说
    Thrown if an application tries to call a specified method of a class (either static or instance), and that class no longer has a definition of that method. Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed. 我不太明白,什么叫这个类不再是那个方法的定义?什么叫这个类的定义有一个不相容的转换?
      

  4.   

    也是String,我也声明了。可也是一样!我在写一遍。
    public class aaa
    {
      public static void main(String args[]) 
      {
        aaa ss=new aaa();
        String msg="54353465ghujj";
        String signed="dfsgdfsy54654";
        String pubKey="fdsgdfh5473gdh";
        ss.verify(msg,signed,pubKey)
      }
      public verify(String msg,String signed,String pubKey)
      {
        ……
      }
    }
      

  5.   

    第一,你的程序的文件名也应该是aaa
    第二,应该是public void verify(String msg,String signed,String pubKey)
      

  6.   

    嘿嘿!原来我自己做的jar在捣鬼!多谢各位,程序很多地方为了方便节选出来结果有这么多错的,真是不好意思。麻烦大家了!