GreenDao freemaker.jar缺失 [英] GreenDao freemaker.jar is missing

查看:904
本文介绍了GreenDao freemaker.jar缺失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚下载了新的jar文件的 GreenDao 以创造我的数据库的应用程序,我建设。

I just downloaded the new jar file for GreenDao in order to create my DB for the app I'm building.

在经过我的建模实体和它们之间的连接的全部过程中,我试图运行的发电机项目,但得到这个错误生成该DB行:

After going through all the process of modeling my entities and the connections between them, I tried to run the generator project but got this error for the line that generated the DB:

Exception in thread "main" java.lang.NoClassDefFoundError: freemarker/template/ObjectWrapper
    at com.glide.talk.glide.model.generator.Model.main(Model.java:29)
Caused by: java.lang.ClassNotFoundException: freemarker.template.ObjectWrapper
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    ... 1 more

这发生在该生产线是:新DaoGenerator()generateAll(架构,SRC); ,我必须在构建路径和 LIB 文件夹只的 greendao发电机-1.3.0.jar 的文件。

The line this happened in is: new DaoGenerator().generateAll(schema, src); and I have in the buildpath and in the lib folder only the greendao-generator-1.3.0.jar file.

任何想法或解决方案将是非常有益的。

Any thoughts or solutions will be very helpful.

PS 是确定使用的是1.2版本的freemaker.jar?

编辑:现在,我下载从SourceForge这个版本并我希望这实际上是什么,我需要使用。

for now, I downloaded this version from sourceforge and am hoping this is actually what I need to use.

推荐答案

我也有类似的问题,并从下载的jar <一href="http://mvnrepository.com/artifact/org.freemarker/freemarker">http://mvnrepository.com/artifact/org.freemarker/freemarker它很好的解决了。

I had a similar problem and downloaded the jar from http://mvnrepository.com/artifact/org.freemarker/freemarker which worked out well.

当你看一看的 build.gradle 的在DaoGenerator项目,你会发现一个依赖指向正是这个神器。我猜用摇篮构建项目会自动下载这些依赖就像行家一样。如果您不希望为使用,它可能是罚款,下载并手动包括文物。

When you take a look at build.gradle in the DaoGenerator-project, you'll find a dependency that points exactly to this artifact. I guess using gradle to build your project automatically downloads these dependencies just like maven does. If you do not wish to use either, it's probably fine to download and include the artifacts manually.

这篇关于GreenDao freemaker.jar缺失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆