当前位置: 首页 > 工具软件 > SMSLib > 使用案例 >

smslib java_java利用SMSLib通过COM发送短信JAR包

郎睿
2023-12-01

第一步:

The installation procedure for both the old Java Comm v2 and the new

Java Comm v3 is identical.

Java Comm v2 is for Win32 systems and it is available on the Download

page.

Java Comm v3 is for Linux systems and it is available for download

directly from SUN downloads (registration is required)

To install it, unzip the downloaded archive file in a temporary place

and do the following copies:

File comm.jar should go under JDKDIR/jre/lib/ext/

File javax.comm.properties should go under JDKDIR/jre/lib/

Library files (i.e. win32com.dll for Win32 or the .so Linux library

files) should go under JDKDIR/jre/bin/

If you have a separate JRE directory, do the same copies for the JREDIR

directory!

即comm.jar导入引用包中,javax.comm.properties拷贝到JDKDIR/jre/lib/下,win32com.dll拷贝到

JDKDIR/jre/bin/下

第二步:

把相应的包导入就可以了。

当时在做的时候,发现通过SMSLib发送程序还是比较麻烦的,他的日志采用的是slf4j,而slf4j是基于log4j的,这几个不同的JAR包都是

在不同的地方下载的,在此所有的JAR整理出来,希望大家节约时间

包下载地址:http://download.csdn.net/source/1910091

天苍苍,野茫茫,风吹草底见牛羊

 类似资料: