473,503 Members | 2,166 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to launch java application from c# code?

Hi,

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

javaw -cp .;lib myApplication

Thanks
Nov 17 '05 #1
4 5311
Hi Fei,

Take a look at this link from MSDN which describes how to create processed
in C# or VB.NET. If you follow through the documentation there are some
options that you can set to control if a window gets used when the process
is launched.

http://msdn.microsoft.com/library/de...gprocesses.asp

Alex Passos

"Fei Li" <Fe***@discussions.microsoft.com> wrote in message
news:CF**********************************@microsof t.com...
Hi,

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

javaw -cp .;lib myApplication

Thanks

Nov 17 '05 #2
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().

--
Ajay Kalra [MVP - VC++]
aj*******@yahoo.com
Nov 17 '05 #3
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

"Fei Li" <Fe***@discussions.microsoft.com> wrote in message
news:CF**********************************@microsof t.com...
Hi,

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

javaw -cp .;lib myApplication

Thanks

Nov 17 '05 #4
Should I create a window application or console application?

"Henk Verhoeven" wrote:
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

"Fei Li" <Fe***@discussions.microsoft.com> wrote in message
news:CF**********************************@microsof t.com...
Hi,

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

javaw -cp .;lib myApplication

Thanks


Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
5994
by: Lafoopsie | last post by:
I want to launch an application from my C++ application. For example the java appletviewer with the command "appletviewer test.html" How can I do this? Thx!
7
30938
by: dan glenn | last post by:
I want to use some javascript to launch a windows application (this used on intranet) but don't know how. Can anyone help me out please? It'd be neat if I could not only launch the application...
1
5897
by: Michael Howes | last post by:
I have a c# windows form that talks to a web service on a server that then can talk to multiple "agents" on different machines using web service calls. I want to be able to launch an application...
13
4927
by: David Rose | last post by:
Hi, I am trying to launch pdf files (in this case). The test application takes the path to the pdf from a TextBox when the user clicks a button. I have written code that works on my computer,...
7
2610
by: Paul | last post by:
Hi. I need to launch a windows application and then send keyboard event to this process to run certain commands. I've created a COM+ appplication to spawn and talk to the application which works...
1
2208
by: sylsau | last post by:
Hello, I wrote a JAVA program which uses the JAVA API JDOM 1.0 (of this site www.jdom.org) I put the archive jdom.jar in the directory /usr/share/java/jdom.jar and I added this path in the...
0
3117
by: raccoon | last post by:
I have 10gR2 Client on WinXP. I am not able to launch the old OEM CONSOLE (not the 10g db console) through any method. Not by Start/Programs, not by command line oemapp console. If I use the...
1
1637
BezerkRogue
by: BezerkRogue | last post by:
I have created a VB Script to synchronize software versions and then launch an application on the system it is run against. The script runs and generates no errors but will not launch the second...
7
6204
by: Samuel A. Falvo II | last post by:
I have a shell script script.sh that launches a Java process in the background using the &-operator, like so: #!/bin/bash java ... arguments here ... & In my Python code, I want to invoke...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7353
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7011
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5596
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
747
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
401
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.