powered by Jive Software

No class def found on java rest api client

AuthenticationToken authenticationToken = new AuthenticationToken("MyPass");

org.igniterealtime.restclient.RestApiClient restApiClient = new org.igniterealtime.restclient.RestApiClient(“http://myserver”, 9090, authenticationToken);

SEVERE: Servlet.service() for servlet [com.dmrcom.admin.HRUserAdmin] in context with path [/DMRHr] threw exception [Servlet execution threw an exception] with root cause
java.lang.NoClassDefFoundError: Could not initialize class org.igniterealtime.restclient.RestClient
at org.igniterealtime.restclient.RestClient$RestClientBuilder.build(RestClient.java:388)
at org.igniterealtime.restclient.RestApiClient.(RestApiClient.java:46)
at HRUserAdmin$implement.(HRUserAdmin.java:255)

I have the openfire-api-client-1.1.3.jar on my class path. It builds correctly and I have the error not on the AuthenticationToken line which has its class in the same jar file but on the RestApiClient line. This makes me think that the jar file is found properly. I have confirmed that the class file RestClient$RestClientBuilder.class is in the correct location in the jar file.