Archive for the 'utility' Category

Translating Listserv archive to mbox format

Sunday, November 30th, 2008

We wanted to import our old mailing list entries from the OpenMRS mailing list Listserv archives into Nabble.  No problem.  Finding the GET listname FILELIST and GET listname file1, GET listname file2, … commands was easy enough.  A quick search of Nabble support made it clear that I needed to send them mbox files.  So, [...]

Determine a the JDK version used to make a JAR file

Friday, April 25th, 2008

Maybe there’s already a tool to do this, but a quick Google search only yield this tip.  So, I made a quick little JAR reader to fetch the estimated version from the manifest:

import java.util.*;
import java.util.jar.*;
import java.io.*;
 
/*
* Sends the "estimated" JDK version (expected to be in the jar manifest "Created-By" attribute)
* to System.out.
*/
public [...]