Exception in thread "main" java.langNoclassDeffounderror:TestSender源程序如下:
package net.xdevelop.mobile.client.test;import net.xdevelop.mobile.client.*;
import net.xdevelop.mobile.SMS;public class TestSender {
public TestSender() {
}
public static void main(String[] args) {
try {
// 创建SMS
SMS sms = new SMS("1234567890123", "Hello World!"); // 发送短信
boolean rs = SMSSender.send(sms); // 检查发送结果
if (!rs) {
System.out.println("短信发送失败:" + sms.getError()); // 获取错误信息
}
else {
System.out.println("success");
}
}
catch (Exception e) {
System.out.println(e.getMessage());
}
}
}
package net.xdevelop.mobile.client.test;import net.xdevelop.mobile.client.*;
import net.xdevelop.mobile.SMS;public class TestSender {
public TestSender() {
}
public static void main(String[] args) {
try {
// 创建SMS
SMS sms = new SMS("1234567890123", "Hello World!"); // 发送短信
boolean rs = SMSSender.send(sms); // 检查发送结果
if (!rs) {
System.out.println("短信发送失败:" + sms.getError()); // 获取错误信息
}
else {
System.out.println("success");
}
}
catch (Exception e) {
System.out.println(e.getMessage());
}
}
}
解决方案 »
- 初学java,写个从一个字符串中提取偶数位字符组成新的字符(多多指教)
- eclipse中有没有自动排列,对齐格式的设置啊?
- java中静态方法调用非静态变量的问题
- 关于创建jar文件
- numIncre(“000099”) => “000100”,返回同闊度數字型字串,请教大家有什么更好的实现方法?
- 2009网易笔试一道题目
- java c/s dbSwing 中
- 昨晚为了这句话我一夜都没睡觉,现在我发现我的智商太低了。。。。。。。。。。。。。。
- 帮我看看java为什么不能运行(源代码)
- mouseMove中如何判断鼠标按下
- 如何实现JAVA操作LINUX指令
- eclipse开发的swing程序,在命令行运行时无故报错
执行net.xdevelop.mobile.client.test.TestSender