Hi.
i am trying to use Aspose-pdf-10.4.1.jar im my eclipse project, and this is my button click code that i use. but when i click the button this runtime error occur. java.lang.NoClassDefFoundError: com.aspose.pdf.Document
i added aspose-pdf-10.4.1.jar to my project through external jars.
and this is my button click code.
try
{
//Open document
com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document(Environment.getExternalStorageDirectory().getAbsolutePath()+"/Computer.pdf");
//Get document information
com.aspose.pdf.DocumentInfo docInfo = pdfDocument.getInfo();
//Create TextView object
final TextView tx = (TextView) findViewById(R.id.textView1);
//Show document information
tx.setText(“Author:-” + docInfo.getAuthor());
tx.setText("\n Creation Date:-" + docInfo.getCreationDate());
tx.setText("\n Keywords:-" + docInfo.getKeywords());
tx.setText("\n Modify Date:-" + docInfo.getModDate());
tx.setText("\n Subject:-" + docInfo.getSubject());
tx.setText("\n Title:-" + docInfo.getTitle());
}
catch(Exception e)
{
}
thanks for help.