Reputation: 29877
In my Java EE app, I have the following line of code:
import javax.persistence.CascadeType;
When I Google javax.persistance
, Java EE's
website lists this as one of libraries that is built into the framework. I'm not sure though of the easiest way of finding the library for this. Initially I pressed ctrl shift O in Eclipse to include it but Eclipse removed it. Even though my code doesn't use it in my java file, it is used in an external file that my java file needs, so I need to include it.
I'm aware that if my project were using Maven, it would automatically download dependencies but this is library is part of Java EE, so there should not be any need to download anything since I already have Java EE installed.
I created a libs directory but I'm not sure how to go about finding the actual library and including it.
Upvotes: 0
Views: 381
Reputation: 26
You can download JavaEE SDK and install it on your system: http://www.oracle.com/technetwork/java/javaee/downloads
Then you set class path reference to your class/project.
In Eclipse, goto Help--> Eclipse Marketplace.. then search for Java EE, select appropriate plugin to install.
Upvotes: 1