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().
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top