2011 m. balandžio 6 d.

Class not found exception in Java 6

Recently I have got “java.lang.ClassNotFoundException: [Ljava.lang.String” exception.

To fix it you need to set this parameter to true:

-Dsun.lang.ClassLoader.allowArraySyntax=true

This parameter can be easily set in registries for Apache Tomcat service:

image

More information: https://blog.coremedia.com/cm/post/2672591/RE_Java_6_javalangClassNotFoundException_LjavalangString_exception.html