Find the answer to your Linux question:
Results 1 to 6 of 6
Hello, I am a newbie (Windows only) needing help with a Linux task. I have a JAR file that needs to be executed automatically on startup. Can someone out there ...
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    3

    JAR file to execute on startup

    Hello,

    I am a newbie (Windows only) needing help with a Linux task. I have a JAR file that needs to be executed automatically on startup. Can someone out there give me some pointers?

    thank you!

  2. #2
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    Quote Originally Posted by randytexas View Post
    I am a newbie (Windows only)
    lol, you made me laugh. X_X

    Welcome to forums.

    What desktop environment you are using? i.e. gnome / KDE / XFCE or something else?
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  3. #3
    Just Joined!
    Join Date
    May 2009
    Posts
    3
    No desktop environment - I am trying to prepare an image to be deployed to Amazon EC2. It's only job in life is to run a JAR file...

  4. #4
    Just Joined!
    Join Date
    May 2009
    Posts
    3
    I should mention that I am trying to use a service wrapper from tanukisoftware but not having any luck - i downloaded the community version but it complains of having no license file. Any other options you can suggest?

  5. #5
    Just Joined!
    Join Date
    May 2009
    Posts
    5
    Here are couple ways to run something on startup. The best one to use is not a matter of taste, but what it is that needs to be run and how it is to be used.

    * cron -- Run a command as a specified user.
    * initrd -- For starting and stopping services.

    Hope this helps.
    -Aidan

  6. #6
    Just Joined!
    Join Date
    Aug 2009
    Posts
    9
    Quote Originally Posted by wgsilkie View Post
    Here are couple ways to run something on startup. The best one to use is not a matter of taste, but what it is that needs to be run and how it is to be used.

    * cron -- Run a command as a specified user.
    * initrd -- For starting and stopping services.

    Hope this helps.
    -Aidan
    Hi,

    I am new to Linux. I have a executable jar file which I need to run even before the user logs in. The problem is since I don't have good information about the services in Linux its very difficult to understand the same topic posted at other forums.

    I have tried many things like java service wrapper and reading about /etc/init.d and cron folder but nothing has worked so far.

    Please share if someone has any example or experience.

    please HELP!

    Thankz is advance.

    Ankush Pandit.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •