|
-
Jun 12th, 2006, 09:58 PM
#4
Thread Starter
New Member
Re: Run java program from VB.net
 Originally Posted by jmcilhinney
You cannot directly access a Jave class in your .NET app. You can execute any executable, Java or otherwise, using Process.Start, but you cannot access Java objects directly within your .NET code. You can create a ProcessStartInfo object and set its RedirectStandardOutput to True, pass it to Process.Start and save the Process object it returns, then read from the StandardOutput stream of the Process. You should read about the Process and ProcessStartInfo classes.
I see. That really what I want to do.
But I have another question.
How can I check whether a JRE program is installed in the machine from the vb.net program?
Or I can only check the environment variables "JAVA_HOME" instead?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|