gpt4 book ai didi

java - 无法使用java通过way2sms发送短信

转载 作者:太空宇宙 更新时间:2023-11-04 13:41:12 24 4
gpt4 key购买 nike

我的代码如下。我已经下载了way2sms的jar文件。

     import com.way2sms.SMS;
class MsgSender {

public static void main(String[] args) {
String Username="xxxxxxxxxx";
String Password="xxxxxxxxxx";
String Number="xxxxxxxxxx";
String Message="Hi";
String Proxy="";

SMS smsClient=new SMS();
smsClient.send( Username, Password, Number, Message,Proxy);
}
}

下面是jar的链接

mediafire.com/download/ztwzzwmfmmz/way2sms-api-4.0.0.jar

我已经给出了我的凭据,但是运行程序后它显示为,

Jul 06, 2015 9:53:06 AM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Logging in ...
null
Login Failed..`.

最佳答案

可能您需要访问系统或根节点的管理员权限...

关于java - 无法使用java通过way2sms发送短信,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31251099/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com