title: Importing External JAR to Websphere Liberty? [NoClassDefFoundError]
body: <p>I want to use this <a href="https://code.google.com/p/quick-json/" rel="nofollow">JSON parser</a> in my JAX-RS application that runs on Websphere Liberty.</p>
  
  <p>I have done the following:</p>
  
  <p>1) Right-click on Project -> Properties -> Java Build Path -> Add External Jar -> C:\javalib\quick-json.jar</p>
  
  <p>2) Added C:\javalib to enviroment variable CLASSPATH</p>
  
  <p>3) Added fileset xml to serverl.xml</p>
  
  <pre><code>&lt;library id="ExternalLibs"&gt;
      &lt;fileset dir="C:\javalib" includes="*.jar"/&gt;
  &lt;/library&gt;
  </code></pre>
  
  <p>4) Unchecked 'Enable project specific settings' in 'Java Compiler'</p>
  
  <p>5) Cleaned the Project</p>
  
  <p>[EDIT]</p>
  
  <p>I was initially creating a new instance and then I turned it into an @ApplicationScoped bean and injected it. Now I get this error:</p>
  
  <pre><code>The JNDI lookup failed for JNDI name java:module/ConsoleREST with the following Exception CNTR4007E: An error occurred creating the websphere.jaxrs.service.ConsoleREST interface for the ConsoleREST enterprise bean in the WebApiConsole.war module in the WebApiConsole application. The enterprise bean look up failed using the java:module/ConsoleREST JNDI name. Exception: com/json/parsers/JsonParserFactory.
  CNTR4007E: An error occurred creating the websphere.jaxrs.service.ConsoleREST interface for the ConsoleREST enterprise bean in the WebApiConsole.war module in the WebApiConsole application. The enterprise bean look up failed using the java:module/ConsoleREST JNDI name. Exception: com/json/parsers/JsonParserFactory
  </code></pre>
  
  <p>The first step was enough to get it to compile. Now I'm getting what I learned to be a runtime error. I would appreciate help!</p>