Accessing a file in another  system

Hello,
         Can Anyone please tell me how to access a file in another system using java.
Thanks in Advance,
Venkat

Hi Venkat
Check following link.
This link is helpful for you
http://java.sun.com/developer/onlineTraining/Programming/BasicJava1/data.html#app
http://www.devdaily.com/java/edu/pj/pj010004/pj010004.shtml
Regards
Ruturaj

Similar Messages

  • Unable to restrict afp folder access using File Sharing in System Prefs

    If I share files using AFP, and authenticate using a standard account from another machine on the LAN, I can browse and access ALL files and folders on the machine, not just those specified under "Shared Folders" in System Preferences->Sharing->File Sharing. Machine is running OS 10.6.5.

    ...You shouldn't be able to authenticate as a user/account that is not on the local machine.
    Also for each item listed in Sharing Preferences, you have to specify POSIX permissions for specific users, check to make sure 'everyone' isn't set to read and write.

  • Can't Access Home page in another system

    Hi All,
    I had recently installed BO 3.1 and when i tried to access the CMC IP link (http://ct-c8-pc1:8080/CmcApp/logon.faces) from another system it throws an error "Cannot find page:CmcApp/logon.faces". I had open the ports for tomcat 8080 and CMS (6400) , it works for tomcat when i tried to access from other system 'http:
    10.9.60.45:8080/'. Any help would be appreciated.
    Thanks,
    Kalyan

    Try without logon.faces in the url.
    http://ct-c8-pc1:8080/CmcApp/
    Also log into Tomcat manager and check whether all the war files are running.

  • How to upload an XML file into another system

    Hi friends,
    I have a requirement where I need to upload an  XML file into one system
    which has been downloaded  using  another  system.
    I have tried using the method ' cl_gui_frontend_services=>gui_upload'
    to upload the file but it is going for dump.
    I have used the  method ' w_xml->import_from_file' also,
    but it is also going for dump ,because  both methods are using the same FM
    ' GUI_UPLOAD'.
    Can any one suggest on this.
    Regards,
    Bhargavi.D

    "Here is the  Explaination for uploading the XML   Format file to sap   " through ABAP Program ....
    1. Basically you simply have to convert the XML file into the proper IDoc format. There are many ways to achieve this. One solution would be to convert it externally to SAP, e.g. via VB Script or with an XSLT transformation. Or you use the built in SAP functions for importing an IDoc from an XML stream.
    2. Uploading a file is either done via GUI_UPLOAD or via the usual way of reading a file from the application server (Open dataset. Read dataset) But what do you mean by "send to external system"? Do you want to convert an IDoc into XML? Then you simply define an XML port with WE21 to send the IDoc out.
    Here is an example of code that loads an XML from file and posts it as an IDoc. Please keep in mind that the XML has to be in its canonical format as described in the interface repository: ifr.sap.com (choose the template of the desired IDoc from there as an example).
    data: data_tab type table of char1024.
    data: XML_STREAM type string.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = 'D:test.xml'
    *   FILETYPE                      = 'ASC'
    *   HAS_FIELD_SEPARATOR           = ' '
    *   HEADER_LENGTH                 = 0
    *   READ_BY_LINE                  = 'X'
    *   DAT_MODE                      = ' '
    *   CODEPAGE                      = ' '
    *   IGNORE_CERR                   = ABAP_TRUE
    *   REPLACEMENT                   = '#'
    *   CHECK_BOM                     = ' '
    * IMPORTING
    *   FILELENGTH                    =
    *   HEADER                        =
      TABLES
        DATA_TAB                      = DATA_TAB
    EXCEPTIONS
       FILE_OPEN_ERROR               = 1
       FILE_READ_ERROR               = 2
       NO_BATCH                      = 3
       GUI_REFUSE_FILETRANSFER       = 4
       INVALID_TYPE                  = 5
       NO_AUTHORITY                  = 6
       UNKNOWN_ERROR                 = 7
       BAD_DATA_FORMAT               = 8
       HEADER_NOT_ALLOWED            = 9
       SEPARATOR_NOT_ALLOWED         = 10
       HEADER_TOO_LONG               = 11
       UNKNOWN_DP_ERROR              = 12
       ACCESS_DENIED                 = 13
       DP_OUT_OF_MEMORY              = 14
       DISK_FULL                     = 15
       DP_TIMEOUT                    = 16
       OTHERS                        = 17
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'CONVERT_TABLE_TO_STRING'
      EXPORTING
        I_TABLINE_LENGTH       = '1024'
      IMPORTING
        E_STRING               = XML_STREAM
      TABLES
        IT_TABLE               = DATA_TAB[].
    write: / xml_stream color col_total.
    data: CONTENT_LENGTH type string.
    data: CONTENT_TYPE type string.
    data: REMOTE_ADDR type string.
    CALL FUNCTION 'IDOC_INBOUND_XML_VIA_HTTP'
      EXPORTING
        XML_STREAM                      = XML_STREAM
        CONTENT_LENGTH                  = content_type
        CONTENT_TYPE                    = content_type
        REMOTE_ADDR                     = remote_addr
    EXCEPTIONS
       NO_IDOCS_SAVED                  = 1
       TAG_ERROR                       = 2
       NO_DATA_RECEIVED                = 3
       NO_IDOCS_RECEIVED               = 4
       SEGMENT_ERROR                   = 5
       IDOC_WAS_SEND_SECOND_TIME       = 6
       OTHERS                          = 7
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    write: / sy-subrc color COL_NEGATIVE.
    ENDIF.
    reward  points if it is usefull.......
    Girish

  • Access the file from external system which is in the same LAN

    I have created technical system as standalone and given as my server name and attached to business system
    When creating comm. Channel giving path as “\foldername1\ foldername2\”
    Filename : “test.txt”.
    It is giving path does not exists.
    Is that the correct way to do access the file which is in the same LAN.
    Can any one help me on this.
    What path I should give exactly in the Comm channel..
    Thanks
    M

    Dear Murali,
    Try this
    a)Start transaction SXI_CACHE.
    b)From the context menu XI Runtime Cache select Start Complete Cache Refresh.
    If you still face issue try this .
    Many actions require to access System Landscape Directory content from the Integration Builder. To optimize performance, this content is loaded into a cache so that the System Landscape Directory does not have to be accessed directly each time that System Landscape Directory content is required.
    However, this cache is not automatically updated if changes are made to the content of the System Landscape Directory. For this reason that we delete the System Landscape Directory cache if changes have been made to content in the System Landscape Directory. The cache is then filled each time that the System Landscape Directory is accessed. If we log on to the Integration Builder after we have made a change in the SLD, we do not need to delete the SLD cache.
    To clear the SLD cache, from the Integration Builder main menu, choose Environment ® Delete Cache for SLD Data.
    Once we have deleted the cache for SLD data, accessing objects in the SLD may take longer than usual initially.
    Regards
    Agasthuri Doss

  • Accessing a file on another machine

    Hi guys,
    I have one of 2 things which I need to be able to do. The ideal solution would be to access a file that I access through remote desktop through PL/SQL (to be used as an email attachment). The alternative would be to move a file from the remote directory to the database server with shell scripting. Any help with either is appreciated.
    Mike

    Hi Kamran,
    I'll suggest it to someone now (as soon as I google mount & NFS to better understand :)). By the looks of it the shell scripts are run on the windows terminal and connect to the database, I believe this to be the case as the file is saved on the windows terminal using:
    hkrpt.ksh $RPT_TYPE > ${HKRPT}/grth${RPT_TYPE}.${TODAY}
    This then connects to the server and calls a procedure. Would I be able to include an "sqlplus -s $HKLOGIN" in the script (the same connection as hkrpt and move the file using that somehow?
    Edit: Which way would the mount work? able to see folders on the database server & copy them to there from shell script commands or from pl/sql on the db?
    Mike
    Edited by: Dird on 05-Aug-2009 01:43

  • Downloading file to another system

    Hello,
    There is a class in one of the systems that my company has, and now we would like to move it to another system line by line. However, the problem is that the class has like 13 long methods and I really don't want to physically copy and paste every single attributes, parameters, exceptions and codes one by one in SE24. Is there a more convinient way of doing that? Thanks a lot!
    Regards,
    Anyi

    Hi,
      If there is any transport from source and target systems...Try transporting the CR which has the class and the methods..
      Otherwise...You have to do manually..
    Thanks,
    Naren

  • How to move and access .pst file to another location

    I want to move my .ost file in D drive and access from D drive. but when i move the file and start the outlook again then all mails start to download from server again .
    Help me

    Hello Taj,
    The current forum is for developers. I'd suggest asking non-programming questions on the
    Outlook IT Pro Discussions forum instead.
    Anyway, you need to correct the new filepath in the profile settings. Go to the Control Panel applet and look for the Mail shortcut.

  • Shared Files on another system.hope no body knows

    how to do it in java....
    how can we know the shared file listing in a system using java.

    On Windows you can probably navigate to the shared content of other systems using javax.swing.filechooser.FileSystemView

  • Process can't access file bcos another process has locked a portion of file

    Does anyone knows if Java could handle the well-known "Open File" problem.
    I encounter the following error when I was trying to copy an outlook file to another location:
    java.io.IOException: The process cannot access the file because another process has locked a portion of the file.
    My codes is placed below for reference.
    Note that I was only trying to open to open the file for reading the Inputstream. Please advise what I could do to avoid getting caught in exception while reading the bytes.
    It will be good if Java could handle the Microsoft's "Open File" problem.
    // my codes
    public static void main(String[] args)
    int BUFSIZE = 4096;
    File theFile = new File("C:\\Documents and Settings\\" + myID +
    "\\Local Settings\\Application Data\\" +
    "Microsoft\\Outlook\\mail.pst");
    long size = theFile.length();
    try {
    FileInputStream fis = new FileInputStream(theFile);
    // exception will happen on the next line
    if (!(size >= 0 &&
    fis.read(new byte[BUFSIZE],0,(int)Math.min(size,BUFSIZE)) > -1)) {
    System.out.println("encountered OFM problem");
    } else {
    System.out.println("read file successfully");
    } catch (Exception e) {
    System.out.println("caught OFM problem");
    e.printStackTrace();

    Sometimes Windows can place a lock on files that will
    prevent you from even reading its contents. You may
    have to close the MS Outlook application in your
    machine to be able to read the contents of this file.Of course I knew Microsoft has locked the file.
    I also knows Microsoft locks a lot of other files too.
    The idea is that we just want to read the file, we are not writing or modifying anyway, so we should be able to read it. Of course that depends on whether Java wants to step into the area and do something about it. (Please read http://www.stbernard.com/products/docs/ofm_whitepaperV8.pdf)
    Well, the easiest way anyone could advise is probably to use Microsoft development tools. The idea is nobody wants to be a "Micro-slaves" if we could...
    So I am still waiting for someone with the area of expertise to reply...

  • Trying to access files on another partition: "you don't have permission to see its contents"

    I want to access my files on another Mac OS X partition, but I get this error. Is there a way to provide the right credentials and access the files?

    Select the volume icon in the Finder and open the Info window. Click the padlock icon in the lower right corner of the window and enter your administrator password when prompted. Check the box at the bottom marked
              Ignore ownership on this volume
    Close the Info window.

  • Access Time Capsule from another location

    My Time Capsule works well in my WiFi at home with both automatic backup of my Macbook Pro and to save large files on.  What are the setting i need to add to be able to access the files from another WiFi system away from home?

    There is a lot of setup involved..
    The TC must be the main router of the network.. it cannot be bridged.
    The wifi network you are attached to remotely must give you a full public access IP address. Find the public IP of the TC and see if you can then access it.
    Do not ever expect this sort of thing to be completely straight forward.
    Read the many many posts about remote access. There are different methods if BTMM doesn't work.
    See AirPort
    Remote access article as a starting point.

  • Access a file which is in local network via jsp

    i try to access some files from a system in the network.
    i couldn't make it through jsp and servlet
    im using tomcat webserver.
    but in core java it works finely.
    the below r the example code...
    core java coding(It works)
    class a
    public static void main(String ar[])
      String a="//software2/d$/Daily Shipment Backup";
          java.io.File f=new java.io.File(a);
          if(f.exists())   //whether the directory exists
      System.out.println("Exists");
          else
      System.out.println("Error");
    }jsp coding
    <html>
    <%
      String a="//software2/d$/Daily Shipment Backup";
             java.io.File f=new java.io.File(a);
          if(f.exists())
      out.println("Exists");
          else
      out.println("Error");
    %>
    </html>

    Tomcat (And other JSP/Servlet containers) have security restrictions which disallow you from accessing the local/remote file system. You will probably need to modify your security policy settings
    I believe Tomcat stores this file in $CATALINA_HOME/conf/catalina.policy
    You can read more here.
    http://jakarta.apache.org/tomcat/tomcat-4.1-doc/security-manager-howto.html
    Hope this helps
    -Jeff

  • Copy FCP Project File to Another Computer - Version of FCP

    Hi
    I just started using the Media Manager, and it works great for copying RAW footage, and proejct files to another computer.
    Just wondering;
    In the tests I've conducted, the Project File got copied just fine to a system that contained the same FCP Version (5.1), as the source drive/system.
    If I copy Raw Media and a Project File to another system that has version 6, will I be able to re-copy it back into my version; 5.1?
    Thanx

    Hello and thank you
    "You would then need to export an XML file out of FCP6, to work with it in FCP5"
    Can this 'XML file' behave like an ordinary edited clip in the timeline? Can it be edited? Or will this 'XML file' be an un-editable movie type file when placed back on the timeline in 5.1?
    Know what I mean?

  • Help me to Access a File in the Local Network

    Hi everybody,
    I'm new to this field.
    I want to access a file in a machine on the local network from other machines.
    can anybody please give me a simple code for this.
    (actually I'm very little aware of this field)
    Thank You.

    Duminda_Dharmakeerthi wrote:
    Hi everybody,
    I'm new to this field.
    I want to access a file in a machine on the local network from other machines.
    can anybody please give me a simple code for this.This is not a code writing service.
    If you want to access a file on another machine, there are many different ways to do it. All of them require that the other machine be running some kind of service, and that your client machine knows what that service is and how to use it, and most also require your client to authenticate itself.
    You could mount a remote drive with Samba or NFS or Windows' file sharing.
    You could use FTP.
    You could use SCP.
    You could use HTTP.
    You could develop your own custom file sharing protocol.
    You could use some other option not mentioned here.

Maybe you are looking for