hi,
i have loaded ** Aspose.words.jdk14.jar ** and my own class ** JBWordEditor.class ** in Oracle database
i also created a procedure call_JBWordEditor to call the java class function to copy source file to destination file.
But it throws the following error.
-----------------------------------------------------------------------------------------------------
sql> select call_JBWordEditor('c: \temp1.docx', 'c: \temp1_cp.docx') from dual
Error at line 1:
ORA-29532: Java call terminated by uncaught java exception:
java.lang.NoClassDefFoundError
java.lang.NoClassDefFoundError
at sun.util.calendar.CustomInfoObjects.class$(ZoneInfoFile.java: 1149)
at sun.util.calendar.CustomInfoObjects.getCustomTimeZone(ZoneInfoFile.java:1149)
at sun.util.calendar.ZoneInfoFile.getCustomTimeZone(ZoneInfoFile.java:504)
at sun.util.calendar.TimeZone.parseCustomTimeZone(TimeZone.java:701)
at sun.util.calendar.TimeZone.getTimeZone(TimeZone.java:450)
at sun.util.calendar.TimeZone.getDefault(TimeZone.java:522)
at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:513)
at java.text.SimpleDateFormat.(SimpleDateFormat.java:472)
at asposewobfuscated.vq.toString(DateTime.java: 1353)
at asposewobfuscated.ot.d(PalFormatter.java: 36)
at asposewobfuscated.oa.a(OpcCorePropertiesWriter.java: 67)
at asposewobfuscated.oa.a(OpcCorePropertiesWriter.java: 54)
at com.aspose.words.ia.Hv(DocxWriter.java: 113)
at com.aspose.words.ia.a(DocxWriter.java: 40)
at com.aspose.words.Document.a(Document.java: 1353)
at com.aspose.words.Document.save(Document.java: 746)
at com.aspose.words.Document.save(Document.java: 706)
at WPPackage.JBWordEditor.copyFile(JBWordEditor.java:78)
caused by: java.lang.ClassNotFoundException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java: 165)
… 18 more
sql>
-----------------------------------------------------------------------------------------------------
My java class function in Class JBWordEditor is very simple,
public static String copyFile(String s1, String s2)
{
try
{
Document doc = new Document(s1);
if (doc != null)
doc.save(s2);
else
return "1";
}
catch (Exception e)
{}
return "0";
}
please help me.