wood burning stoves 2.0*
The moose likes Other JSE/JEE APIs and the fly likes Sending SMS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Sending SMS" Watch "Sending SMS" New topic
Author

Sending SMS

Chiranjeevi Kanthraj
Ranch Hand

Joined: Feb 18, 2008
Posts: 289

hi ranchies.,
i need to send a SMS and receive the SMS through Java code is thier any API's.
and i need know how can i do that, from where i need to purchase.
please help me


-Chiru
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41599
    
  55
The last entry of the http://faq.javaranch.com/java/JavaIoFaq talks about this.


Ping & DNS - my free Android networking tools app
Reza Mochamad Diannagara
Greenhorn

Joined: Oct 10, 2006
Posts: 11
you can use java communication API,
but you need to connect to a cell phone using com port.
Chiranjeevi Kanthraj
Ranch Hand

Joined: Feb 18, 2008
Posts: 289

hi Ulf Dittmer

i saw the thread which is using smsj and also register to the clickcell got the account.

i write the code as follows:
but i'm getting the beelow error

need help.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41599
    
  55
Do you have that class in your classpath?
Chiranjeevi Kanthraj
Ranch Hand

Joined: Feb 18, 2008
Posts: 289

hi
i downloaded this slf4j-1.5.0 but it is having more than 20 jar in that which i want to deploy into my classpath.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41599
    
  55
Is there a problem with deploying 20 jar files? Have you read the documentation if it talks about which ones are required? Have you tried just using the one that contains the missing class?
Chiranjeevi Kanthraj
Ranch Hand

Joined: Feb 18, 2008
Posts: 289

after deploying all the jar its giveing this exception

Exception in thread "main" java.lang.StackOverflowError
at java.util.HashMap.get(HashMap.java:343)
at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:153)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:219)
at org.slf4j.impl.JCLLoggerFactory.getLogger(JCLLoggerFactory.java:69)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:88)

Jignesh Patel
Ranch Hand

Joined: Nov 03, 2001
Posts: 626

All API need some carrier to send messages? DO we have any software of carrier who supports free SMS from Internate to Mobile?
Jignesh Patel
Ranch Hand

Joined: Nov 03, 2001
Posts: 626

Currently I am working on creating SMS message and thinking of using SMPP API mentioned here
http://sourceforge.net/project/showfiles.php?group_id=26854
And there is one more Open SMPP2.0.
Now which one is better.

Now the sample given here is a sample of SMS gateway? How different this is from Kannel?
bitan saha
Greenhorn

Joined: Jul 13, 2009
Posts: 2
Guys no need to take in all the jars. just go for the one's given below:

jcl-over-slf4j-1.5.8.jar
jul-to-slf4j-1.5.8.jar
log4j-over-slf4j-1.5.8.jar
slf4j-api-1.5.8.jar
slf4j-ext-1.5.8.jar
slf4j-migrator-1.5.8.jar
slf4j-nop-1.5.8.jar

Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19679
    
  18

Thanks for the advice, but did you notice this thread was over a year old?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
bitan saha
Greenhorn

Joined: Jul 13, 2009
Posts: 2
Hi Rob,

I know it's an old thread. I just posted it because I thought may be someone else might get help out of it. I didn't have any other intention apart from that. .

Regards
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sending SMS