I need to trigger my java code automatically daily once ... help me

hi
i am working with a java program which updates database(mySql) daily once
i need to make my java code run daily once automatically
how can i make it to do that
please someone help me
thanks in advance

U can use, autoexec.bat file for executing u'r
code , but problem is that it will run every time
system will start,
so their is a another option for scheduling, try
at/? in command prompt it will give u enough
detail to use it for scheduling."Scheduled Tasks" is a UI for the "at" command, and it might be a bit easier for the OP to use that.
/Kaj

Similar Messages

  • I am having trouble printing I have a connection to my printer wirelessly but does not print out the correct page I want.When I do print I get a bunch of pages more than is needed and also get a code and symbols please help I am jammed at work

    I am having trouble printing I have a connection to my printer wirelessly but does not print out the correct page I want.When I do print I get a bunch of pages more than is needed and also get a code and symbols please help I am jammed at work

    This can be the result of selecting the wrong driver. An older, unsupported laser printer will sometimes work with the generic Postscript driver.

  • I need to unlock compaq mini code is CNU027599F, please help

    i need to unlock compaq mini code is CNU027599F, please help
    This question was solved.
    View Solution.

    Ash try.
    e9l17xqoo8
    3rd letter lowercase L.
    4th is number 1.
    7th letter lowercase Q.
    8th and 9th letter lowercase O.
    Use that code to go into the BIOS.
    Disable all passwords that are enabled.
    IF asked for the CURRENT password use that code.
    IF asked for NEW password just hit enter.
    If asked to VERIFY password just hit enter.
    Save and exit.
    REO
    I must inform you that these services are not endorsed by HP, and that HP is not responsible for any damage that may arise to your system by using these services. Please be aware that you do this at your own risk.
    HP Expert Tester "Now testing HP Pavilion 15t i3-4030U Win8.1, 6GB RAM and 750GB HDD"
    Loaner Program”HP Split 13 x2 13r010dx i3-4012Y Win8.1, 4GB RAM and 500GB Hybrid HDD”
    Microsoft Registered Refurbisher
    Registered Microsoft Partner
    Apple Certified Macintosh Technician Certification in progress.

  • Need XSLT mapping or Java code?

    Hi All,
    I have a scenario JMS to Proxy.At sender side i will get complete XML payload in the single string.
    Root
      XMLpayload
    in XMLpaload i will get complete data in XML format.
    receiver side the structure is like this.
    Root
      Header       Header occurence is only once
         hr1
         hr2
         hr3
      Item           Item ocurence will be 0 ..U
         item1
         item2
    I need the code for XSLT mapping or for JAVA code that can be written in mapping.
    Regards,
    Phani

    Hi,
      could you please let me know, what is your source data type.
      by using node functions like split value , collapse context and foramt example.
    we can get th out put i the required format.
    pls let me know, your source and target data type.
    wamr regards
    mahesh.

  • HELP NEED FOR INVOKING THE JAVA CODE INSIDE JSP

    Hello,
    any one knows how to Write a java code inside the .jsp files... please if any one knows it please ....help me .....

    hi .
    Use scriptlets , for example :
    <html>
    <%
    int x;
    for(x=1;x<=5;x++)
    out.println(x);
    %>
    </html>

  • Help needed in understanding the Java code.

    Hi All,
    I have recently started learning the Java language. I came across this example and had a problem in understanding the output of the program. I could follow that if the continue statement is present in the below program the output is "Found 9 p's in the string" . But if the continue statement is removed I could not understand why the output would be "Found 35 p's in the string" .Is it because of the spaces and characters other than p... (eter ier icked a eck of ickled eers)
    Example-----------------------
    The continue statement skips the current iteration of a for, while , or do-while loop. The unlabeled form skips to the end of the innermost loop's body and evaluates the boolean expression that controls the loop. The following program, ContinueDemo , steps through a String, counting the occurences of the letter "p". If the current character is not a p, the continue statement skips the rest of the loop and proceeds to the next character. If it is a "p", the program increments the letter count.
    class ContinueDemo {
    public static void main(String[] args) {
    String searchMe
    = "peter piper picked a " +
    "peck of pickled peppers";
    int max = searchMe.length();
    int numPs = 0;
    for (int i = 0; i < max; i++) {
    // interested only in p's
    if (searchMe.charAt(i) != 'p')
    continue;
    // process p's
    numPs++;
    System.out.println("Found " +
    numPs + " p's in the string.");
    Here is the output of this program:
    Found 9 p's in the string.
    To see this effect more clearly, try removing the continue statement and recompiling. When you run the program again, the count will be wrong, saying that it found 35 p's instead of 9.

    The answer is already in your example - "The unlabeled form skips to the end of the innermost loop's body and evaluates the boolean expression that controls the loop."
    It unloads the current loop iteration when condition is matching. Loop is again starting from boolean expression inside loop declaration.
    Java Programming - java forum

  • Can anybody help me produce a Java code??? HELP GREATLY APPRECIATED!!!

    This is the goal:
    Write a program that produces block letters for the following letters which could be read into your program: A, B, C, E, F, G, H, I, L, O, P, T, or U.
    The user should input ONE letter from the keyboard. The user should also input a width as an integer to determine the width of the letters. This input should be at least 5 and up to 20; if the user enters less than 5 or more than 20, issue an error message for the user and quit the program.
    Replies are gratly appreciated!!!

    jk89computer wrote:
    To add to my original topic,
    My question is can anybody produce a java program that can do the following:
    Write a program that produces block letters for the following letters which could be read into your program: A, B, C, E, F, G, H, I, L, O, P, T, or U.
    The user should input ONE letter from the keyboard. The user should also input a width as an integer to determine the width of the letters. This input should be at least 5 and up to 20; if the user enters less than 5 or more than 20, issue an error message for the user and quit the program.
    For example, the letter A would be formed by:
    * *Thank you for adding more complete requirements for us to do your homework for you. We'll get right on that. Donuts are on the table, help yourself to them while you wait.

  • Need help in writing a small java code

    Hi,
    I have a small requirement where I need write a small java code. I am thinking of using array. Please suggest if you know the solution:
    1. Need to compare user logon id is preset in the lookup table or not.
    2. If user id present in the lookup then send type "A" mail
    3. If user id in not present in the lookup then send type "B" email.
    Please suggest.
    Thanks,
    Kalpana.

    use this code . you have to pass userlogin and lookup name
    Public String GetEmail(String UserLogin,String lookupcode)
    String email;
    try{
    tcLookupOperationIntf lookupIntf = Platform.getService(tcLookupOperationIntf.class);
    HashMap<String, String> lookupValues = getLookupHashMap(lookupIntf, lookupCode);
    String found = lookupValues.get(UserLogin);
    if (found!=null) email= "EMAIL A";
    else
    email= "EMAIL B";
    }catch(Exception e){}
    return email;
    private HashMap<String, String> getLookupHashMap(tcLookupOperationsIntf lookupOperationsIntf, String lookupCode)throws tcAPIException,tcInvalidLookupException,tcColumnNotFoundException {
    HashMap<String, String> lookupMap = new HashMap<String, String>();
              tcResultSet resultLookupHashMap = lookupOperationsIntf
                        .getLookupValues(lookupCode);
              int countResultLookupHashMap = resultLookupHashMap.getRowCount();
    if (countResultLookupHashMap > 0) {
                   for (int i = 0; i < countResultLookupHashMap; i++) {
                        resultLookupHashMap.goToRow(i);
                        lookupMap.put(resultLookupHashMap..getStringValue("Lookup Definition.Lookup Code Information.Code Key"),
    resultLookupHashMap.getStringValue("Lookup Definition.Lookup Code Information.Decode"));
    return lookupMap;
    }

  • Using unzip from unix in java-code ...

    Hi people,
    i have problem, i want to use the command unzip from unix, to unzip a zip-file, the commend unzip must invoke from java-code. Can someone help me. I use the zip-api, but i have 100Mb zip-file, it needs very long time to unzip the zip-file.
    thanks for your help ...

    ok, not sure how much improvement this will give in general, but its given a reliable 25% speed increase on my mini tests
    using the nio libraries will also get you a lot further, and is the way to go if you are very keen on speed
    asjf
    import java.awt.*;
    import java.io.*;
    import java.util.*;
    import java.util.zip.*;
    import javax.swing.*;
    public class Unzipper {
         private Unzipper() {}
         private static byte[] buffer = new byte[16384];
         public static void unzip(File file, Component parentComponent,     File outputDir) throws ZipException, IOException {
              unzip(new ZipFile(file), parentComponent, outputDir);
         public static void unzip(File file, int mode, Component parentComponent, File outputDir) throws IOException {
              unzip(new ZipFile(file, mode), parentComponent, outputDir);
         public static void unzip(String name, Component parentComponent, File outputDir)     throws IOException {
              unzip(new ZipFile(name), parentComponent, outputDir);
         public static void unzip(ZipFile zip, Component parentComponent, File outputDir)     throws IOException {
              if ( zip == null) {
                   throw new NullPointerException("outputDir is null");
              int size = zip.size();
              if (size > 0) {
                   if (outputDir == null) {
                        throw new NullPointerException("outputDir is null");
                   if (!outputDir.exists()) {
                        outputDir.mkdirs();
                   ProgressMonitor monitor =
                   new ProgressMonitor(parentComponent,
                   "Unpacking " + zip.getName() + "...", "", 0, size);
                   monitor.setMillisToDecideToPopup(0);
                   monitor.setMillisToPopup(0);
                   Enumeration entries = zip.entries();
                   for ( int i = 0; entries.hasMoreElements(); ) {
                        ZipEntry entry = (ZipEntry) entries.nextElement();
                        /*if (entry.getMethod() == ZipEntry.DEFLATED)
                        System.out.println(" Inflating: "+entry.getName());
                        else
                        System.out.println(" Extracting: "+entry.getName());*/
                        monitor.setNote(entry.getName());
                        File File = new File(outputDir, entry.getName());
                        File.getParentFile().mkdirs();
                        if (!entry.isDirectory()) {
                             InputStream in = null;
                             OutputStream out = null;
                             try {
                                  in = zip.getInputStream(entry);
                                  out = new FileOutputStream(File);
                                  for (int n = 0; (n = in.read(buffer)) > -1; )
                                       out.write(buffer, 0, n);
                                  monitor.setProgress(++i);
                             } finally {
                                  if (out != null) {
                                       try {
                                            out.close();
                                       } catch (IOException e) {
         public static void main(String[] args) throws ZipException, IOException
              if (args.length !=2) {
                   System.err.println("Usage: java Unzipper <zip file> <output dir>");
                   System.exit(1);
              long start = -System.currentTimeMillis();
              unzip(args[0], null, new File(args[1]));
              System.out.println(start+System.currentTimeMillis());
              System.exit(0);

  • How to set schedule task in windows using java code

    Hi,
    i want to set the schedule task in windows os using the java code can any one help me on that
    can any one thinks i need to wright a dll file for that which set the schedule task for me which dll i can use in my java code.
    thanks in advance.

    Maybe this will help you?

  • Monitor message in adapter engine through java code

    Hi all,
    I need to write a java code to monitor message using message ID in adapter engine.
    Is it possible to write such a code?
    If yes, then please provide information regarding to that.

    Hi,
    Check these threads
    Retrieving a message id
    Re: How to extract XI-header fields from XI-message in JAVA?
    Thanks!

  • Can we call Plain JAVA Code online via MDM Cient

    Hi SDNers,
    For some validation purpose i need to write a JAVA Code(Some body told me that it can be possible i.e we can Java Code for doing Validation)
    i have two Questions.
    1. Can we call JAVA Code online via MDM Client.
    2. where i have to write this JAVA Code and what will be steps of writing this Code.
    Thanx in Advance.

    Hi Tanveer,
    Thanx a lot for ur prompt reply
    Pls reply my this Question also promptly i will be highly thankful for it.
    Q.
      My Requirment is i have to do the validation
      "on the basis of acct grp i have to put validation
          a. the G/L acct must be in particular range.
          b. it must have specific length"
    My sr. developer is saying simply putting the IF ELSE condition in the validation Editor technique 'ld be hard to maintain at later stage as we large number of Acct Grps.
      He is saying look for some Custom function for it
    "SO TELL ME CLEARLY THAT
                                                   --CAN I USE JAVA API FOR THIS
                                                   --AS A EXP. MDM CONSULTANT WILL U
                                                      RECOMMEND IT?
                                                   --IF YES
                                                     THEN
                                                          WHAT 'LD BE EXACT STEPS.
                                                 ---IF NO
                                                    THEN
                                                         WHAT ARE THE OTHERS WAYS
                                                         i.e
                                                         IF U R FACING THIS PROBLEM THEN WAT
                                                         SOLN U R GOING TO USE?
    PLS
    REPLY ASAP as per the exact question(i.e all parts of Q)
    i will highly thank for u.
    Regards
    kuldeep

  • Java code to download a webpage

    Hi All,
    I need to write a java code .In which i will pass some url (say www.forum.java.com\index.jsp) to it then it should downlaod all the data and images on this page to my local hard-disk. So that i should be able to see this locally also once it has been downloaded.
    if some body has any idea then please lemme know.
    Thanks
    Akhil Nagpal

    Text but not images here ...
    Takes the URL argument 'arg[0]' from the command line ie:-
    prompt>java URLRead http://myhomepage.com >webpage.txt
    import java.net.*;
    import java.io.*;
    class URLRead {
       public static void main(String args[]) throws IOException{
            URL u;    
          if (args[0] = null) {
             u = new URL("http://forum.java.sun.com/index.html");
          else {
             u = new URL(args[0]);
         try{
            URLConnection uc = u.openConnection();
            System.out.println(u.getPort() );
            DataInputStream dis = new DataInputStream(uc.getInputStream());
            String inputLine;
                while ((inputLine = dis.readLine())!=null){
                    System.out.println(inputLine);
            dis.close();
           catch (MalformedURLException me) {
               System.out.println("MalformedURLException: "+me);

  • Compile a Java code to a native machine code

    Hi Everyone,
    What tool do I need to compile a Java code to a native machine code? Is there any free tool?
    Cecilia

    google.com is a good place to start

  • Invoke the command unzip from unix in java-code ...

    Hi people,
    i have problem, i want to use the command unzip from unix, to unzip a zip-file, the commend unzip must invoke from java-code. Can someone help me. I use the zip-api, but i have 100Mb zip-file, it needs very long time to unzip the zip-file.
    thanks for your help ...

    use Runtime.exec() to call your unix "unzip" command from java, if its much faster.

Maybe you are looking for

  • Problems Restoring From Disc Image

    Hello Support Community I'm attempting to replace a suspected failing HD on my G5.  I made a disc image of the suspected drive in disc untility, and have it on an external drive.  I purchased a 500GB WD Cavier Black HD for my new drive.  I removed th

  • Help! Transfering iTunes library from Windows iTunes to iTunes on a new Mac

    I am sure others have asked this -- I was not able to find it though: I have a Windows machine on which my whole iTunes library sits (both ripped CD's and downloaded music and TV from iTunes). I need to move that to my new Mac. I read the article abo

  • Mac mini, the best little computer

    I have read so many posts with troubles, just wanted to say I love my new mac mini and hope success to mini owners. I was not sure after reading all the post about- it does have a outdated graphics card, slow, etc. I added the extra 1gb of ram and am

  • About Standard Edition and Standard Edition one

    Good day people. I 'm not sure if this question has been asked, excuse me if I haven't noticed it. Where I currently work are planning the implementation of an software running over Oracle DataBase, but they are unsure for which DB version to choose.

  • Java error : NullPointerException while system copy

    Hi All, system: windowsNT 2003 with SQL 2005 error while heterogeneous backup of system (CRM system ABAP + Java) SAPinit_dev.log SEVERE: Error during export of EP_ATTR_HEADERS Sep 29, 2010 7:22:32 PM com.sap.inst.jload.Jload logStackTrace SEVERE: jav