Installing and configuring Eclipse
Aus Salespoint
back to tutorials
Inhaltsverzeichnis |
download eclipse
Windows
1. download "Eclipse IDE for Java EE Developers": eclipse download website
2. extract the downloaded content wherever you want to have your programs (e.g. C:\Program Files); now your eclipse is "installed"
Mac OS X and Linux
- Download Eclipse IDE for Java EE Developers
- Extract the tarball to a destination of your choice. In the new "eclipse" directory, click "Eclipse" to start Eclipse. No further installation is necessary.
configure Eclipse
1. start your eclipse
2. define a workspace: a place on your computer where you want to have your self programmed applications
install SVN
therefor please check out this video.
setup salepoint 5 project
get EclipseLink
1. right click on your project --> Properties --> Project Facets
2. click "Convert to faceted form..."
3. set checkmarks at "Dynamic Web Module" and "JPA"
4. click "Further configuration required..."
5. select "Platform": "EclipseLink 2.3.x"
6. at "JPA implementation" select "Type": "User Library" and click on the small icon with the disk and the arrow who says “Download Library...”
7. select "EclipseLink 2.3.0”
8. click “Next”
9. accept the license, click “Finish” and wait until download has finished (sometimes it takes quite a while)
create database connection
1. right click on your project --> Properties --> JPA
2. "Connection": "add Connection"
3. select "Derby" and enter a Name
4. click "Next"
5. "Driver": click the small wheel which says "New Driver Definition"
6. select "Derby Embedded JDBC Driver" version 10.2
7. click tab "JAR List"
8. add derby.jar from lib folder that comes whit the salespoint5.war file
9. click "ok", click "finish"
configure persistence.xml
1. open your project --> src --> META-INF
2. if the folder does not contains an persistenc.xml create a new one: right click on META-INF --> new --> other
type xml --> click "XML file" --> click "next"
name file: "persistence.xml" --> click "finish"
3. open persistence.xml
4. open tap "Connection"
5. "Transaction type": select "Resource Local"
6. "JBDC connection properties": click "populate from connection"
7. select the connection you created before and click "OK"
installing a server
In this tutorial we use Tomcat as an sever, but you can use any server you like to use.
1. download Tomcat version 7
2. extract/install Tomcat wherever you like to
3. open eclipse
4. click: "Windows" --> "Show View" --> "Other..." --> "Server" --> select "Servers" --> click "OK"
5. now somewhere in your Eclipse a Window that is called "Servers" must appear
6. right click in the "Servers" Window: "New"--> "Server"
7. select Apache --> the Tomcat server in the version you downloaded, here it is : "Tomcat v7.0 Server"
8. click next
9. "Tomcat installation directory": choose the folder you installed your tomcat before
10. click finish
finally
now you should be able to start programming