Results 1 to 2 of 2
  1. #1
    ethical is offline Member
    Join Date
    Apr 2011
    Posts
    3
    Rep Power
    0

    Default java.io.FileNotFoundException: http://192.168.1.101:80/abc

    Hello Friends Im using this program to identify files on web servers for that it should continually try random file names , but when it moves to a unavailable file or a file it gives a error saying file not found ,

    is there anyway to continue that without having any errors ?

    Java Code:
       private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
    try {
              
                URL url = new URL("http://192.168.1.101:80/asd");
    
             
                BufferedReader in = new BufferedReader
                (new InputStreamReader(url.openStream()));
    
                String htmlText;
    
                while ((htmlText = in.readLine()) != null) {
                  
                    System.out.println(htmlText);
                }
                in.close();
            } catch (MalformedURLException e) {
                e.printStackTrace();
                 
    
            } catch (IOException e) {
                e.printStackTrace();
                 
    
            }
    
    
        }

  2. #2
    ra4king's Avatar
    ra4king is offline Senior Member
    Join Date
    Apr 2011
    Location
    Atlanta, Georgia, US
    Posts
    396
    Rep Power
    4

Similar Threads

  1. Replies: 22
    Last Post: 04-09-2011, 05:59 AM
  2. Replies: 4
    Last Post: 11-06-2010, 12:50 AM
  3. Replies: 1
    Last Post: 04-01-2009, 08:34 PM
  4. Replies: 1
    Last Post: 01-12-2009, 09:59 AM
  5. java.io.FileNotFoundException
    By thevoice in forum New To Java
    Replies: 5
    Last Post: 06-13-2008, 09:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •