日期:2014-05-20  浏览次数:20832 次

一个很有意思的问题,MyEclipse下可以正常运行,命令行中运行报错
希望大家能帮忙,再次谢过各位
Exception in thread "main" java.lang.NoClassDefFoundError: com/eastelsoft/etos2/
api/sms/AbsSMSReceiver
  at java.lang.Class.getDeclaredMethods0(Native Method)
  at java.lang.Class.privateGetDeclaredMethods(Class.java:2440)
  at java.lang.Class.getMethod0(Class.java:2683)
  at java.lang.Class.getMethod(Class.java:1618)
  at sun.launcher.LauncherHelper.signatureDiagnostic(LauncherHelper.java:4
82)
  at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:474)

Caused by: java.lang.ClassNotFoundException: com.eastelsoft.etos2.api.sms.AbsSMS
Receiver
  at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
  ... 6 more

------解决方案--------------------
Caused by: java.lang.ClassNotFoundException: com.eastelsoft.etos2.api.sms.AbsSMSReceiver
没有找到AbsSMSReceiver这个类,缺少这个类的jar包

------解决方案--------------------
命令行中访问不到jar包的
------解决方案--------------------
java.lang.ClassNotFoundException: com.eastelsoft.etos2.api.sms.AbsSMS
Receiver
打包的时候少了东西吧