Forum Discussion

jasmeenkaur27's avatar
jasmeenkaur27
Contributor
7 years ago
Solved

Getting error: Object doesn't support this action on using PDFBox libraries

I have added PDF box jar and classes in my current project properties, but when I am trying to use the classes in my code. I get this error on the below line 

objFile = JavaClasses.org_apache_pdfbox_pdmodel.PDDocument.load_3(strPDFPath);

 

Error: - Object doesn't support this action.

 

This piece of code was working fine till today. Not sure what failed!

 

 

  • Any recent java update you made in your system since that might cause to get the JavaBridge path. Re-Verify that.

     

    If you still face the issue, Please verify strPDFPath has value.

     

    More info on error would be better to help.

2 Replies

  • shankar_r's avatar
    shankar_r
    Community Hero

    Any recent java update you made in your system since that might cause to get the JavaBridge path. Re-Verify that.

     

    If you still face the issue, Please verify strPDFPath has value.

     

    More info on error would be better to help.

    • jasmeenkaur27's avatar
      jasmeenkaur27
      Contributor

      yes, the path of the JVM was incorrect after an Java update was made on my system.

       

      After giving the correct path, m code worked. thanks!