Find the answer to your Linux question:
Results 1 to 3 of 3
i have a java program . i compile #javac myprogram.java i run #java myprogram NOW i want to run this program in the background as a daemon. how do i ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2005
    Posts
    27

    background thread ?


    i have a java program .

    i compile #javac myprogram.java

    i run #java myprogram



    NOW i want to run this program in the background as a daemon.

    how do i run it as a daemon thread ?

  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,915
    try:

    #java myprogram &
    Linux user #126863 - see http://linuxcounter.net/

  3. #3
    Linux User
    Join Date
    Aug 2005
    Location
    Italy
    Posts
    401
    >Search for setDaemon in the Java SDK documentation. This should fit for your purpose.
    When using Windows, have you ever told "Ehi... do your business?"
    Linux user #396597 (http://counter.li.org)

  4. $spacer_open
    $spacer_close

Posting Permissions

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