How to start my application automatically when computer is turned on?

hi there,
i built a small application that is meant to be started automatically everytime a computer is turned-on. How can I do that?
any ideas?

Programs which run all the time in the background are called daemons, or in Windows, Services.
There's a package to manage Java daemons in Apache commons
at jakarta.apache.org/commons
This allows the program to be handled by the unix startup or the windows Service manager and to be controlled (in the case of Window) from the controll panel, so that it comes up and shuts down gracefully with the system.

Similar Messages

  • How to start a application with a login window?

    hi there
    does anyone have any idea on how to start an application with a login window? a login window is the first frame or window to be displayed when an application starts running. and only correct login id and password have been entered the real application will start. any sample out there? thank you.

    You can start a new thread by making a thread object and passing it an implementation of a runnable object. Runnable has just one method, public void run(), this is was gets executed in a second thread. perhaps the code you would use would look something like this.
    <code>
    // set up thread for login window
    new Thread(new Runnable() {
    public void run() {
    // construct your login window here
    // when you are done processing the
    // password....
    if(goodPassword) {
    authorized = true; // a global variable
    notifyAll(); // don't forget this
    else {
    System.exit(42);
    }).start();
    // control does not stop this code gets executed while
    // the above thread is running.
    // Set up main program here. This is done in the
    // backround.
    while(!authorized) {
    synchronized(this)
    { wait(50); }
    // now when the user logs in this frame pops
    // up real quick.
    myFrame.setVisible(true);
    </code>
    Hope you can figure it out.. good luck :)

  • Get error message that skype has problem loading when computer is turned on the first time every day. this started when the latest firefox v6.0 was downloaded.

    get error message that skype has problem loading when computer is turned on the first time every day. this started when the latest firefox v6.0 was downloaded.

    ''mbratlie [[#question-1055011|said]]''
    <blockquote>
    It was working fine and I had no problems, and then one day I tried opening a window and it froze. When I tried quiting the program my whole window went black. The x to the close the window doesn't work. The only option I have in my tool bar is Firefox and nothing happens when I try to quit firefox. Every time I try to shut down my computer Firefox prevents it. I haven't updated Firefox yet, so it's an older program, but only by a month or two. What's going on and how do I fix it?
    </blockquote>
    This is the first time it's ever happened. I downloaded the new operating system for Firefox but I can't install it until the Firefox currently running on my laptop quits, which it won't.

  • How can java programs execute automatically when it connects to network

    Good Day dears...
    How can java programs execute automatically when it connects to network.
    Thanks in Advance friends Shackir

    884924 wrote:
    Good Day dears...
    How can java programs execute automatically when it connects to network.What is "it"? That is, execute when what connects to the network?
    Your computer? If that's what you mean, this is not a Java question. It's an OS operational/administrative question. Executing any program, whether written in Java or not, based on some system event has to do with that system, not with the program. If it's possible to do this, you'd do it exactly the same way for a Java program as you would for any other program.
    Or is "it" the program itself? If this is what you mean, then it's a nonsensical question. For the program to connect to the network and detect that it has connected to the network, it must already be executing, so asking how to execute it at that point is meaningless.
    Finally, I'll point out that "connecting to the network" is a pretty meaningless phrase. Or rather, it has so many potentially valid meanings that it's impossible to know which one you're referring to when you use that phrase. And I'd be willing to bet you don't have a clear picture of that yourself.

  • Somehow I received a free movie which I didn't want.  It started to download automatically when I opened iTunes. I don't want it to download and can't stop it.  I have other cds that I would like to download but this movie is in the way.  Help

    Somehow I received a free movie which I didn't want.  It started to download automatically when I opened iTunes. I don't want it to download and can't stop it.  I have other cds that I would like to download but this movie is in the way.  Help

    it's best to just let it download, then delete once it is on your computer.

  • How to get Manager id automatically when Employee Id is given.

    How to get Manager id automatically when Employee Id is given.
    1) I created a simple BO with two elements namely
        1.Employee Id
        2.Manager id
    How to get employee's first name and last name?
    And how will i get manager id  automatic when i click employee id in element field.
    Anbu.

    Have you tried to use "APPS.FND_CONCURRENT" API?
    http://etrm.oracle.com/pls/trm11510/etrm_pnav.show_object?c_name=FND_CONCURRENT&c_owner=APPS&c_type=PACKAGE
    http://etrm.oracle.com/pls/trm11510/etrm_pnav.show_object?c_name=FND_CONCURRENT&c_owner=APPS&c_type=PACKAGE%20BODY
    Thanks,
    Hussein

  • I Lost my iphone how can i get it back when i havent turn on find my iphone i have already log in icloud and still have account and password

    I Lost my iphone how can i get it back when i havent turn on find my iphone i have already log in icloud and still have account and password

    Contact your carrier and the police. If it was lost in a specific building, ask the people running it.
    (124410)

  • How to run a addon automatic when firefox started

    Starting the addon need to click. I want to do it automatic when firefox started

    Many add-ons start away when Firefox is opened. Was an add-on in particular? Also, most add-on support questions should be directed to the developer who knows more. We are mainly volunteers in this forum and so there are some things behind the scene we aren't aware about.

  • How to start Report Server automatically in developer suit 10g

    Hi all
    I have an application implemented using Developer Suit 10 g forms and reports builder.
    For this application, the first report to be printed after booting the computer takes a long time (around 5 minutes)
    when printing any more report (even if it was the one printed before ) it takes a little time, this means that the first report made the report server start.
    I rebooted the computer, but this time i started the report server manually using this command :
    <strong>rwserver server=report_server_name</strong>
    Now, the report is printed after a little time, It's OK.
    <strong>Is there any configuration to start the Report Server automatically in developer suit 10g after the computer boots ?
    </strong>Please help

    No answer ?

  • How to move Aperture Application back to computer, but keep Library on External HD?

    Many thanks in advance for your attention.
    1. As my Aperture Library started out of the gate large, I began by putting both the Aperture Application and all of the Library on an External Hard Drive.
    2. How do I move the Aperture Application back to my computer, but leave all the Library (and its photos, contents, etc.) on the External Hard Drive?
    3. I tried opening a new Aperture Library on my computer and then attached my External Hard Drive.  I tried clicking that I wanted to keep all the data on the Eternal Hard Drive (presumably this would just transfer the Reference files to my computer - but leave the 100s of GB of photos and data on the External Hard Drive). But the Import button remains greyed out. It is like the Aperture Application on my computer sees another Aperture Application and Library on the External Hard Drive. One Library is open (on computer), so it can't access photos in 2nd Library - (External Drive). But if I open up External Drive Library, then I can't import in the direction I want.
    4. I don't want to import One Project. I am trying to now have my Aperture App and Reference files on computer, while keeping all my photos, etc. on External drive.
    5. One more question as I have read and heard it both ways. Some people say - One Aperture Library for all photos is the best way. That is the point of it. To organize all your photos.
    6. Others say - One library is absurd. As it grows and grows, it slows down and gets sluggish. Better to have multiple (smaller) libraries.

    Thanks for this link as well.
    This person seems to want to illustrate that you can have multiple Libraries, which you can.  The first example given is a good one: one Library for professional work (I was paid to make these, and I sell them), and one Library for, as the author states, "snapshots of family and friends".  The second example is suspect.  That is the author's Library for his Aikido club.  This seems set up simply so that he can show a third Library.  The Library does no appear to be used much, and is very small.  There is no reason such a Library shouldn't be either in his Professional Library (I get paid to take shots of my Aikido club) or in his personal Library (my Aikido friends).
    I put both this person and the other person to whose video you linked in the category of helpful people who have knowledge but not much experience.  (And let me here acknowledge that I tend to overstate my case: I'm happy to have my experience improved -- but I didn't see anything in either citation that did that.)
    A year ago I stated my general rules for creating Libraries.  I stick by them today:
    My rules-of-thumb are:
    •  One Library for each photographer or group of functionally identical photographers (a company that shoots weddings, for example) when the author/copyright-holder of the image is important.
    •  Separate Libraries for "authorless" images of a specific category (I keep a Library of paintings and drawings; who made the photographs is of no interest).
    •  Separate Libraries for items which need to be handled securely (medical documentation, for example)

  • How to start Oracle Application Server 10g on Linux

    Hi,
    I have installed the Oracle Appliacion server and Infrastructure server on Linux. Both I have installed under with Diff. folder
    Can some one please tell me how to start / stop Appliacion server and Infrastructure server on Linux
    We are going to use the these with Oracle EBS 11.5.10.2 .
    Oracle EBS 11.5.10.2 installed in the same Linux server under diff. folder
    Can some one please guide me.
    Thanks,

    You can do as rizla said or go another route.
    We setup profiles to use for all of the oracle homes. Then in the scripts we call the profiles. Easier to migrate and manage in my opinion if you have multiple oracle homes. You can then use profiles when ssh'd into the boxes, too. Both ways will work.
    Example:
    Script which you can chkconfig.
    #!/bin/sh
    # oracle_collabInfra
    # This shell script takes care of starting and stopping Oracle Collab Infra instance.
    #chkconfig: 345 96 14
    # Source function library.
    . /etc/rc.d/init.d/functions
    RETVAL=0
    start () {
    echo $"Starting Collab Suite on the Infra instance..."
    echo $"Starting Listener..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; lsnrctl start"
    sleep 10
    echo $"Starting Metadata Repository..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; sqlplus '/ as sysdba' <<!
    startup;
    exit;
    sleep 10
    echo $"Starting Enterprise Manager Application Server Control..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; emctl start iasconsole"
    sleep 5
    echo $"Starting Infra OID and OC4J_Security processes..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; opmnctl startproc process-type=OID"
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; opmnctl startproc process-type=OC4J_Security"
    echo $"Starting Infra HTTP_Server processes..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; opmnctl startproc process-type=HTTP_Server"
    return $RETVAL
    stop () {
    echo $"Stopping Collab Suite on the Infra instance..."
    echo $"Stopping all Infra OPMN managed processes..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; opmnctl stopall"
    sleep 5
    echo $"Stopping Enterprise Manager Application Server Control..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; emctl stop iasconsole"
    sleep 10
    echo $"Stopping Metadata Repository..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; sqlplus '/ as sysdba' <<!
    shutdown immediate;
    exit;
    sleep 10
    echo $"Stopping Listener..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; lsnrctl stop"
    return $RETVAL
    restart () {
    stop
    start
    RETVAL=$?
    return $RETVAL
    # See how we were called.
    case "$1" in
    start)
    start
    stop)
    stop
    restart)
    restart
    echo $"Usage: $0 {start|stop|restart}"
    RETVAL=1
    esac
    exit $RETVAL
    profile:
    export ORACLE_BASE=/opt/oracle
    export ORACLE_HOME=$ORACLE_BASE/collabInfra
    export ORACLE_SID=orcl
    export TMP=/tmp
    export TMPDIR=/tmp
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib
    export PATH=/bin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/kerberos/bin:/usr/local/bin:/usr/X11R6/bin:$HOME/bin:$ORACLE_HOME/bin:$ORACLE_HOME/opmn/bin:$ORACLE_HOME/dcm/bin:$ORACLE_HOME/backup_restore
    unset USERNAME

  • How to start a Workflow automatically

    Hello Friends,
    I'm new to SharePoint Designer and facing some challenges to do it. Please help me on this.
    My requirement is to send an automated email notification to an user when a specific document is created/modified in a particular folder. The document will come to SharePoint through emails (NOT by manual upload).
    Remember: This workflow works fine when we upload the document manually to the folder. But If I send the document to the SharePoint through an email (I've enabled "incoming email" setting for the folder. So that people can sent
    the document to the SharePoint) the workflow is NOT triggering.
    Below are the steps I followed
    1. I've created a list workflow and selected the folder name where the document will be saved. Let's say "File Received" is the folder name in my SharePoint and "Test File.docx" is the file that will
    saved in this folder.
    2. In the condition I wrote if current item Name contains "Test File" and in action I've created an email task
    3. and finally in start option I've checked start workflow automatically when an item is created/modified.
    This workflow is working perfectly when someone upload the document (i.e. Test File.docx). But when someone sent the same document though an email to this SharePoint, the document is saved in SP but the workflow is not triggering. 
    Any suggestion/help is really appreciable.
    version: SPD 2010
    Thanks! -Sandip

    Hi Sandeep,
    Please check this article for step by step implementation
    http://social.technet.microsoft.com/wiki/contents/articles/4607.sharepoint-2010-workflows-on-incoming-emails-in-sharepoint-documents-library.aspx
    http://sharepoint.stackexchange.com/questions/6713/how-can-i-make-a-workflow-automatically-start-when-an-email-is-received
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Starting an application automatically on boot

    Can somebody please tell mt whether I can program an application to start automatically when the mobile (Nokia N95) boots initially? Thank you 

    use Powerboot and it´s free hope u like it..
    Download it here
    ¨Arm yourself because no one else here will save you¨

  • How Auto starting Physical Standby Database ( when Server Restart)

    Dear All(s)
    I have configure oracle (10.2.0) dataguard on production database, some time server restart due to power disconnectivity, i want to restard dataguard when server restart. i am using Server 2003 32bit. Guide me how i can run following commands when server restart.
    SQL> connect/as sysdba
    SQL> Startup mount;
    SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
    Thanks in Advance

    i want to run these command each time when server restart.Yes, I did understand that... but what's the problem ? can't you schedule a task when the server starts ?

  • How do i uninstall applications on my computer

    How do I uninstall programs on my computer?

    There are 3rd party softwares such as app delete or appzapper that can uninstall the program more cleanly (that's what I use).
    or
    like sig said, mostly likely you just can just drag the app (from application folder) into the trash.
    microsoft programs have uninstaller as an example.

Maybe you are looking for