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 Thu, 03 Dec 2009 19:53: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">
         <h3><a name="TutorialSetup-InstallJava"></a>Install Java</h3>

<p>Make sure you have Java installed. Cayenne 3.0 requires JDK 1.5.</p>

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

<p>Get <a href="http://cayenne.apache.org/download.html" rel="nofollow">the latest
Cayenne</a> distribution. If you are on Linux, select a cross-platform version (<tt>cayenne-XXX.tar.gz</tt>).
 For Mac OS X select <tt>cayenne-XXX-macosx.dmg</tt> and for Windows - <tt>cayenne-XXX-win.zip</tt>.
Unpack the distribution somewhere in the file system. </p>

<h3><a name="TutorialSetup-DownloadDerbyDatabase"></a>Download Derby Database</h3>

<p>Get Derby database <a href="http://db.apache.org/derby/derby_downloads.html" rel="nofollow">from
here</a> and unpack it somewhere in the filesystem.</p>

<h3><a name="TutorialSetup-DownloadEclipse"></a>Download Eclipse </h3>

<p>Download Eclipse <a href="http://www.eclipse.org" rel="nofollow">from here</a>
and unpack it somewhere in the filesystem.</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=10&originalVersion=9">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