Java program performance

We have a JAVA program which uses XMLdecoder to read an XML file of 30 MB size.When I run the JAVA program in eclipse IDE the parsing/output can be seen in less than 1 minute.

When I run the same code from a JAVA ScriptLibrary, the code takes approximately 20 minutes to complete the process.I run the library by using RUN AS >>> JAVA APPLICATION in Lotus designer.

I see the following errors in the console, when the program is run in Lotus, but no errors are reported when I use eclipse IDE.

org.xml.sax.SAXParseException: Premature end of file.

at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)

at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)

at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)

at javax.xml.parsers.SAXParser.parse(Unknown Source)

at java.beans.XMLDecoder.readObject(XMLDecoder.java:625)

at Decoder.InitDecoder(Unknown Source)

at Decoder.main(Unknown Source)

Any help in this regard is much appreciated.

Regards,

Ravi