This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Starting Java VM and running multiple apps Stopping the VM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Starting Java VM and running multiple apps Stopping the VM" Watch "Starting Java VM and running multiple apps Stopping the VM" New topic
Author

Starting Java VM and running multiple apps Stopping the VM

Todd Fisher
Greenhorn

Joined: Aug 21, 2001
Posts: 3
I'm writting an application that is making use of a large
number of other applications. A few of which are java.
To call them from my app I'm sending the command:
java -jar prog.jar < infile > outfile
This works fine so long as I only make use of the java applications minimally, however, the java program I am using
is a tagger, which is being called potentially thousands of times. As you might image this is a very big bottleneck
in my app. Is there any way that i might just
be able to say java -start
then anything i send such as -jar prog.jar
would be executed, rather then me having to restart the JM
everytime i want to use my tagger. What i am saying is can
i preload the Java Virtual Machine or do i have to reload it
everytime i want to call a java program?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Starting Java VM and running multiple apps Stopping the VM
 
Similar Threads
Specify the Virtual machine
Distributing apps as jar files
HELP: Launching JVM from Visual C++ problem
Controlling Java at the terminal
Java Virtual Machines on Linux