开发者

scala serialization

When I try doing the serialization examples from Ruminations of a Programmer's "JSON Serialization for Scala Objects" article I run into the error:

Exception in thread "main" java.lang.NoClassDefFoundError: scala/util/parsing/syntax/Tokens.

I have found that it happens when trying to deserialize. I was just wondering if there was a simple fix. I would really like not having to redo开发者_开发知识库 my whole project and downloading all my jars again.


This mainly occurs when the scala library is not present in your source path. just check that it is present in build path. If you are using eclipse the plugin doesnt work properly some times.Just make a new folder in your project and paste scala library into it and give it to build path.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜