What is your current oracle version and internal jvm version? You can find many threads regarding this issue saying "it is not possible to upgrade internal jvm other than 11g". Better to downgrade your java code to 1.4 (if it is to be in 10g).
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com