If u have main method in the class, just use javaw
instead of java. Other wise create a class with a main
method and use this class in that new class. Invoke
the new class with javaw

Sagar

--- Purav <[EMAIL PROTECTED]> wrote:
> The program is not a servlet. its a normal class
> file
>
>
>
> BR
> Purav
>
> -----Original Message-----
> From: A mailing list for discussion about Sun
> Microsystem's Java Servlet
> API Technology.
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Mahmood Shahzad
> Sent: Wednesday, September 13, 2000 4:22 PM
> To: [EMAIL PROTECTED]
> Subject: Re: To all the java Gurus...BackGround
> Process
>
>
> Insert the process in a thread. Invoke this thread
> from a servlet's init()
> method(If a servlet enabled web server is there on
> ur system). Send a
> request to
> servlet. Ur process will continue until the server
> is up.
>
>
> Shahzad
>
>
>
>
>
>
> Purav <[EMAIL PROTECTED]> on 09/13/2000 05:00:38
> PM
>
> Please respond to "A mailing list for discussion
> about Sun Microsystem's
> Java
>       Servlet API Technology."
> <[EMAIL PROTECTED]>
>
> To:   [EMAIL PROTECTED]
> cc:    (bcc: Shahzad Mahmood/CresSoft)
>
> Subject:  To all the java Gurus...BackGround Process
>
>
>
> This question is to all the Java Gurus.
>
> How do i run a  java class as a background process.
> I mean when i type "java test", the control should
> return to the dos or
> Linux prompt with the program running in background
> I know In linux , i can acheive this by putting an &
> at the end.
>
> But how do you acheive this throught code
>
> I have tried various things like calling a thread
> from the Main class and
> then write system.exit. but it doesnot work
>
> Any body knows how this can be acheived
>
>
> Purav
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED]
> and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
>
http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
>
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED]
> and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
>
http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
>
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED]
> and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
>
http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
>
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help:
http://www.lsoft.com/manuals/user/user.html


__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to