java.lang.NoClassDefFoundError

Alan Bateman Alan.Bateman at oracle.com
Wed Feb 4 14:20:47 UTC 2015


On 04/02/2015 14:08, Christian Schlichtherle wrote:
> Hi,
>
> Alan, how could the default file system provider get replaced? AFAIK from reading the source code of the java.nio.file package, it’s hard coded. The root cause exception says the JVM can’t initialize java.nio.file.FileSystems$DefaultFileSystemHolder. I can spot no recursion in the entire stack trace.
>
> Lars, I suppose something must be unique to your environment. Maven Central statistics tell me there are more than thousand downloads of TrueZIP components from unique IPs every month, but I have not heard of this problem before nor am I able to reproduce it. Maybe the JDK installation just got corrupted and a simple reinstall would fix it?
The system property java.nio.file.spi.DefaultFileSystemProvider can be 
used to set the default file system provider to be something other than 
the JDK built-in implementation. If TrueZip doesn't support that then 
ignore my comment as I can't think of any other reason why the built-in 
implementation could not initialize.

I would be interested to know if Paths.get("foo") in a simple test on 
this system works. If it doesn't then we might get more from this stack 
trace to help diagnose this issue.

-Alan.


More information about the nio-discuss mailing list