02-25-2009 04:59 AM
I'm trying to make a simple httpconnection using the 8900 simulator with 4.6.1 and eclipse plug-in. I think I've made everything I should but maybe I'm wrong. I launch the simulator through eclipse and I've checked the "Launch MDS-CS" with simulator.
Neither this piece of code, nor my simulator browser are able to stablish a connection. On simulator I get a InterruptedIOException, Local timed out after 120000 .
StreamConnection s = (StreamConnection)Connector.open("http://www.google.com");
HttpConnection httpConn = (HttpConnection)s;
int status = httpConn.getResponseCode();
I've read that maybe it's that MDS simulator is not really running. How can I Know if it's already running?
Thanks in advance
02-25-2009 06:00 AM
You should launch MDS simulator manually or set in JDE to launch MDS along with device simulator.
If MDS simulator is not included in your JDE package - get it here:
select "Blackberry Email and MDS simulators package"
02-25-2009 06:22 AM
I'm already launching MDS along with simulator (at least it's checked in my Run configurations>simulator>general>Launch MDS...) but i don't really know if it's already launched.
Anyway, launching it manually using run.bat inside "\net.rim.eide.componentpack4.6.1_22.214.171.124\compone
Any other idea?
02-25-2009 07:20 AM
Thanks for your help but those path related issues are correctly set in my computer...
I'm using jdk1.6.0_12 and I suppose is ok for my blackberry environment. My path is ok,I don't have JAVA_HOME environmental variable (it also doesn't work if I use it), and setBMDSEnv.bat was already ok and I didn't have to check it.
Any ideas are welcomed...
02-25-2009 09:03 AM
02-25-2009 09:40 AM - edited 02-25-2009 09:43 AM
Thanks for your answer!
I was trying by double-clicking on it. Now I've just tried it using a console and it's the same...as you say a command prompt pops for a second and closes.
I keep searching
02-25-2009 09:45 AM