how to launch java application from c# code?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

How can I launch a java application from c# code without console window?
My command is like:

javaw -cp .;lib myApplication

Thanks
 
Hi Fei
You can use the process class. You can refine how you wish to execute this
by using the processinfo class, that is where you can hide the console
window and and control the output stream handeling.

See System.Diagnostics.Process
System.Diagnostics.ProcessStartInfo

Henk
 
Hello Fei,
How can I launch a java application from c# code without console
window? My command is like:

javaw -cp .;lib myApplication

You can use System.Diagnostics.Process.Start().
 
Back
Top