ExecuteJava and JarServer
Some more stuff:
This program executes other java programs in a single JVM. It uses a ClassLoader to implement the classpath and a Security Manager to keep System.exit() from killing the JVM.
My previous PC had a 300Mhz processor and 64M RAM. Loading a java program took seconds. If I was using more than one program they each required load time and used space. So I wrote a program to allow more than one java program to execute in the same JVM. It saved jvm startup time and hopefully used less system resources by sharing the same jvm. I have yet to see one program interfer with another. The jar file and my .ini file are in the index page mentioned above.
The source is in a zip file: ExecuteJavaSource.zip on the page mentioned above.
I've downloaded dozens of websites so that I could search them when not connected to the internet. (I traveled on a sailboat for 6 months of the year and wifi has its limits). Some of these websites are of interest to other sailors and I wanted to be able to share them with the simplest interface. I could zip the files and give the zip file to the other sailor, but would require that he have a unzip program, know how to use it, how to find the files when unzipped and know which page was the starting page to open the site. Too complicated for many PC users.
My idea was to put all the files into a jar file with an HTTP server and search. The user would open the jar file, it starts the server, starts the user's browser with a URL back to its server and when the browser did a GET to the URL, it would display the start page for the site. The rest of the session would appear to the user as if he were connected to the internet, ie links would issue GETs to the server and it would return the requested page, etc.
I gave several copies of these jar files to friends and found that they worked first time on a Mac. With Windows, I often had to fiddle something to get them to work.
The source is in a zip file: JarServerSource.zip on the page mentioned above.