sending sms(text) from java code to mobile phone in windows

笑着哭i 提交于 2019-12-04 13:02:53

I think this is a very complicated approach. If you are developing a commercial application, there are many companies which provide web services that you could use. You just send the sms text to the webservice, and they will send the sms for you, no need to reinvent the wheel. Unless you are developing a webservice like this yourself!

Your code relies on a JNI driver class "com.sun.comm.SolarisDriver". Your program can't locate the dinamic library SolarisSerialParallel.

The Java virtual machine needs to be able to find the native library. To do this, set the library path adding the path to the library as follows:

Unix or Linux based systems:

LD_LIBRARY_PATH=$LD_LIBRARY_PATH;'/opt/whatever/SolarisSerialParallel.so'
export LD_LIBRARY_PATH

Windows (I guess that in this case, you'll need to search the appropiate DLL, as the one required at your question seems to be exclusive for Solaris environments):

set PATH=%path%;C:\whatever\SolarisSerialParallel.dll

Note that you can point it to the containing directory, if more libraries ar needed.

Reference: Java Native Interface Specification

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!