This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error when compiling to a servlet




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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]