cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Cayenne Documentation > Tutorial Setup
Date Sun, 20 Dec 2009 17:12:00 GMT
<html>
<head>
    <base href="http://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1519/1/1/_/styles/combined.css?spaceKey=CAYDOC&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background-color: white" bgcolor="white">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
     <h2><a href="http://cwiki.apache.org/confluence/display/CAYDOC/Tutorial+Setup">Tutorial
Setup</a></h2>
     <h4>Page <b>edited</b> by             <a href="http://cwiki.apache.org/confluence/display/~andrus">Andrus
Adamchik</a>
    </h4>
     
          <br/>
     <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="http://www.eclipse.org/downloads/" 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="http://m2eclipse.sonatype.org/"
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 "http://m2eclipse.sonatype.org/update/" 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
Project</h3>

<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>
<ul>
	<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>
</ul>


<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>
     <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="http://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
       </div>

       <a href="http://cwiki.apache.org/confluence/display/CAYDOC/Tutorial+Setup">View
Online</a>
       |
       <a href="http://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=10642&revisedVersion=12&originalVersion=11">View
Change</a>
              |
       <a href="http://cwiki.apache.org/confluence/display/CAYDOC/Tutorial+Setup?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message