Liferay在jdk1.8下build-service时出现的问题

1.点击build-service时,报如下信息:

       [javac] Annotation processing got disabled, since it requires a 1.6 compliant JVM

解决:替换ecj.jar文件。

F:\liferay\liferay-ide-eclipse-2.2.4\eclipse\configuration\org.eclipse.osgi\30\0\.cp\extra\ecj.jar



2.java.lang.IllegalArgumentException

 at jodd.asm4.ClassReader.<init>(ClassReader.java:170)

 at jodd.asm4.ClassReader.<init>(ClassReader.java:153)

 at jodd.asm4.ClassReader.<init>(ClassReader.java:424)

 at jodd.paramo.Paramo.resolveParameters(Paramo.java:59)


这个是JDK1.8的BUG,换成1.7正常,详见:https://issues.liferay.com/browse/LPS-59203

你可能感兴趣的:(service,builder,liferay)