Copying .jar files from one machine to other in network

hi all,
i want to write one functionality in java.which will copy
one .jar file in one machine to another machine (in network).
we can also say that as ftp transfer. can anybody help me in this.
thank you .
Message was edited by:
priyankap

http://www.google.com/search?q=java+ftp+client

Similar Messages

  • Exchanging licence.bea file from one  machine to other.

    Hi,
    If we exchange licence.bea file in Home Directory of weblogic 8.1 in one machine to the Home Directory of Other machine.
    Will there be any changes that we observe ?
    Please if any one tried or know in detail about licence.bea file ,send the Suggestions .
    Thanks and regards
    Srinireddy

    Your license.bea is specific to the IP of the machine. As long as the new machine has the same IP as the old, it should work. At least that is how it works with Solaris.

  • How to copy a file from one location to another ???

    Hi,
    I have a file ('D:/Pictures/1.jpg') and I want to copy this 1.jpg file to a location called 'D:/Folder1'. I tried the WebUtil_File.copy_file function, but it does not work. it returns false boolean.
    I am using windows xp and oracle 10g.
    The webutil configurations are also completed.
    This D: drive is the one which has oracle 10g application server installed.
    Am I doing anything wrong or missed?. I need to complete this urgently. but it does not work.
    Or any other way to copy a file from one place to given any path?. After this I have to renaming (may be using Rename_File function) the copied file. Please advice me.

    An alternative could be HOST command, that calls OS prompt to run a command in the server and then return the focus to the Forms:
    HOST ('copy D:/Pictures/1.jpg D:/Folder1/1.jpg');
    Edited by: Kleber M on Sep 9, 2011 12:38 PM

  • How to copy-paste frames from one document to other with there respective layers intact?

    Hi All,
         I am facing an issue while copy paste frames from one document to other. I have a 3 frames in first documents each one on different layer. First document has 3 layers. The second document too have 3 layers , I am copying frames from first document to scrapdata using 'ICopyCmdData ' and 'kCopyCmdBoss'. I have 'Paste Remembers Layers' menu 'Checked' on Layer panel. I am using following function to copy frames to scrapdata.
    bool16 copyStencilsFromTheTemplateDocumentIntoScrapData(PMString & templateFilePath)
         bool16 result = kFalse;
        do
            SDKLayoutHelper sdklhelp;
            PMString filePathItemsToBeCopiedFrom(templateFilePath);  //("c:\\test\\aa.indt");
            IDFile templateIDFile(filePathItemsToBeCopiedFrom);
            UIDRef templateDocUIDRef = sdklhelp.OpenDocument(templateIDFile);
            if(templateDocUIDRef == UIDRef ::gNull)                 
                break;
            ErrorCode err = sdklhelp.OpenLayoutWindow(templateDocUIDRef);
            if(err == kFailure)                 
                break;
            InterfacePtr<IDocument> templatedoc(templateDocUIDRef,UseDefaultIID());
            if(templatedoc == nil)               
                break;
            InterfacePtr<ISpreadList>templateSpreadUIDList(templatedoc,UseDefaultIID());
            if(templateSpreadUIDList == nil)                  
                break;
            IDataBase * templateDocDatabase = templateDocUIDRef.GetDataBase();
            if(templateDocDatabase == nil)                  
                break;
            UIDRef templateDocFirstSpreadUIDRef(templateDocDatabase, templateSpreadUIDList->GetNthSpreadUID(0));
            InterfacePtr<ISpread> templateSpread(templateDocFirstSpreadUIDRef, IID_ISPREAD);
            if(templateSpread == nil)                 
                break;
            UIDList templateFrameUIDList(templateDocDatabase);
            if(templateSpread->GetNthPageUID(0)== kInvalidUID)                  
                break;      
            templateSpread->GetItemsOnPage(0,&templateFrameUIDList,kFalse,kTrue);  
            InterfacePtr<ICommand> copyStencilsCMD(CmdUtils::CreateCommand(kCopyCmdBoss));
            if(copyStencilsCMD == nil)                
                break;
            InterfacePtr<ICopyCmdData> cmdData(copyStencilsCMD, IID_ICOPYCMDDATA);
            if(cmdData == nil)                 
                break;
            // Copy cmd will own this list
            UIDList* listCopy = new UIDList(templateFrameUIDList);
            InterfacePtr<IClipboardController> clipboardController(gSession,UseDefaultIID());
            if(clipboardController == nil)              
                break;
            ErrorCode status = clipboardController->PrepareForCopy();
            if(status == kFailure)                  
                break;
            InterfacePtr<IDataExchangeHandler> scrapHandler(clipboardController->QueryHandler(kPageItemFlavor));
            if(scrapHandler == nil)                 
                break;
            clipboardController->SetActiveScrapHandler(scrapHandler);
            InterfacePtr<IPageItemScrapData> scrapData(scrapHandler, UseDefaultIID());
            if(scrapData== nil)                
                break;
            UIDRef parent = scrapData->GetRootNode();
            cmdData->Set(copyStencilsCMD, listCopy, parent, scrapHandler);
            if(templateFrameUIDList.Length() == 0)       
                return kFalse;      
            else      
                status = CmdUtils::ProcessCommand(copyStencilsCMD);    
            if(status != kFailure)
              result = kTrue;
            sdklhelp.CloseDocument(templateDocUIDRef,kFalse,K2::kSuppressUI, kFalse);
        }while(kFalse);
        return result;
    After this I need to close first document. Now I am opening the second document from indt file which has same number of layers as first document. I am trying to paste frames from scrap data to second document using '' 'ICopyCmdData ' and 'kPasteCmdBoss' as shown in follwoing function
    bool16 pasteTheItemsFromScrapDataOntoOpenDocument(UIDRef &documentDocUIDRef )
        bool16 result = kFalse;
        do
               InterfacePtr<IClipboardController> clipboardController(gSession,UseDefaultIID());
                if(clipboardController == nil)
                    break;
               InterfacePtr<IDataExchangeHandler> scrapHandler(clipboardController->QueryHandler(kPageItemFlavor));
               if(scrapHandler == nil)               
                    break;
               InterfacePtr<IPageItemScrapData> scrapData(scrapHandler, UseDefaultIID());
                if(scrapData == nil)
                   break;
                     //This will give the list of items present on the scrap
                UIDList* scrapContents = scrapData->CreateUIDList();
                if (scrapContents->Length() >= 1)
                    InterfacePtr<IDocument> dataToBeSprayedDocument(documentDocUIDRef,UseDefaultIID());
                    if(dataToBeSprayedDocument == nil)
                       break;
                    InterfacePtr<ISpreadList>dataToBeSprayedDocumentSpreadList(dataToBeSprayedDocument,UseDef aultIID());
                    if(dataToBeSprayedDocumentSpreadList == nil)
                         break;
                    IDataBase * dataToBeSprayedDocDatabase = documentDocUIDRef.GetDataBase();
                    if(dataToBeSprayedDocDatabase == nil)
                         break;    
                    UIDRef spreadUIDRef(dataToBeSprayedDocDatabase, dataToBeSprayedDocumentSpreadList->GetNthSpreadUID(0));               
                    SDKLayoutHelper sdklhelp;
                    UIDRef parentLayerUIDRef = sdklhelp.GetSpreadLayerRef(spreadUIDRef);
                    InterfacePtr<IPageItemScrapData> localScrapData(scrapHandler, UseDefaultIID());
                    if(localScrapData == nil)
                        break;
                    if(parentLayerUIDRef.GetUID() == kInvalidUID)
                        break;
                    InterfacePtr<ICommand> pasteToClipBoardCMD (CmdUtils::CreateCommand(kPasteCmdBoss));
                    if(pasteToClipBoardCMD == nil)
                        break;
                    InterfacePtr<ICopyCmdData> cmdData(pasteToClipBoardCMD, UseDefaultIID());
                    if(cmdData == nil)
                        break;
                    if(scrapContents == nil)
                        break;               
                    PMPoint offset(0.0, 0.0);
                    cmdData->SetOffset(offset);
                    cmdData->Set(pasteToClipBoardCMD, scrapContents, parentLayerUIDRef );
                    ErrorCode status = CmdUtils::ProcessCommand(pasteToClipBoardCMD);
                    if(status == kSuccess)
                        CA("result = kTrue");
                        result = kTrue;
                }//end if (scrapContents->Length() >= 1)       
        }while(kFalse);
        return result;
         Here in above function its required to set Parent Layer UIDRef and because of this all frames are getting paste in one layer.
    Is there any way we can paste frame in there respective layers?
         Also I need to work this code with CS4 server and desktop indesign.
    Thanks in advance,
    Rahul Dalvi

    Try,
    // dstDoc must be FrontDocument
    InterfacePtr<ILayoutControlData> layoutData(Utils<ILayoutUIUtils>()->QueryFrontLayoutData());
    InterfacePtr<ICommand> createMasterFromMasterCmd(CmdUtils::CreateCommand(kCreateMasterFromMasterCmdBoss));
    createMasterFromMasterCmd->SetItemList(UIDList(srcMasterSpreadUIDRef));
    InterfacePtr<ILayoutCmdData> layoutCmdData(createMasterFromMasterCmd, UseDefaultIID());
    layoutCmdData->Set(::GetUIDRef(layoutData->GetDocument()), layoutData);
    CmdUtils::ProcessCommand(createMasterFromMasterCmd);

  • How to copy OVD configuration from one machine to another?

    We have two machines with OVD servers on them. The configurations should be identical from one machine to the other. We suspect there is a problem with the configuration on one of them. We need to know how to copy OVD configuration from one machine to another.
    Can you tell us how to do that?

    well i have this in mind which may help you.
    You would need to have a public ip address to the machine you have consoled to and on internet.
    Download the tftp software from below link.
    http://tftpd32.jounin.net/
    This software does not only act as the tftp server but also you can select the interface of you ethernet card as tftp server ip address.
    For ex if you are connected to a console and have a wireless card which is connected to internet also you connect you eth lan card to the eth or fast eth of the router.
    you can select which ever interface you want to act as the tftp server.
    you will need to add ip addres for you lan card and also config the router port as same if needed.

  • I need to upload my files from one directory into other directory.

    i need to upload my files from one directory into other directory.( all its contents,folders,sub folders, files etc)
    for this task
    suppose my source folder is C:/test/test1/test2/test3
    and my destination is D:/
    first i have to check whether my dest dirctory already contains source directory..and its files
    if it contains the same structure then i have to replace the destination dir structure to source dir structure( to upadte changes)
    if it(dest dir) not contains source dir ..means it doesn't contain source folder then
    i have to create same source folder directory structure ( test.test1/test2/test3...) at destination(D:/) and copy all its contents frm source directory...
    ( means i don;t want to create manually same dir structure as source at destnation dir to copy all contents)

    I believe you need to read up on the class File.java (it comes with java).
    Some examples:
    File file = new File("C:/myDirectory");
    if(file.isDirectory())
    System.out.println("this is a directory");
    if(file.isFile())
    System.out.println("this is a file").
    You will then need to read up on other classes to read/write to the file such as FileReader and FileWriter.

  • MAXDB copy log file from one server to the other server.

    Hi All,
    I want to copy a log file from one server to the other server , the database is Maxdb and i don't know how to do it. I want to do it through command prompt, (set of commands required) the front end tool which we are using is DBM ( database manager). Please help.
    Regards
    M.A

    Hi,
    Basically, the process is of log shipping. Transferring logs from DC to DR system.
    For that, you can check HowTo - Standby DB log shipping - MaxDB - SCN Wiki
    This is script based. I have not done it but the idea remains the same.
    Regards,
    Divyanshu

  • Export schema from one machine to other machine by datapump

    can I export 10g schema from one machine other machine (10g) if how
    thanks

    In the same manner as You ould use expdp/impdp on the same machine.
    expdp needed data on one server.
    copy dmp file to another
    impdp on another server
    Read documentation:
    http://www.oracle-base.com/articles/10g/OracleDataPump10g.php

  • How to copy a file from one folder to another folder in Linux

    Hello everyone,
    Oracle forms 11g 11.1.2.0.0
    OS: Oracle Linux
    We use webutil to upload files to the application server from the client machine, and stores them in a folder named JOB_DOCS on the application server (This folder is created as a databse directory too). File types are JPEG, GIF, PDF, TXT, BMP, DOC, XLS etc...
    At a later stage when the user tries to view the uploaded documents, this was not getting displayed on the screen
    on our windows server, when the user clicks on the print button we copy the file from the JOB_DOCS folder to the forms\java folder using the below command
    HOST('COPY ' ||d:\JOB_DOCS\test.pdf||' '||'c:\oracle\middleware\as\forms\java\test.pdf ,NO_SCREEN);
    once the file is under the forms\java folder then it is getting displayed on the screen to print or save, and later we remove the file from forms\java folder.
    But my problem here is, recently we have installed our application on Oracle Linux server, and we have JOB_DOCS folder there, and the users can upload files to this folder also. How can we copy the file test.pdf from JOB_DOCS to forms/java in linux?
    And what could be the reson for the document cannot be accessed from the folder where it is saved? We tried giving folder permissions, adding the folder to PATH variable etc.

    For copying and moving directories you can use the cp and mv commands just like you use them with files. Yeah, I know. If you've already tried to copy a directory with cp, you've probably noticed that cp just complains at you. Probably it says something like cp: omitting directory yadda yadda. You see, the cp command wants you to use the -r option if you want to copy a directory with its contents. The -r means "copy recursively":
    $ cp -r dir1 dir2
    The above creates a directory named dir2 whose contents will be identical to dir1. However, if dir2 already exists, nothing will be overwritten: the directory dir1 will be copied into the dir2 directory under the name dir2/dir1.
    When renaming directories, you use the mv command exactly the same way as with files:
    $ mv dir1 dir2
    When dealing with directories, mv works a bit like cp does. If dir2 doesn't exist, the above will rename dir1 to dir2, but if dir2 exists, the directory dir1 will be moved into the dir2 directory under the name dir2/dir1.
    ref http://www.tuxfiles.org/linuxhelp/dirman.html

  • Copying video files from one external drive to another

    Hello! I am very new to Apple and FCP, so please forgive my ignorance. I have looked through the other topics and have not found one that addresses my question, so please forgive me if this has been addressed in the past.
    I am working on a project and have all of my video clips saved to a G-Tech G-Raid 320 GB extenal hard drive. I captured much of my footage using "capture now" instead of logging individual clips for various reasons (i.e.: some tape sources did not have timecode), so if I ever have a problem, simply recapturing the footage does not appear to me to be a valid option.
    With this weighing heavily on my mind, I thought it would be best to copy the poject to a second G-RAID external hard drive.
    However, the G-RAID uses an 800 firewire and my G5 computer only has one such port.
    What would be the best way to copy from the one external drive to the other? Will I have to copy the files to my internal hard drive first? And if so, how do I do that? Thanks!!

    Crystal,
    Please reply to a specific post, not to your orignial one. This keeps the threaded discussion in order.
    To see the format for a drive. Open Disk Utility. It is located in your /Applications/Utilities folder.
    You should see all your connected drives on the left side of the window. Click on the icon of the drive you want information on. Select the Volume icon, not the Drive icon ( the volume icon is the one under and slightly indented to the right of the drive icon)
    Look at the bottom of the window. You'll see an item FORMAT: it should say Mac OS Extended. If it says MS-DOS, you'll need to ERASE the disk. When you do that, you'll have the option of changing the format.
    Do not right click and COPY. Simply drag the icon of the folder containing your media files from one disk to the other. It will copy by default.
    good luck.
    x

  • How to copy .gif files from one dir to another using runtime.exec

    hello sir/madem,
    i want to copy some gif and jepg files from one directory to another dir using swing.
    when i tried with using runtime.exec(String[]) i am getting the following error.
    anybody please tell me what is the problem in my program
    java.io.IOException: CreateProcess: ren c:/windows/desktop/copy.java c:/windows/
    cc.java error=0
    code:
    public class copy
         public static void main(String[] args)
              try{
                   String s[]=new String[3];
                        s[0]="ren";
    s[1]="c:/windows/desktop/copy.java";
    s[2]="c:/windows/cc.java";
              Runtime rt=Runtime.getRuntime();
    Process p=rt.exec(s);
              int i=p.waitFor();
              System.out.println("i is "+i);
              }catch(Exception e){System.out.println(e);}
    please mail me to [email protected]
    thanks in advance
    samba reddy
    india

    why use the Runtime? There are methods for this in the IO package ...

  • Cant open boot archive after copying Solaris 10 from one machine to another

    We are running "Solaris 10 3/05 s10_74L2a" on a Sun Fire 480R.
    I tried to, using ufsdump to copy the filesysem to a T5220 which has 4 disks, the first 2 disks are a mirrored os of a Solaris 10 version already there.
    So I restored the ufs inages to the 3rd disk, ran installboot with the bootblock from the restored image for s sun Fire 480R as there did not appear to be a bootblock for a T5220 , as its a more recent server.
    ie:
    installboot /mnt/usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c1t2d0s0
    /mnt/usr/platform/SUNW,SPARC-Enterprise-T5220/lib/fs/ufs/bootblk: File not found
    so I do this instead :
    installboot /mnt/usr/platform/SUNW,Sun-Fire-480R/lib/fs/ufs/bootblk /dev/rdsk/c1t2d0s0
    Now then I try to boot I get :
    Boot device: /pci@0/pci@0/pci@2/scsi@0/disk@2 File and args:
    ufs-file-system
    Loading: /platform/sun4v/boot_archive
    Loading: /platform/sun4v/boot_archive
    Can't open boot_archive
    Evaluating:
    The file just loaded does not appear to be executable.
    but, as far as I know this old version of Solaris did not use a boot archive and there is no directory /platform/sun4v/boot_archive in the restored files, nor on the original server.
    So, my question is, if the old version of os did not support a boot-archive, why is this restored image, when I boot , giving this error.
    Surely all the data on the 3rd disk should be the same as on the old server.!!
    What am I missing here ??
    George

    Well, you can't just copy an OS from one type of system to another and expect it to work. For one thing the OS communicates with its hardware through the /dev/ and /devices layer, and that layer will be completely different when you transfer it to another system.
    Second of all the lack of boot block for the T5220 in your installation indicates that your version of Solaris 10 does not support the T5220 platform, which probably means that it will be impossible to boot completely on it anyway..
    I'm not sure when the SPARC systems started to use the boot-archive..
    Anyway, the two things you have missed is to create the boot-archive (with bootadm update-archive -R /mnt), and to run devfsadm on the new platform (devfsadm -r /mnt ).
    Even so, there is no guarantee that your version of Solaris actually supports your hardware.. But i guess that's documented in the Sun System Hardware Handbook..
    .7/M.

  • I have two external HDs, I plugged both in my iMac. I can open both but I can't copy or move from one to the other any help?

    I have two external HDs, I plugged both in my iMac. I can open both, I cn move files to my mac. but I can't copy or move files from one EHD to the other EHD any help?

    I assume your External HDDs are formatted in NTFS. With this format OSX can see files and copy from but cant copy or move to those devices. You need to install any third party software to enable both way copy/move feature. You can use TUXERA NTFS in OSX. It is fantastic software to solve your problem.

  • How i can copy the script from one language to other language

    dear all,
    how can i copy script i.e i changed =in EN, but i want copy convert same effects in DE (from one language to other language but not all language)

    hi,
    From the SAP standard menu, choose SE71.
    On the Form Painter: Request screen:
    1)Enter the name of the form (ZORDER01) in the Form field.
    2)Enter DE in the Language field.
    3)Click created and press OK.
    4)From menu bar, choose form->copy from
    5)In the popup, give formname as (ZORDER01) and language as EN and click ok.
    6)Save the form and activate it.
    Regards,
    Sailaja.

  • HT201236 I want to do something so simple that there are no instructions. I just need to have two windows open at the same time so I can transfer files from one to the other by drag

    I want to transfer files from one device (or page ) to another by drag and drop , so i need two windows ope   at the same time,
    I know this can be done but I have forgotten how

    Don't use any full screen options for any app that has them
    Mount your device and double click on it to open it. Drag this window to the upper right of your Desktop and resize it to a bit less than half of your Desktop.
    Open the next folder and position it on the lower left side and resize it so you can still see the previous window.

Maybe you are looking for

  • How do I make a sine wave in illustrator?

    Hi, I started a thread earlier this evening but I think that I accidentally flagged it as "solved" or something like that (I'm new to this forum). So I'm trying this again. I want to know if there's a way of creating a sine wave in illustrator. I've

  • How can I pass field value beetwen view in IC Web Client?

    Hi my name is Adrian and I am begining abuot BSPs programming. I have a next problem, I have two views, IRecReson.htm and IRecFollowUp.htm. They have a description field both, and I need to pass the same value to description field when the user save

  • Employee Vendor and GL Posting

    HI Guru's Here in my Client there is no HR module, every employees are  considered as a Vendor there are so many deductions on employee salary, so i want to Map the same in SAP, So, kindly give the steps in posting of trasactions in each GL Accounts

  • Syndicating Attributes in a flat file

    Hello, I have a challenge. I am want to syndicate a material classification (taxonomy table) and related attributes to a flat file. I want the result to look like this: C 613316   VALVE_MANUAL_                  D 613316   PRESSURE_RATING_CLASS_INLET_

  • Pro v Air

    What are the FUNCTIONAL differences between the two? What can I do with one that I can't do with the other? I've looked at the specs and the text descriptions and I need a more user friendly, layman's explanation of the distinctions.