We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Problem when i want to use aspose-pdf-10.4.1.jar in my Eclipse project

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.

Hi there,


Thanks for your inquiry. It seems you are developing Android application, so you need to use Aspose.Pdf for Android jar. Please download and try latest version of Aspose.Pdf for Android, it will resolve the issue. Moreover, please also request a 30 days temporary license and implement it to evaluate it without evaluation limitation.

Please feel free to contact us for any further assistance.

Best Regards,