On Monday 01 March 2004 23:27, Torbj�rn Karlsson wrote:
> Copying from the javadocs:
>
> -- java.nio.charset.spi.CharsetProvider ---

> Charset providers may be installed in an
> instance of the Java platform as extensions, that is, jar files placed
> into any of the usual extension directories. 

> Looks like youre hunch was right, classloader problem. But I still don�t
> know how to solve the problem.


1. Try to move it from "jre/lib" to "jre/lib/ext", this is called a standard 
extension.

2. If that fails, try;
Remove it from the system directories altogether.
In your own code, just prior to 'triggering' the load of the charset, try to 
do;

    ClassLoader cl = getClass().getClassLoader();
    Thread.currentThread().setContextClassLoader( cl );

and have the ClassLoader directive in Merlin include the charset.jar together 
with the code that does the above.


Niclas

-- 
+---------//-------------------+
|   http://www.bali.ac         |
|  http://niclas.hedhman.org   |
+------//----------------------+

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to