I have resusable transformation which uses a udjc(user defined java class) to invoke both transformation or job based on the parameter
that is passed to this reusable transformation.
I am getting "Error initializing UserDefinedJavaClass:" method for this udjc.
So i am able to execute the transformation or job that is passed on to this reusable transformation.

But if create a standalone transoframation with same udjc and passed the hardcoded value of transformation/job name then it executes successfully without error.

Why is that udjc failing to get initialized?