This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes Urgent... How to run a j2me App on Palm Emulator on _StandAlone_ Computer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Urgent... How to run a j2me App on Palm Emulator on _StandAlone_ Computer" Watch "Urgent... How to run a j2me App on Palm Emulator on _StandAlone_ Computer" New topic
Author

Urgent... How to run a j2me App on Palm Emulator on _StandAlone_ Computer

Aamir Chaudhry
Greenhorn

Joined: Dec 10, 2001
Posts: 23
Hi,
i'm facing a problem whiling running a j2me App (built in WSDD) on Palm Emulator. Actually that app is trying to communicate with a servlet, that is running on same machine (i.e. making http connection). When the network is enabled, it works fine, but when network is disabled (no internet, no LAN),it doesn't.
In Palm Emulator Properties, i've checked that box i.e. "Redirect Netlib calls to TCP/IP host", also i tried different Redirect options like using
COM1 and Localhost (127.0.0.1) but still same problem. So can anyone please help me, how to run that application on _StandAlone_ computer, without any internet or LAN? This is really urgent and important, so i'll REALLY appreciate any help.
Regards,
Aamir
Michael Yuan
author
Ranch Hand

Joined: Mar 07, 2002
Posts: 1427
depending what you host OS you have, disabling network might mean a complete shutdown of the TCP/IP layer. You should at least enable the "local loop" in the host OS config for the emulator to access local machine's TCP/IP ports.


Seam Framework: http://www.amazon.com/exec/obidos/ASIN/0137129394/mobileenterpr-20/
Ringful: http://www.ringful.com/
Aamir Chaudhry
Greenhorn

Joined: Dec 10, 2001
Posts: 23
i tried that approach but it seems that it is going onto the Internet and it requires my Gateway to the Internet. Just wondering, why is it going onto the network i.e. Internet? what is it looking for on the Internet?
In short, is it necassary to have an Internet access for a j2me Client/Server application (client running on pose) to talk through Http
Connection? Are there other ways to do/simulate the same thing without Internet access?
thanks in advance for you help
Aamir
Michael Yuan
author
Ranch Hand

Joined: Mar 07, 2002
Posts: 1427
Originally posted by Aamir Chaudhry:

In short, is it necassary to have an Internet access for a j2me Client/Server application (client running on pose) to talk through Http
Connection? Are there other ways to do/simulate the same thing without Internet access?

As I already said, you do not need internet access to run client/server applications. You need to figure out a way to do disconnect the network while NOT disabling the underlying TCP/IP service. You also need to config your host OS to route TCP/IP traffic to the local loop. Of course, your server address must be 127.0.0.1 unless you configured otherwise.
In short, this is NOT a J2ME or a POSE issue. It is a network adminstration issue for your host computer.
Guy Allard
Ranch Hand

Joined: Nov 24, 2000
Posts: 776
This is on a Win box, isn't it?
G.
Aamir Chaudhry
Greenhorn

Joined: Dec 10, 2001
Posts: 23
i'm using windows XP. i just found out that POSE is trying to hit this IP 206.112.114.82, which is Palm Proxy Server. so for every Http connection call, it tries to talk with Palm Proxy Server.
Is there any way that i can disable or bypass this
Proxy stuff and establish an Http connection without Palm Proxy Server? OR is there any alternative for this? OR can i simulate this Palm Proxy Server on my local machine?

Thanks in advance for your help
Aamir
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Urgent... How to run a j2me App on Palm Emulator on _StandAlone_ Computer
 
Similar Threads
PALM 'ready to roll' ?
Urgent! Help needed
palmtops and the outside world
For j2me polish Urgent Help
Problem:J2ME using Palm!! Urgent