Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By JosAH

Thread: Connecting to a file on a server

  1. #1
    Join Date
    May 2011
    Posts
    6
    Rep Power
    0

    Default Connecting to a file on a server

    can anyone inform me as to how i can connect a java application to a server on the same network so I can read a file. I can access the server from a clint computer by typing \\computername on the windows search box. The program resides on this same computer that access to the \\computername computer.

    help would be greatly appreciated.

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,453
    Rep Power
    25

    Default

    What kind of server? What protocols does it handle?
    FTP and HTTP are two popular protocols.
    There are many example programs that use those two protocols.

  3. #3
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,534
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by lance9200@yahoo.com View Post
    can anyone inform me as to how i can connect a java application to a server on the same network so I can read a file. I can access the server from a clint computer by typing \\computername on the windows search box. The program resides on this same computer that access to the \\computername computer.

    help would be greatly appreciated.
    That's a 'UNC' (Universal Naming Convention) name; such an object can be used by simple File objects. Read the API documentation for the File class.

    kind regards,

    Jos
    Norm likes this.
    cenosillicaphobia: the fear for an empty beer glass

  4. #4
    mine0926 is offline Senior Member
    Join Date
    Apr 2010
    Location
    Philippines
    Posts
    580
    Rep Power
    5

Similar Threads

  1. connecting to a server
    By paddala in forum Advanced Java
    Replies: 4
    Last Post: 02-16-2010, 07:40 PM
  2. Connecting to Server Application
    By andre1011 in forum Networking
    Replies: 1
    Last Post: 10-29-2009, 07:29 AM
  3. Connecting to SQL Server 2008 DB
    By Lyle in forum Eclipse
    Replies: 1
    Last Post: 02-22-2009, 04:26 PM
  4. Connecting To SQL Server
    By rmaadil in forum JDBC
    Replies: 7
    Last Post: 08-20-2008, 05:53 PM
  5. Connecting to a Web server
    By Java Tip in forum java.net
    Replies: 0
    Last Post: 04-07-2008, 07:57 PM

Posting Permissions

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