Take a look at the java.lang.Runtime.exec() methods.
    (*Chris*)

----- Original Message -----
From: "Haseltine, Celeste" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 23, 2001 4:38 PM
Subject: Re: [JSP-INTEREST] Launching an exe from either a JSP or within
Java


> This is a third party exe, and I just want to lauch it as an external
> application.  Once the printing is stopped, the user would go back
manually
> to the java app that launched the external application So if I wanted to
> emulate the following Dos command:
>
> C:\LMWPrint.exe /E=(jane, doe) <HIT ENTER KEY>
>
> How would I do that in Java?  I find it hard to believe that I would need
to
> use JNI, or write a C++ wrapper just to launch an external exe.  Is there
> any other way to emulate the above DOS command line in Java?
>
> Celeste
>
> -----Original Message-----
> From: Jacek Antoniuk [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 23, 2001 6:16 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Launching an exe from either a JSP or within Java
>
>
> You can use JNI interface - but you would have to recompile your external
> application or write in C/C++ an app that calls your exe.
> ----- Original Message -----
> From: "Haseltine, Celeste" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, August 23, 2001 7:12 PM
> Subject: Launching an exe from either a JSP or within Java
>
>
> > Does anyone know how you can launch another exe resident on the host
> server
> > from within a JSP or in a Java class bean?  I have found a third party
> tool
> > that can send data to industrial printers from a DOS command line,
> inclusive
> > of command line parameters.  But for the life of me I cannot remember
how
> to
> > "emulate" launching an executable from the command line in either Java
or
> > JSP.
> >
> > Thanks in advance!!!
> >
> > Celeste
> >
> >
>
===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to