There are two ways to include one or more JAR files with a Job:
When running a Job, you may get one of the following errors:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/drill/exec/rpc/RpcException at com.mapr.drill.core.DRJDBCConnection.connect(Unknown Source) at com.mapr.jdbc.common.BaseConnectionFactory.doConnect(Unknown Source) at com.mapr.jdbc.common.AbstractDriver.connect(Unknown Source) at java.sql.DriverManager.getConnection(DriverManager.java:664) at java.sql.DriverManager.getConnection(DriverManager.java:247) at acme.drill_test_0_1.drill_test.tJDBCConnection_1Process(drill_test.java:411) at acme.drill_test_0_1.drill_test.runJobInTOS(drill_test.java:1262)
Job (an executable Java class) is not able to find a class in its classpath.
Right-click a routine you use in your Job and select Edit routine libraries, then add the JAR files you need.
Even if you do not use any routines in your Job, you can still use this method.
Add the JAR files you need. The screenshot below shows the various popups you will see when adding a new JAR to your routine as a Routine Library.
Link the routine to your Job: