You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by Apache Wiki <wi...@apache.org> on 2011/04/04 21:22:45 UTC

[Db-derby Wiki] Update of "siddharthsrivastava/QuickStartGuide_NewDevelopers" by TiagoEspinha

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification.

The "siddharthsrivastava/QuickStartGuide_NewDevelopers" page has been changed by TiagoEspinha.
http://wiki.apache.org/db-derby/siddharthsrivastava/QuickStartGuide_NewDevelopers?action=diff&rev1=15&rev2=16

--------------------------------------------------

   . a)       __Setting the build environment__
    . (i) Setting DERBY_HOME:
  
-  . Assuming that you have[[http://db.apache.org/derby/dev/derby_source.html#Development+trunk|checked out]] the trunk in C:\derby\trunk on Windows, /home/<username>/derby/trunk on Linux.
+  . Assuming that you have[[http://db.apache.org/derby/dev/derby_source.html#Development+trunk|checked out]] the trunk in C:\derby\trunk on Windows, /home/<username>/derby/trunk on Linux or /Users/<username>/derby/trunk on OSX.
  
  ||<tablestyle="margin-left: 1.25in; border-collapse: collapse; border: medium none;"width="127px" style="border: 1pt solid black; padding: 0in 5.4pt; vertical-align: top;">Operating System ||<width="391px" style="border-width: 1pt 1pt 1pt medium; border-style: solid solid solid none; border-color: black black black -moz-use-text-color; padding: 0in 5.4pt; vertical-align: top;">Command ||
  ||<width="127px" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: -moz-use-text-color black black; padding: 0in 5.4pt; vertical-align: top;">Linux ||<width="391px" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; padding: 0in 5.4pt; vertical-align: top;">export DERBY_HOME=/home/<username>/derby/trunk ||
  ||<width="127px" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: -moz-use-text-color black black; padding: 0in 5.4pt; vertical-align: top;">Windows ||<width="391px" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; padding: 0in 5.4pt; vertical-align: top;">set DERBY_HOME=C:\derby\trunk ||
- ||<width="127px" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: -moz-use-text-color black black; padding: 0in 5.4pt; vertical-align: top;">Mac OSX ||<width="391px" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; padding: 0in 5.4pt; vertical-align: top;">-- ||
+ ||<width="127px" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: -moz-use-text-color black black; padding: 0in 5.4pt; vertical-align: top;">Mac OSX ||<width="391px" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; padding: 0in 5.4pt; vertical-align: top;"> export DERBY_HOME=/Users/<username>/derby/trunk ||
  
  
   . (ii)                   Make sure that java is included in your classpath. To test it run java –version from the command prompt(windows)/terminal(linux)  (iii)                 Set PATH variable
  
  ||<tablestyle="margin-left: 1.25in; border-collapse: collapse; border: medium none;"width="127px" height="17.05pt" style="border: 1pt solid black; padding: 0in 5.4pt; vertical-align: top;">Operating System ||<width="391px" height="17.05pt" style="border-width: 1pt 1pt 1pt medium; border-style: solid solid solid none; border-color: black black black -moz-use-text-color; padding: 0in 5.4pt; vertical-align: top;">Command ||
- ||<width="127px" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: -moz-use-text-color black black; padding: 0in 5.4pt; vertical-align: top;">Linux ||<width="391px" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; padding: 0in 5.4pt; vertical-align: top;">export PATH="$DERBY_HOME/bin:$PATH" ||
+ ||<width="127px" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: -moz-use-text-color black black; padding: 0in 5.4pt; vertical-align: top;">Linux / OSX ||<width="391px" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; padding: 0in 5.4pt; vertical-align: top;">export PATH="$DERBY_HOME/bin:$PATH" ||
  ||<width="127px" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: -moz-use-text-color black black; padding: 0in 5.4pt; vertical-align: top;">Windows ||<width="391px" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; padding: 0in 5.4pt; vertical-align: top;">set PATH=%DERBY_HOME%\bin;%PATH% You can also add %DERBY_HOME%\bin at   the of the system path from Control Panel. ||
- ||<width="127px" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: -moz-use-text-color black black; padding: 0in 5.4pt; vertical-align: top;">Mac OSX ||<width="391px" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; padding: 0in 5.4pt; vertical-align: top;">-- ||
  
  
   . (iv)                Setting CLASSPATH          Following are the jars that needs to be included in your classpath
@@ -51, +50 @@

   . For Derby checked out from the trunk, the classpath should be set as follows:  Say, you want to add derbyclient.jar to the classpath:
  
  ||<tablestyle="margin-left: 54.9pt; border-collapse: collapse; border: medium none;"width="222px" style="border: 1pt solid black; padding: 0in 5.4pt; vertical-align: top;">Operating System ||<width="343px" style="border-width: 1pt 1pt 1pt medium; border-style: solid solid solid none; border-color: black black black -moz-use-text-color; padding: 0in 5.4pt; vertical-align: top;">Command ||
- ||<width="222px" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: -moz-use-text-color black black; padding: 0in 5.4pt; vertical-align: top;">Linux ||<width="343px" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; padding: 0in 5.4pt; vertical-align: top;">export CLASSPATH=$DERBY_HOME/sane/jars/derbyclient.jar ||
+ ||<width="222px" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: -moz-use-text-color black black; padding: 0in 5.4pt; vertical-align: top;">Linux / OSX ||<width="343px" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; padding: 0in 5.4pt; vertical-align: top;">export CLASSPATH=$DERBY_HOME/sane/jars/derbyclient.jar ||
  ||<width="222px" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: -moz-use-text-color black black; padding: 0in 5.4pt; vertical-align: top;">Windows ||<width="343px" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; padding: 0in 5.4pt; vertical-align: top;">set CLASSPATH=%DERBY_HOME%\jars\sane\derbyclient.jar ||
- ||<width="222px" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: -moz-use-text-color black black; padding: 0in 5.4pt; vertical-align: top;">Mac OSX ||<width="343px" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; padding: 0in 5.4pt; vertical-align: top;"> ||
  
  
   . b)     __  ____Building Derby from source:__