FTP for unix to widows using java

I need to copy files in unix server to my windows system.i can do this using ftp manually. how can i implement this ftp in java?

i am in need of sample codes for doing ftp (unix to
windows). can some one suggest to me sites where i
can get "free" codes.[ _ ] You read the article
[ _ ] You followed the references the article made
[ _ ] You know how to use Google

Similar Messages

  • Monitor Unix Mail Queue using java

    Hi! ,
    I want to monitor unix mail queue using java. how can i proceed..
    Please advice..
    Thanks..
    Ganesh

    Google and see if there is an API which lets you monitor it.
    Kaj

  • How to display Map for viewing in browser using Java

    I am fidning a solution for displaying political maps in browser using Java technology.
    Is ther anybody with a solution.
    Waiting for your respone.
    Regards
    Mithun

    palanithendral wrote:
    Hi,
    Our application using in English, German, Franch and chinese.You have several different idioms in your application and have not accurately identified where the actual problem is. You have all of the following
    -database
    -http
    -excel
    -excel in http
    -display on the target computer
    The first step with these sorts of problem is to identify where the problem actually occurs.
    String chineseCharacter=""; // chineseCharacter like 長长牀床東东彿佛. This chinese data coming from oracle database..A good theory. Now explain how you proved that that is what is coming from the database.
    After export the data to excel show the result for 長长牀床東东彿佛.As another example. Presumably you are referring to what the browser on the target computer displays. Your theory is that that computer and that browser (together) will display the correct information if they had the correct data. How did you prove that?

  • How to change the parameter 'Default Servers To Use For Viewing And Modification' using java api dynamically.

    Hi,
    I need to change the Crystal Reports setting 'Default Servers To Use For Viewing And Modification' to a particular server.this i need to do using java api.
    could you pls provide me the sample code for this.
    Regards
    Srinivas

    The IReport interface extends IViewingServerGroupInfo interface, that allows you to specify the server group. 
    The choice selection for that interface is as follows:  0 = first available, 1 = prefer the selected server group, and 2 =  only use the selected server group.
    The server group selection is by the SI_ID for that server group InfoObject.
    Sincerely,
    Ted Ueda - Developer Support

  • Setting System DSN for MS Access Database using Java Code

    How to set the system DSN for Access database using Java Code at runtime....???
    Replies are deeply appreciated...

    I found a 3rd Party MS Access JDBC Driver from a Google search. I downloaded and tried the free trial version. It worked fine but we opted not to purchase the full version and went a different route. If you don't find it, let me know and I'll see if I can track down the name of the product we tested.

  • Pattern matching for thumb print scanner using java

    I want to get some information about security system technology using java to develop my final year project. Please kindly assist me in searching some related information regarding thumb print scanner security system. Anyone who can help me in this, i will really appreciate it, thank you in advanced !

    This is going to be a tough project. Here are a couple of ideas
    1. Java, or whatever language you do it in probably won't matter that much.
    2. You need to find algorithms for matching fingerprints. There are probably some out there... You may need to pay to use them. There are also probably some books out that might help you figure out how to do this, or how other people have done this, or who to contact about doing this.
    3. Partnering up with someone, either in industry (like IBM maybe) or at the very least a professor is going to be important.
    4. Don't try to invent the wheel. Do your research and reuse as much as you can. Getting the algorithm + the scanner are going to be the hard parts

  • JDBCDataSourceRuntime Information for Weblogic 10.3 using Java program

    Hello All,
    I am trying to get the JDBC datasource connection pool status in Weblogic 10.3 using java program - if it is in RUNNING state or Shutdown state.
    Can someone provide me with the same java program for achieving this.
    - - Tarun

    Refer to this Doc ......... It may help you.
    http://download.oracle.com/docs/cd/E12839_01/web.1111/e13728.pdf

  • Unix System Calls using Java

    Hi!
    Can anyone tell me how to do Unix System Calls in my Java program?
    If possible please give me the java code for it taking one unix system call as an example.
    Thanks in advance
    Raj

    do you mean firing off a shell command, or making actual kernel API calls or C library calls?
    for shell commands, have a look at Runtime.exec(). for kernel calls, use JNI. the JNI FAQ mentions something called "shared stubs" that may be of use:
    http://java.sun.com/products/jdk/faq/jnifaq.html
    cheers,
    p

  • How to search for runts, orphans, widows using GREP

    Hello,
    I've been trying to bust my brains on how to do a search by locating single words at the end of a paragraph and on a single line by themselves. Yes, you guessed it! I'm trying to hunt down those orphans, widows that are sometimes called runts. I just don't want to do it manually and you always seem to miss one or two of them. I'm already using the techniques detailed and discussed in length on how to deal with orphans and widows but we have to hunt them down first...
    Here's the closest GREP search I can get:
    (\w+)(.)\r^
    but this searches for all words at the end of a paragraph regardless of whether or not they are sitting on their own on a single line. I need to pin point on single words on a single line.
    Unless of course there's a much easier way than GREP, then by all means do tell..
    Using cs4.
    Any input would be much appreciated.

    Hi Peter
    I posted the following in the IndesignSecrets forum and Jongware kindly pointed me at this thread
    I'm laying up a 600-odd page book for a client who went to design school some years ago where it was drilled into her that "Thou shalt never ever have an orphan" (she means runt). She is insisting that every last runt in the book be exterminated irrespective of word or line length, rivers created or insane ragging. The book contains a lot of text-wrapped anchored boxes,diagrams, etc so of course, every time there's a copy change these move creating new runts. Instead of proofing for important things like correlation of diagrams with text, etc she is fixated on these runts.
    To prevent what little brain I have left from exploding I'd like to write the following Find/Change but have not been able to get the language correct:
    Find: Any word preceded by a space and followed by a paragraph mark
    Change: the space to a nonbreaking space
    Blatner Tools lets me find the runts but they still need changing manually so I've tried your below Find/Change Grep:
    Peter Spier wrote:
    I don't think it's possible to find only last words alone on the line (except maybe with Blatner Tools, which I've never used). My point was that if you don't want to have a single last word you could do something like find ( )(\w+[[:punct:]])$ (there's a space between the first set of parentheses) and replace with ~S$2 and that will replace the last space in EVERY paragraph with a non-breaking space ...
    Unfortunately,I can't quite get the GREP to run properly. It works for plain ordinary paragraphs but for some reason it only works randomly in bullet/numbered lists of which I unfortunately have quite a few. Also, if the last sentence of a paragraph contains a footnote marker (again many of these),  it changes the last word of the actual footnote but not the paragraph which contains the footnote marker.
    Are you able to help with a tweak please.
    Thanks n cheers, Gobit

  • Need Port number for active Host name using java code

    Hi All,
    I have tnsnames string and I know one of the following Host is working  say Primary-host .
    DESCRIPTION =(ADDRESS_LIST= (ADDRESS = (PROTOCOL = TCP)(HOST = Primary-host)(PORT = 1521)) (ADDRESS = (PROTOCOL = TCP)(HOST = Secondary-host)(PORT = 1522)))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = ORA112DB)))
    Could you please help me to get Port number of only primary Side ?. This needs to do because we cannot get port number using any oracle query.
    Thanks in advance
    JPrashant

    You may get client's host IP with
    select sys_context('USERENV','IP_ADDRESS') from dual;
    You may get client's port with
    SELECT port FROM v$session where username = user;
    To get connection port you should issue OS command (*nix) like
    netstat -n | grep <client_ip>:<client_port>
    tcp 0 0 192.168.1.1:1521 132.168.1.2:65432 ESTABLISHED
    To run OS command (keeping in mind all possible security consequences) it is possible to write C, java code.
    Example -- http://www.oracle.com/technetwork/database/enterprise-edition/calling-shell-commands-from-plsql-1-1-129519.pdf

  • I-text for saving html files using java

    hi,
    i'm writng a small application and it has some report generation part based on some html templates.
    These templates have some images which are given the relative path in the html template files.
    when i generate my reports they generated and save in some other location and the thing is quite naturally all the image files are missing. can anyone help me to overcome this problem??
    thanks in advance.

    If you are using Windows take a look at what Internet explorer does when you save a web page
    If the files is save as MyFile.htm the browser will create a folder called MyFile_Files and store all the images there. and it will modify the code of the html file to refer those images.
    I think that you will have to do the same.
    Or
    Find some API which can convert HTML page in to PDF and save PDF then you will get a one file with everything in it. I think that is a better solution.
    But the way If you found such an API dont foget to post here about it . I have the same problem and I dont like the solution one

  • Executing an hp unix command by using java code

    i'm trying to execut the "chmod" command on my jsp as follows :
    String cmd = "chmod 644 "+fileName;
    Process process;
    process=Runtime.getRuntime().exec(cmd);
    but i got the following exception:
    java.io.IOException: chmod: not found
         at java.lang.UNIXProcess.forkAndExec(Native Method)
         at java.lang.UNIXProcess.<init>(UNIXProcess.java:86)
         at java.lang.Runtime.execInternal(Native Method)
         at java.lang.Runtime.exec(Unknown Source)
         at java.lang.Runtime.exec(Unknown Source)
         at java.lang.Runtime.addShutdownHook(Unknown Source)
         at java.lang.Runtime.addShutdownHook(Unknown Source)
         at receiveJobAppInput.jspService(_receiveJobAppInput.java:358)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java, Compiled Code)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java, Compiled Code)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java, Compiled Code)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java, Compiled Code)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java, Compiled Code)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java, Compiled Code)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java, Compiled Code)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java, Compiled Code)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java, Compiled Code)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java, Compiled Code)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java, Compiled Code)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java, Compiled Code)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java, Compiled Code)
         at java.lang.Thread.run(Unknown Source)
    can anyone give me a hint why this happend?

    What about exec'ing this?
    String [] {"chmod" ,"644" , "fileName" }

  • Running unix command using java shows error

    Hi All,
    I am trying to run UNIX move command using Java exec method but its throwing error, unable to rename. Here below is the code i am trying to run to move all files from one directory to another directory. source and destination directory exists.
    public class Demo
        public static void main(String args[])
            try
                Runtime rt = Runtime.getRuntime();
                Process proc = rt.exec("mv /home/demo1/* /home/demo2");
                int exitVal = proc.waitFor();
                System.out.println("Process exitValue: " + exitVal);
            } catch (Throwable t)
                t.printStackTrace();
    }if i give "mv /home/demo1 /home/demo2" in exec method, its working, with * character its giving problem.
    Please help me in resolving the problem.
    Thank you

    Characters like *, >, &, |, etc. are interpreted by the command shell--that is by the bash, zsh, etc. programs. When you execute a command with ProcessBuilder or Runtime.exec, you're not going through one of those shells, so their interpretation of those characters is not available.
    In your code, the character * is being delivered directly to the mv command (which doesn't think * is anything special), as opposed to being turned into a list of files and directories as it would be when it's interpreted by the shell. The mv command doesn't know anything about the * character being special.
    If you want to have those shell interpretations, you need to execute the command through a shell. One example is like so, but a) you'll want to read up on the methods in exec() that take arrays of String, and b) you'll want to read up on ProcessBuilder, and c) you'll need to check your shell's man pages to see the exact syntax and arguments.
    runtime.exec("/bin/bash -c 'mv x/* y'");

  • We have applications that can only use Java 6.x. Java 7 is not supported. Can Java 6.x be installed on OS X 7 and 8?

    Our workplace (a large research university) uses both Win and Mac based desktops/laptops. We are about to deploy an enterprise-wide ERP system whose components are web-based. The components the components are support I.E. & Firefox browsers, so this is not a problem for the Mac OS X users. The components only support Java 6.x. Users of OS X 10.6.x and lower can use Java 6.x since Apple supports this. However, OS X 10.7 (Lion) and 10.8 (Mountain Lion) seem to only support Java 7.x which is not supported by our new ERP system.
    Is it possible to install Java 6.x on OS X 10.7 and 10.8 desktops/laptops?  I've viewed http://support.apple.com/kb/HT5493 but that doesn't specifically answer this question.

    Thank-you everyone for your feedback. I think this is the story. If anyone can verify, thanks!!
    Mac OS X 10.6 and lower has Java 6.x as part of the operating system and does not need to be separately installed (nor CAN it be separately installed).
    Mac OS X 10.7 and 10.8 (“Lion” and “Mountain Lion”) do not have Java in the operating system. Therefore, users who need Java must go to java.com and install it themselves. However, only Java 7.x can be installed.
    Upgrading from OS X 10.6 or lower to OS X 10.7 or 10.8 turns off Java (since it was part of the older OS which the user is replacing with a new OS). However, it seems that the older version of Java is still there, simply turned off. Running a bash shell (UNIX) script (http://support.apple.com/kb/HT5559) can remove Java 7.x and re-activate Java 6 to the latest version, Java 6.37. But this only works if the Mac ever had 6.x in the first place (i.e., was running OS X 10.6 or older).
    Newer Macs (purchased after July 2011) came with OS X 7.x (“Lion”); after July 2012, 8.x (“Mountain Lion”). It may not be possible to install Java 6.x on these models without downgrading to OS X 6.x (10.6.8 is the latest version) which runs Java 6.37 for Mac.
    An alternative is to configure your desktop/laptop as dual boot (e.g., with Paralles or Fusion VM) so you can run Windows-7 for apps that must use Java 6.x or, alternately, have OS X 10.6 and OS X 10.7 or higher on the same machine.

  • Ideas pls for a small application on java and jsp?

    hi ,
    I would like to create an application which for resume. I would like to codify the java code . The java code should be able to autogenerate jsp file's since the output of the resume would be on an jsp page. To add it simply a wizard for dynamic resume creation using java swings and jsp. Code for jsp should be autogenerated please note it.
    Ideas please!
    Thanks in advance

    I'd like to add more information to Patreck's suggestion.
    JSP pages are wonderful if you need the web server to perform some actions before sending you the final web page.
    Here, you don't need the web server to do anything because your Swing application can do it for you. As Patreck implies, Swing can make a connection to the database, retrieve any information you want, perform whatever logic you need, and write the output to an HTML file.
    To give you an example, you can use Internet Explorer to view a basic web page on your hard disk. You can also use Microsoft Word to view the same basic web page. They both do the same task and there is no need to force IE to use its Word plug-in in order to view the web page.
    JSPs are not necessary because Swing will do all of the work for you. You only need JSPs if you want people to use your program through a web browser because they can't do Swing inside a web browser. You should only use one or the other, not both. Understand now?
    If you really really must generate JSP code from a Swing application, then just write out the JSP stuff in the file. For example...
    public void createWebPage( Printwriter pw, String myName ) {
       pw.println( "<% String myJSPName = \"" + myName + "\" %>" );
       pw.println( "<HTML>");
       pw.println( "<HEAD>");
       pw.println( "<TITLE>My Resume</TITLE>" );
       pw.println( "</HEAD>");
       pw.println( "<BODY>" );
       pw.println( "<H1>My name is " + myName + " and my JSP name is <%= myJSPName %></H1>" );
       pw.println( "</BODY>" );
       pw.println( "</HTML>" );
    }As you can see, it's pointless to embed JSP when you can do all the programming within Swing first and just write out the correct response.

Maybe you are looking for

  • Windows 7 and sysprep

    An annoyance.  I have a sysprep'd Windows 7 x64 Ghost image.  Prior to creating the image my setup workstation's computer name is set to "win7image".  My sysprep is configured so that all I have to do once I lay this image on another computer is to g

  • Domain Mapping Issues

    Hi, Business Catalyst community. I re-launched my website today, with Business Catalyst only a piece of the whole site. Previously, I had simply used a Tumblr blog for the bulk of my site, with a custom domain. My DNS server pointed to Tumblr's IP ad

  • PLC applicatio​n validation using OPC and teststand

    Hello I want to test a PLC application using teststand as script generator. My idea is to use TestStand to generate testcases and verify answer (read status variables, tags) from the PLC to confirm its code meet requirements. So question is, can Test

  • Intel(R) series/c216 chipset family enhanced host controller 1e2d is not working properly

    sir......our laptop has some problem with the above subject given..................and my laptop is dell windows 8 with touch screen........and due to this problem touch screen is also not working.......and please rescue us from this.............

  • I just installed OS 10.7 on my MacBook Air. Now Preview refuses to launch. Any ideas?

    I installed OS 10.7 on my MacBook Air and now Preview refuses to run. I've installed all updates available to no avail. Any ideas?