This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JNLP and Web Start and the fly likes Java Web Start Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JNLP and Web Start
Reply Bookmark "Java Web Start" Watch "Java Web Start" New topic
Author

Java Web Start

Ananthi Raj
Greenhorn

Joined: Jun 05, 2006
Posts: 1
The application that I have calls CMD.EXE and runs a .bat file as a seperate process.Is there a way that I can inclued the .bat file in the one of the jar? can I call it from getRuntime().exec() in my application.

Thanks
Jeff Osborn
Greenhorn

Joined: Jun 12, 2006
Posts: 8
My guess is that you would have to extract it out of the jar file and then run cmd.exe on it. You could use the java.util.jar.JarFile to extract the file into a known directory and then build the command line to point to the .bat file in the known directory. It should not be too bad.

Let us know how it goes,

Jeff


Jeff Osborn<br />Procelerate Technologies<br /><a href="http://procelerate.com" target="_blank" rel="nofollow">procelerate.com</a>
Jeff Osborn
Greenhorn

Joined: Jun 12, 2006
Posts: 8
Oh yes, I forgot to add that I�m not a big Web Start guy, so there may be some kind of slick deployment xml way to get Web Start to unpack files out of the jar.

Anyone, anyone....

Baring that, I would go with the above method.

Jeff
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Java Web Start
 
Similar Threads
to make an icon for application.
.bat file
Two JDK on a machine
difference between exe file and batch file
Command Line