add glassfish javax.persistence to gradle project

。_饼干妹妹 提交于 2019-12-30 11:05:46

问题


i getting this error

% gradle build [ant:javac] Hello.java:2: error: package javax.persistence does not exist Hello.java:2: import javax.persistence.*;

what should i add to gradle.build to include

/opt/glassfish3/glassfish/modules/javax.persistence.jar

thx


回答1:


Try adding

compile group: 'javax.persistence', name: 'persistence-api', version: '1.0'

to your dependencies.



来源:https://stackoverflow.com/questions/9271849/add-glassfish-javax-persistence-to-gradle-project

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!