Wednesday, November 03, 2004

handling xml from string

u need jaxp.jar for this.

DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();

Document xmldoc = builder.parse(new ByteArrayInputStream(xml.getBytes()));

Monday, November 01, 2004

Signing your jar files

This is required when you want to deploy your application using webstart.

First step is to have a keystore. The following page describes how to create a self certified keystore.

http://mindprod.com/jgloss/keytool.html

--then you have to use the jarsigner tool

jarsigner -keystore targetFile.jar alias

See the mindprod page for full details