Expand my Community achievements bar.

SOLVED

External JAR and Execute Script

Avatar

Former Community Member

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

thanks

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

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

Avatar

Level 2

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" )