Orika - java.lang.NoClassDefFoundError:javassist / CannotCompileException

时间:2011-11-24 12:43:36

标签: java orika

我正在做以下事情并获得奖励:

Exception in thread "main" java.lang.NoClassDefFoundError: 
    javassist/CannotCompileException

有谁知道为什么?

package javaapplication1;

import ma.glasnost.orika.MapperFactory;
import ma.glasnost.orika.impl.DefaultMapperFactory;

public class JavaApplication1 {

    public static void main(String[] args) {
        MapperFactory factory = new DefaultMapperFactory();
    }
}

1 个答案:

答案 0 :(得分:0)

Orika依赖于Javassist,Paranamer和SLF4J,

请查看Spring-Orika集成的这个例子

http://orika.googlecode.com/svn/branches/examples