Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Aamir Chaudhry
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Aamir Chaudhry
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is on a Win box, isn't it?
G.
 
Aamir Chaudhry
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic