开发者

Create a Jar library for a web application with Netbeans

I want to create a JAR library that will be shared among different web projects.

This library will contain the @Entity classes for the projects that access to the same database structure.

I tried creating "Java class Library". But when I try to add an annotation javax.persistence.Entity i realize that this (annotation) class is not available in my project. Probably because the project is a "standard edition" project.

So my questions are:

1) the difference between SE and EE is just the libraries loaded or there is some sort of s开发者_Python百科witch triggered somewhere?

2) where is, in Netbeans, the corresponding project targeted to the EE platform?


You simply need to add the required jars to the build path. javax.persistence can be used in a java SE project, it's just not there in netbeans automatically.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜