java ee - Could not initialize class com.ibm.nosql.json.resources.Messages when using db2 NoSQLClient? -


i'm getting error

java.lang.noclassdeffounderror: not initialize class com.ibm.nosql.json.resources.messages 

i understand noclassdeffounderror means during runtime, class not found.

the reason perplexed because included different class resides in same jar file definately being detected virtue not getting following error appearing prior when included jar file:

java.lang.noclassdeffounderror: com/ibm/nosql/json/api/nosqlclient 

as per the documentations, added c:\program files\ibm\sqllib\json\lib classpath, added java build path, , have defined in server.xml file:

    <library id="nosqljsonlib">         <fileset dir="c:\program files\ibm\sqllib\json\lib" includes="nosqljson.jar"/>     </library>      <webapplication id="webapi" location="webapi.war" name="webapi" contextroot="/">         <classloader commonlibraryref="nosqljsonlib" />     </webapplication> 

inside eclipse, see com.ibm.nosql.json.resources.messages class.

finally, here code fails:

db db = nosqlclient.getdb(databaseurl, user, password, ns); 

thank you!

i'd suggest move library files out of program files folder. create directory path without space, , put jars there.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -