Win a copy of Machine Learning with R: Expert techniques for predictive modeling this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

sending sms using sms gateway

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
https://code.google.com/p/send-sms-from-computer-to-mobile-using-way2sms/source/browse/


Following code i m using .......but getting error main class not found....
Any one tell me whats the error or any new code......webpage


Provide me with some new code as soon as possible.....


Thanks in advance
 
Rancher
Posts: 2030
15
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you executing this code? Command prompt, or using ide like eclipse/netbeans?
 
vibhuti vadje
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Swastik Dey wrote:How are you executing this code? Command prompt, or using ide like eclipse/netbeans?




I m using eclipse IDE
 
Swastik Dey
Rancher
Posts: 2030
15
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't get any such error, rather getActionString failed! message, probably due to credentials.
 
vibhuti vadje
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Swastik Dey wrote:I didn't get any such error, rather getActionString failed! message, probably due to credentials.





Now i m getting the same error......... do you have any solution..
Or any other option......
 
Swastik Dey
Rancher
Posts: 2030
15
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you put all classes with proper package hierarchy?
 
vibhuti vadje
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Swastik Dey wrote:Did you put all classes with proper package hierarchy?



yes i have put them in proper package only......
what is the solution......
also i m getting error now like Action string missing !........
i m trying to figure out the error but not getting it...
Can you help me out
 
Swastik Dey
Rancher
Posts: 2030
15
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was getting the same error initially when I was not using correct credentials, but now that error is gone after using valid credentials. However

Its tough to say whether In getActionString() the following url
URLConnector.connect("http://" + site + "/jsp/InstantSMS.jsp", false, "GET", cookie, null);

is correct or not, because while debugging the code I found some times it connects to the url and some time it returns 404 error. When it returns 404 the method returns getActionString failed. But even if it connects the following line String str = URLConnector.getResponse(); is returning a blank response.
 
vibhuti vadje
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have any other solution for it....
 
Swastik Dey
Rancher
Posts: 2030
15
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looking into it.
 
Don't destroy the earth! That's where I keep all my stuff! Including this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!