This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Error when compiling to a servlet
- From: Per Bothner <per at bothner dot com>
- To: Ben <txt at sent dot com>, kawa at sourceware dot org
- Date: Tue, 17 Feb 2015 05:23:57 -0800
- Subject: Re: Error when compiling to a servlet
- Authentication-results: sourceware.org; auth=none
- References: <1423930042 dot 519694 dot 227511037 dot 28360A14 at webmail dot messagingengine dot com> <54DF9EEE dot 1090607 at bothner dot com> <1424081687 dot 1781270 dot 228018241 dot 54BBF7CA at webmail dot messagingengine dot com> <54E222ED dot 2050707 at bothner dot com> <54E25C86 dot 9060708 at bothner dot com> <2AF1422A-71B1-4EE1-904D-4F87BAB86629 at sent dot com>
On 02/17/2015 02:33 AM, Ben wrote:
I've tried to run 'kawa --servlet -C myscript' in various ways like
" java -cp ./servlet-api-3.0.jar:/home/ben/local/kawa/kawa/kawa.jar
-jar ./kawa.jar --servlet -C script.scm"
but I keep getting the same error::
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/servlet/http/HttpServlet
at java.lang.ClassLoader.defineClass1(Native Method)
Hm. There does seem to be a problem when using the -jar option.
Not sure what is going on.
However, the following seems to work:
java -cp /path/to/servlet.jar:/path/to/kawa-2.0.jar kawa.repl --servlet -C script.scm
--
--Per Bothner
per@bothner.com http://per.bothner.com/