If the simulator is running on the same machine as WAMP, then *triple*
check the URL in your app.  It is probably incorrect.  If it is running on
a different machine, then you can't use the localhost URL.  You need to use
an address for your server that is accessible from the device.

Steve

On Fri, Apr 21, 2017 at 2:32 AM, mohamed.hammami via CodenameOne
Discussions <[email protected]> wrote:

> IDE: NetBeans/
> OS
> Simulator
>
> My Wampserver is running in port 8080,
>
> I create a text file under www directory, the URL that I am using is : "
> http://localhost:8080/codenameone/tst.txt"; and when I run the code  it
> returns Error 404: Not found.
>  I just did that and checked the URL multiple times already, even when I
> copy the URL in the URL bar it works but when i run the code with
> codenameOne no.
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> Visit this group at https://groups.google.com/
> group/codenameone-discussions.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/codenameone-discussions/39e836a9-ba15-4b93-b8f9-
> 1d4c72128dc8%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/39e836a9-ba15-4b93-b8f9-1d4c72128dc8%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVhOuHuVQcGsOXH8vdZ36JcgnMbxhe-x7A_L7bRVJW8uA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to