Hi All,
coming from .NET I'm into a bit of a puzzle. Hoping for some help.
I'm on Play version 2.0.8 and have this challenge that my Play application(Y) is dependent on another JAR (application(X) I have created). The JAR of X is located in the \lib folder. Application X is using some JAR's from an external API located on the server (the location can be different locations). These JAR's have references to other JARS, so in total there are references to 370 JAR's.
My challenge is now that I need a way in my play application (Y) to be able to, at runtime (dev, test and prod) to be able to reference the JAR hierarchy of application X.
But can I use the PLAY_OPTS or JAVA_OPTS environment variable to set the classpath? And if yes, how can I ensure that JAR's in the classpath also include the referenced other JAR's?
Or is there a better way to accomplish this?
Right now when calling a method that invokes a call to application X, I get this error:
"play.core.ActionInvoker$$anonfun$receive$1$$anon$1: Execution exception [[NoClassDefFoundError:"
At the same time I can see that when I add one of the 3 JAR's using STS, the references JAR from that are included in the classpath.
Appreciate any help or push in a direction.
Cheers
Frank