|
ID: 19015, Run Jar or an Executable from Web
Java program (source included) runs another program (executable/jar/script/batch) from URL or local drive.
E.g.: run http://www.patryshev.com/snippets/Java2Demo.jar;
run notepad.exe
|
Download
| Details
|
|
FTP
download also available
|
|
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
|
To download this, you must have registered:
|
For JBuilder, Version 1.0
to 2.0
460 downloads
Copyright: No significant restrictions
Size: 186,585 bytes
Updated on Sun, 22 Dec 2002 22:28:49 GMT
Originally uploaded on Tue, 22 Oct 2002 14:49:29 GMT
SHA1 Hash: 5E3B3CCD2E4F98A01B019484F72AD004F67D4CD8
MD5 Hash: 48402A9165771B18500DD0DFF8405A2B
|
Explore the files in this upload
File Exploration is Disabled
We're sorry, but errors in the uploaded zip file prevent it from being explored.
The error generated by the Zip attachment is:
You may still be able to repair the zip file contents if you download the entire zip locally. You may also want to ask the author to repost the attachment.
|
Description
|
Is not it strange that one can easily wget a file from the web, browse any public file there, but not execute it? This code is an example of how easy it is to do it, to execute files from the web. Having this tool, you'll hardly need to store enterprise-wide distrubutables on special "download" shared disks on file servers; instead, just give the users a URL, and they'll run it from there. It should make support easier too.
The command looks like this:
run [-clean]
('-clean' means that if the file already exists in cache, it is overwritten from the web)
Url can point to a file on a disk drive as well.
The full code is presented in this archive, together with Windows, Mac, Solaris and Linux executables. If your platform does not support these, you can always run
java -jar runajar.jar
------------------------------------------------------------------
[12/22/2] Updated. Now not only a jar, but an executable (or a .pl or an .sh or a .bat file) can be launched as well.
|
|

Server Response from: ETNACDC03
|
Connect with Us