Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Execute Java program from another java program


  • From: ted at neward.net (Ted Neward)
  • Subject: Execute Java program from another java program
  • Date: Sat Nov 12 19:31:05 2005

If you want to execute it within the same JVM, just do
"Class.forName(<classname here>)"; if you want to fire off a new JVM,
you'll need to use System.exec() and the appropriate command-line for your
platform.

Ted Neward
http://www.javageeks.com/~tneward


On Sun, 31 Oct 1999, Le Phu Binh wrote:

> Hello,
> 
> 	Is there anyway to invoke a java application from another java
> application? For example: I have the java application A which show the
> tree. When clicking on a tree node I want to execute another java
> application. Is there a way to active the java application directly by
> calling the class or we have to embed "java path/application.class" and
> execute it from the main program?
> 
> Thanks,
> Binh.
> 
> 
> ---
> To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
> To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx
> 


---
To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx