Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
JayQueue
Creator
Creator

Build can't find external jars from routine

Hello,

Building a job where I use a custom created routine.

The job runs in TOS but when I try to run with the .sh script I get:

Exception in thread "main" java.lang.Error: Unresolved compilation problems:

    JoseException cannot be resolved to a type

    JwtClaims cannot be resolved to a type

    JwtClaims cannot be resolved to a type

    JsonWebSignature cannot be resolved to a type

    JsonWebSignature cannot be resolved to a type

    AlgorithmIdentifiers cannot be resolved to a variable

    at routines.GenerateJWTRoeselare.buildClientAssertion(GenerateJWTRoeselare.java:42)

    at talend_shared.magda_get_jwt_token_0_5.MAGDA_get_JWT_token.tFileInputRaw_1Process(MAGDA_get_JWT_token.java:1532)

    at talend_shared.magda_get_jwt_token_0_5.MAGDA_get_JWT_token.runJobInTOS(MAGDA_get_JWT_token.java:3555)

    at talend_shared.magda_get_jwt_token_0_5.MAGDA_get_JWT_token.main(MAGDA_get_JWT_token.java:3368)

In the GenerateJWTRoeselare.java:

0695b00000PMST0AAP.png

0695b00000PMSTAAA5.png

The libs are in the library folder and the .sh script points to the correct .jars.

What am I missing?

Thanks!

Labels (2)
1 Solution

Accepted Solutions
JayQueue
Creator
Creator
Author

Hi @Xiaodi Shi​ ,

 

The issue is resolved. I had to update my routines.jar on the linux machine.

Thank you for the follow-up 🙂

 

-Jonathan

View solution in original post

4 Replies
JayQueue
Creator
Creator
Author

The .bat file on Windows works

Anonymous
Not applicable

Hello,

What is your jDK version in your linux OS? The same JDK version as Windows?

Could you please ensure JDK bin is included in your PATH environment variable and is being reached?

Best regards

Sabrina

JayQueue
Creator
Creator
Author

Hi @Xiaodi Shi​ ,

 

The issue is resolved. I had to update my routines.jar on the linux machine.

Thank you for the follow-up 🙂

 

-Jonathan

Anonymous
Not applicable

Hello,

Great this issue is resolved.

Feel free to let us know if there is any further help we can give.

Best regards

Sabrina