Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

ID: 19015, Run Jar or an Executable from Web

by Vlad Patryshev Email: Anonymous

Java program (source included) runs another program (executable/jar/script/batch) from URL or local drive.
E.g.: run;
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:
A free membership

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

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.

For more information, see

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03