2 Replies Latest reply: Apr 27, 2015 5:32 AM by Sri80 RSS

    External JAR and Execute Script

    VVeasel88 Community Member

      Is there a way to use external jar(Drools) in execute script step? Any alternatives?

       

      thanks

        • 1. Re: External JAR and Execute Script
          $Nith$ Community Member

          You can use any external jar files in LiveCycle just like other java web application.

           

          1. Place your JAR file in application's lib directory.

           

          e.g c:\jboss\server\all\lib

           

          2. import the package within ExecuteScript activity and start using the classes.

           

          Nith

          • 2. Re: External JAR and Execute Script
            Sri80

            Hi,

            I am using third party(PDFOne) dll and using it in Execute Script operation.

            I am getting below error message. In the error saying that there is no method "load(java.lang.String)".

            But "load(java.lang.String)" method is available in PdfDocument Class.

             

            I have tested in eclipse with same line of java code. It is working fine there. What is the problem in ALC ?

             

            java.lang.RuntimeException: Sourced file: inline evaluation of: ``import com.gnostice.pdfone.PDFOne; import com.gnostice.pdfone.PdfDocument; impor . . . '' : Error in method invocation: Method load( java.lang.String ) not found in class'com.gnostice.pdfone.PdfDocument' : at Line: 14 : in file: inline evaluation of: ``import com.gnostice.pdfone.PDFOne; import com.gnostice.pdfone.PdfDocument; impor . . . '' : d .load ( "C:\\Users\\e0208940\\Documents\\Applications\\PoC Empower IQ approval\\01-Checksum.pdf" )