cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [CONF] Apache Cayenne Documentation > Tutorial Setup
Date Sun, 20 Dec 2009 17:12:00 GMT
    <base href="">
            <link rel="stylesheet" href="/confluence/s/1519/1/1/_/styles/combined.css?spaceKey=CAYDOC&amp;forWysiwyg=true"
<body style="background-color: white" bgcolor="white">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
     <h2><a href="">Tutorial
     <h4>Page <b>edited</b> by             <a href="">Andrus
     <div class="notificationGreySide">
         <p>Install (or check that you already have it installed) the following software:</p>

<h3><a name="TutorialSetup-Java"></a>Java</h3>

<p>Obviously, JDK has to be installed. Cayenne 3.0 requires JDK 1.5 or newer.</p>

<h3><a name="TutorialSetup-EclipseIDEandtheMavenPlugin"></a>Eclipse IDE
and the Maven Plugin</h3>

<p>Download Eclipse <a href="" rel="nofollow">from
here</a>. This tutorial is based on the Galileo package (Eclipse 3.5), JEE edition,
still it should work any recent vanilla Eclipse distribution.</p>

<p>After downloading Eclipse, unpack it somewhere in the filesystem, and start it. The
only plugin that you need for the tutorial is <a href=""
rel="nofollow">m2eclipse</a>. To install it, in Eclipse go to "Help &gt; Install
New Software", then click on "Add.." to add a new download site, and enter "Maven" in the
"Name" field, and "" in the "Location" field. You may
install any of the optional components that you think you need, but for this tutorial we only
select a few basic components as shown on the following screenshot:</p>

<p>Follow the Eclipse dialog instructions to finish the installation.</p>

<h3><a name="TutorialSetup-DownloadCayenne"></a>Download Cayenne</h3>

<p>While we'll be using Maven to include Cayenne runtime jars in the tutorial project,
you'll still need to download Cayenne to get access to CayenneModeler tool. Select an appropriate
. Unpack the distribution somewhere in the file system. </p>

<h3><a name="TutorialSetup-CreateaNewEclipseProject"></a>Create a New Eclipse

<p>Start Eclipse and go to <tt>"File &gt; New &gt; Project"</tt>.
Select a "Java Project" for the project type and click "Next":</p>

<p><img src="/confluence/download/attachments/10642/eclipse-new-project.jpg" align="absmiddle"
border="0" /></p>

<p>Enter "cayenne-tutorial" for the project name, select "Create separate source and
output folders" radio button and click "Next":</p>

<p><img src="/confluence/download/attachments/10642/eclipse-project-settings.jpg"
align="absmiddle" border="0" /></p>

<p>On the next screen ("Java Settings") go to the "Libraries" tab and click "Add External
Jar" button on the right to add two Jar files:</p>
	<li><tt>derby.jar</tt> located in the "lib" directory of the Derby installation)</li>
	<li><tt>cayenne.jar</tt> located in the "lib" directory of Cayenne installation.</li>

<p><img src="/confluence/download/attachments/10642/eclipse-java-settings.jpg" align="absmiddle"
border="0" /></p>

<p>When done click "Finish" and the new project should appear in Eclipse.</p>

<hr />
<p><b>Next Step: <a href="/confluence/display/CAYDOC/Tutorial+Starting+Mapping+Project"
title="Tutorial Starting Mapping Project">Tutorial Starting Mapping Project</a></b></p>
<hr />
     <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href=""
class="grey">Change Notification Preferences</a>

       <a href="">View
       <a href="">View
       <a href=";showCommentArea=true#addcomment">Add

View raw message