cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [CONF] Apache Cayenne Documentation > Tutorial Setup
Date Thu, 03 Dec 2009 19:53: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">
         <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="" 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></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="" 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="" rel="nofollow">from here</a>
and unpack it somewhere in the filesystem.</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