Search:

Type: Posts; User: rosco544

Search: Search took 0.10 seconds.

  1. Re: Open a URL and read it line by line (Works in Eclipse but not from Command Line)

    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
    {
    ...
  2. Re: Open a URL and read it line by line (Works in Eclipse but not from Command Line)

    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....
  3. Re: Open a URL and read it line by line (Works in Eclipse but not from Command Line)

    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...
  4. Re: Open a URL and read it line by line (Works in Eclipse but not from Command Line)

    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...
  5. Re: Open a URL and read it line by line (Works in Eclipse but not from Command Line)

    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...
  6. Re: Open a URL and read it line by line (Works in Eclipse but not from Command Line)

    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...
  7. Open a URL and read it line by line (Works in Eclipse but not from Command Line)

    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...
Results 1 to 7 of 7