Importing iText library for use in a Java action

I'm experimenting with Java actions. Can someone please tell me if I can import and use non-Mendix libraries like iTextPDF? If yes, how do I do this without my IMPORT statement being overwritten each time I deploy my model + where should I save the iText jar file(s) to in my Mendix project folder? Thanks, Keith.
1 answers


This is possible. Add the jar file in the userlib directory of your project. In the modeler deploy for eclipse, this will add the jar to your build path. Add the necessary import statements in your code, these will not be overwritten.