I am working on an embedded platform where I don't have java.net package (and consequently java.net.URI). I try to create an HttpClient using Apache libraries, but when I create an HttpGet object and pass a String parameter like this
String request = "www.example.com";
HttpGet response = new HttpGet(request);
I still get
The type java.net.URI cannot be resolved.
Why can't I just use new HttpGet(String)
constructor?
The same conflict happens when I try to create a JSONObject from String and the constructor demands java.util.Map that I don't have either.