tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aryeh Friedman <>
Subject Fwd: help using JspC from the command line in 7
Date Fri, 17 Aug 2012 21:39:19 GMT
---------- Forwarded message ----------
From: Aryeh Friedman <>
Date: Fri, Aug 17, 2012 at 5:33 PM
Subject: help using JspC from the command line in 7

I have figured out most of how to compile JSP from the command line
but I am now stuck on this:

% java -cp /usr/local/apache-tomcat-7.0/lib/jasper.jar:/usr/local/share/java/apache-ant/lib/ant.jar:/usr/local/apache-tomcat-7.0/lib/servlet-api.jar
org.apache.jasper.JspC foo.jsp
Exception in thread "main" java.lang.NoClassDefFoundError:
        at org.apache.jasper.JspC.<clinit>(
Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory
        at Method)
        at java.lang.ClassLoader.loadClass(
        at sun.misc.Launcher$AppClassLoader.loadClass(
        at java.lang.ClassLoader.loadClass(
        ... 1 more
Could not find the main class: org.apache.jasper.JspC. Program will exit.

Any ideas?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message