0
Problem !!! java.lang.ClassNotFoundException: [Ljava.lang.String
This, java.lang.ClassNotFoundException: [Ljava.lang.String is killing me a lot. I've suspected so many things about it, but actually is quite different. Its also mentioned in sun's bug database
Here are some of the solutions i've found in different sites;
1.http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6434149
2. http://dev.bostone.us/2009/02/23/javaxfacesfacesexception-javalangclassnotfoundexception-ljavalangstring/
Here are some of the solutions i've found in different sites;
1.http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6434149
This link recommends the following actions to solve this bug:
1) Add -Dsun.lang.ClassLoader.allowArraySyntax=true if you want to use a
library for which you don't have the source with JDK6
2) Change loader.loadClass( name ) to Class.forName( name, false, loader ) if
you own the code.
class org.apache.catalina.loader.WebAppClassLoader
uses this code to load classes:
clazz = loader.loadClass(name);
Can you please change the sections of code where this line is used (1352 and
others) to
clazz = Class.forName( name, false, loader);
2. http://dev.bostone.us/2009/02/23/javaxfacesfacesexception-javalangclassnotfoundexception-ljavalangstring/
- jdk1.6 unlike 1.5 it will not attempt to load class (java.lang.String) by name by default
- it is easily solvable by locating JVM runtime in Eclipse's preferences (Window->Preferences->Installed JREs), highlighting the entry and adding runtime parameter
-Dsun.lang.ClassLoader.allowArraySyntax=true
- https://blog.coremedia.com/cm/post/2672591/RE_Java_6_javalangClassNotFoundException_LjavalangString_exception.html
- http://forums.java.net/jive/thread.jspa?threadID=15823