simple scala question about httpparser

Posted by kula on Stack Overflow See other posts from Stack Overflow or by kula
Published on 2010-05-19T15:51:57Z Indexed on 2010/05/19 16:10 UTC
Read the original article Hit count: 273

Filed under:

hi all. i'm a scala newbee. i have one question. in my code ,i try to import httpparse library like this

 scalac -classpath /home/kula/code/201005/kookle/lib/htmlparser.jar     crawler.scala

and i run this code.

scala main

and it tell me that

      java.lang.NoClassDefFoundError: org/htmlparser/Parser

at FetchActor$$anonfun$act$1$$anonfun$apply$1.apply(crawler.scala:21) at FetchActor$$anonfun$act$1$$anonfun$apply$1.apply(crawler.scala:13) at scala.actors.Reaction.run(Reaction.scala:78) at scala.actors.FJTask$Wrap.run(Unknown Source) at scala.actors.FJTaskRunner.scanWhileIdling(Unknown Source) at scala.actors.FJTaskRunner.run(Unknown Source)

i check the file./home/kula/code/201005/kookle/lib/htmlparser.jar and it is no problem.anyone can tell me how cause this bug?

© Stack Overflow or respective owner

Related posts about scala