Friday, July 11, 2008

NoClassDefFoundError: oracle/gss/util/NLSLocale

When I upgraded my Oracle JDBC driver to 10.2.0.4, Oracle XSQL Utility started giving me the following exception when using "-encoding UTF-8"

Exception in thread "main" java.lang.NoClassDefFoundError: oracle/gss/util/NLSLocale
at oracle.xml.sql.XSULocale.getJavaCharset(XSULocale.java:122)
at OracleXML.To_XML(OracleXML.java:1092)
at OracleXML.ExecuteGetXML(OracleXML.java:917)
at OracleXML.main(OracleXML.java:185)

Ok, it turns out that in Oracle 10.2.0.4, some classes that used to be in
orai18n.jar got separated into their own jars, which are shipped with Oracle
XDK, not with Oracle JDBC drivers. For example, oracle.gss.util.NLSLocale is now in $XDKHOME/jlib/orai18n-mapping.jar.

2 comments:

Prabesh Shrestha said...

Hi,
I am having similar problem.I searched for orai18-mapping.jar but could not find it.Please help me by sending me the link.You can mail be at prabesh708@gmail.com

Thank You,
Prabesh Shrestha

Nicholas Sushkin said...

Prabesh, the ora18-mapping.jar is a part of Oracle XDK (XML Developer Kit). Google it.