File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes Executing an application stored in COMPUTER  from MOBILE\CELLPHONE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Executing an application stored in COMPUTER  from MOBILE\CELLPHONE" Watch "Executing an application stored in COMPUTER  from MOBILE\CELLPHONE" New topic
Author

Executing an application stored in COMPUTER from MOBILE\CELLPHONE

Harish Tiruvile
Ranch Hand

Joined: Dec 01, 2005
Posts: 99
Is it possible to execute a normal java program (without using server) from Mobile using J2ME ..

Say for example i worte HelloWorld.java program ...
i stored that program in my machine which is having IP addredd XX.XX.XXX.XX .Now i want to call that program from J2ME program .

Here i am not using any Servers ...

Is there any way to execute that program without using servers...


Giving up is the easiest thing in the world to do..but holding it together when everything seems like falling apart is true strength!!
with regards, Harish.T
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

Sort of, you can have a listener program running on your machine that when called will trigger the program. The listener could be a Servlet, or you could use Sockets.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Harish Tiruvile
Ranch Hand

Joined: Dec 01, 2005
Posts: 99
Thank you Mark Spritzler ,

sir,I got one more doubt after implementing servlet as a listener..To invoke servlet\Java application,i need to enter in to my company network to acces system where i stored ordinary servlet\java program.

Question:If i use Servlet or socket as a listener ,then can i access My company network.

I am asking because ,without RAS card i cannot access My company network from Laptop(since i am using wireless intenet connection)or from home .

So is there any feature in J2ME through which i can access company network from My mobile to call servlet\socket program.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

Simply remember that your cell phone is completely outside of any "network" so to connect into a network you need exactly what you would need if you were using a computer in the library to try to connect to your work's network. Someway in, so you need some open port in your Office Network that the J2ME app can get into and pass security credentials, which could be a public/private key with SSL.

Mark
David Aslan
Greenhorn

Joined: Jun 10, 2005
Posts: 13
You're not doing something illegal are you?

One way to do this is to get a GSM Modem (like iTegno). Get an SMS Server (like NowSMS) to wait for the SMS and then launch your app (can be any app, exe, etc.)


-----<br />SCJP, SCWCD, SCMAD, SCEA, CAPM
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Executing an application stored in COMPUTER from MOBILE\CELLPHONE