Finally solved it with this code found here: Java HttpURLConnection (how to open and read a url with Java) | devdaily.com
public String websiteToString(String desiredUrl) throws Exception
{
...
Type: Posts; User: rosco544
Finally solved it with this code found here: Java HttpURLConnection (how to open and read a url with Java) | devdaily.com
public String websiteToString(String desiredUrl) throws Exception
{
...
No I'm just on a standard home network. I do have an apache server running on the localhost if that matters, so I can use mysql and php and stuff. But I don't think that has anything to do with it....
Well I don't think I've done anything wrong because the entire project/program works flawlessly in Eclipse. I think it has something do with the Proxy settings that the JVM uses. I just don't know...
I edited the code to look like this in my program and re-ran it from the command line.
URL link = new URL("http://www.yahoo.com");
System.out.println("got to this line 1");
BufferedReader...
I edited the code to look like this in my program and re-ran it from the command line.
URL link = new URL("http://www.yahoo.com");
System.out.println("got to this line 1");
BufferedReader...
Sorry about the cross-posting I didn't realize the two forums had the same viewers. I edited the original post to include the full source and if a solution is found I will post it and let everyone...
Hi, I am trying to use this code which works fine in Eclipse but when I try to execute the program from the command line it just hangs forever and can never accesses the URL.
I am trying to run...