If you happen to see this:
javax.faces.FacesException: java.lang.ClassNotFoundException: [Ljava.lang.String;
When your code has been running fine all the while, fret not, according to this post in the java.net forums it’s an issue with JDK 6. This means you’d have to use a system wide JDK that is lesser than JDK 6 (highly undesirable, I always want the latest and greatest
). A more viable solution is to for Tomcat to use its own JDK via
-Djava.library.path=”C:/j2sdk1.4.2_06/bin”
argument during startup. If you are using MyEclipse, it’s even simpler. See the screenshot below.

Filed under:
Programming
Leave a comment