Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Aperi/build/dev-env"

(3. Downloading Third Party Packages)
(6. Running Aperi in a debug environment)
 
(18 intermediate revisions by 2 users not shown)
Line 14: Line 14:
 
* [http://java.sun.com/javase/downloads/index.jsp Java 1.5 JDK]
 
* [http://java.sun.com/javase/downloads/index.jsp Java 1.5 JDK]
 
* [http://msdn2.microsoft.com/en-us/visualc/default.aspx MSVC 6.0 (MS Visual C)]  
 
* [http://msdn2.microsoft.com/en-us/visualc/default.aspx MSVC 6.0 (MS Visual C)]  
* [http://www.eclipse.org/downloads/ Eclipse SDK 3.2.1]
+
* [http://www.eclipse.org/downloads/ Eclipse SDK 3.3]
 
* [http://ant.apache.org/bindownload.cgi Ant 1.7.0]
 
* [http://ant.apache.org/bindownload.cgi Ant 1.7.0]
 
* [http://prdownloads.sourceforge.net/jsch/jsch-0.1.31.jar?download JSch 0.1.31]
 
* [http://prdownloads.sourceforge.net/jsch/jsch-0.1.31.jar?download JSch 0.1.31]
Line 43: Line 43:
  
  
==== Eclipse SDK 3.2.1 ====  
+
==== Eclipse SDK 3.3 ====  
 
* Go to http://www.eclipse.org/downloads/.
 
* Go to http://www.eclipse.org/downloads/.
* Click Eclipse SDK 3.2.1.
+
* Click on Eclipse Classic
* Click a mirror link and download the eclipse-SDK-3.2.1-win32.zip file.
+
* Download the eclipse-SDK-3.3-win32.zip file.
* Extract the contents of the zip file to C:\Aperi-Dev\BuildTools\eclipse-SDK-3.2.1-win32.
+
* Extract the contents of the zip file to C:\Aperi-Dev\BuildTools\eclipse
  
 
==== Ant 1.7.0 ====  
 
==== Ant 1.7.0 ====  
Line 59: Line 59:
 
=== 2. Downloading Aperi Source and Eclipse Components ===
 
=== 2. Downloading Aperi Source and Eclipse Components ===
  
Perform these steps to download Aperi source into your Eclipse IDE.   
+
Start the Eclipse IDE.   
 
+
* Start the Eclipse IDE by running: C:\Aperi-dev\BuildTools\eclipse\eclipse.exe.
* Start the Eclipse IDE by running: C:\dev\eclipse-SDK-3.2.1-win32\eclipse\eclipse.exe.
+
 
* Select a workspace directory of C:\Aperi-Dev\Code.   
 
* Select a workspace directory of C:\Aperi-Dev\Code.   
* Import the aperi.psf file.  Importing this file will automatically download the Aperi source code in addition to other leveraged Eclipse components.
 
  
To import this file, complete the following steps:
+
Download the aperi.psf file.
 +
* Go here -  [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.aperi/org.eclipse.aperi.build/aperi.psf?root=Technology_Project&view=log CVS].
 +
* Right click the download link and 'Save Target As'; then save the file to 'C:\Aperi-Dev\Code\aperi.psf'
 +
 
 +
Import the aperi.psf file into the IDE - this triggers the download of the source code.  From the IDE:
 
* Select File > Import.  
 
* Select File > Import.  
 
* Select Team > Team Project Set.  
 
* Select Team > Team Project Set.  
* Browse and select aperi.psf. You can download this file from [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.aperi/org.eclipse.aperi.build/aperi.psf?root=Technology_Project&view=log CVS].
+
* Browse and select aperi.psf
 +
* Click Finish
  
 
=== 3. Downloading Third Party Packages ===
 
=== 3. Downloading Third Party Packages ===
 
Perform these steps to download important third-party libraries and complete the Aperi runtime code base.
 
Perform these steps to download important third-party libraries and complete the Aperi runtime code base.
  
Turn off Eclipse automatic builds until all steps are complete.
+
==== Manual Download of 3rd Party Files ====
  
{|
+
* JavaHelp 1.1.3
|-
+
** Go to http://java.sun.com/products/javahelp/download_binary.html.
!Library
+
** Click the Download button under the JavaHelp 1.1.3 (Zip) section.  
!Required Files
+
** Click Accept License Agreement.  
!Location of Library
+
** Click the down arrow to download the javahelp-1_1_3.zip file.
|-
+
** Unzip the contents of the downloaded file to ''C:\Aperi-Dev\Etc''
|SNIA HBA API 2.2
+
** Copy the file ''C:\Aperi-Dev\Etc\jh1.1.3\javahelp\lib\jh.jar'' into the "C:\Aperi-Dev\Code\javax.help" directory
|hbaapi_src_2.2.tgz
+
** From within the IDE, select the javax.help project and hit F5 to refresh
|http://prdownloads.sourceforge.net/hbaapi/
+
|-
+
|JavaHelp 1.1.3
+
|jh.jar
+
|http://java.sun.com/products/javahelp/download_binary.html
+
|-
+
|Geronimo 1.1
+
|geronimo-j2ee_1.4_spec-1.1.jar
+
|http://www.apache.org/dist/geronimo/1.1/geronimo-tomcat-j2ee-1.1.zip
+
|-
+
|BIRT Runtime 2.1.2
+
|birt-runtime-2.1.2.zip  
+
|http://www.eclipse.org/downloads/download.php?file=/birt/downloads/drops/R-R1-2_1_2-200702271000/birt-runtime-2.1.2.zip
+
|-
+
|org.mortbay.jaas 5.1.10
+
|org.mortbay.jaas-5.1.10.jar
+
|http://repo1.maven.org/maven2/jetty/org.mortbay.jaas/5.1.10/org.mortbay.jaas-5.1.10.jar
+
|-
+
|Dojo Toolkit 0.4.2
+
|dojo-0.4.2-ajax.tar.gz
+
|http://download.dojotoolkit.org/release-0.4.2/dojo-0.4.2p1-ajax.zip
+
|-
+
|iText 1.3
+
|itext-1.3.jar
+
|http://downloads.sourceforge.net/itext/itext-1.3.jar?modtime=1112806930&big_mirror=0
+
|}
+
  
 +
==== Automatic Download of 3rd Party Files ====
  
==== SNIA HBA API 2.2 ====
+
# Configure your eclipse workspace to use Ant 1.7.0
Note: You must be able to decompress .tgz files to complete the download of this library.
+
#* Click Window -> Preferences...
* Go to http://prdownloads.sourceforge.net/hbaapi/.
+
#* Navigate to Ant -> Runtime and click the "Ant Home" button <br>[[Image:AntHome.JPG]]
* Under 'File Releases' click the link for 'hbaapi_src_2.2.tgz' under the 'hbaapi-src' heading
+
#* Select the base directory on Ant 1.7.0 (C:\Aperi-Dev\BuildTools\apache-ant-1.7.0)
* Decompress ''hbaapi_src_2.2.tgz'' to ''C:\Aperi-Dev\Etc\hbaapi_src_2.2''
+
# Run the ant task "Download 3rd Party Components to IDE"
* Import ''hbaapi.h'' and ''vendorhbaapi.h'' into project directory ''Aperi\data\c\T-Storm''
+
#* Click Run -> External Tools -> Open External Tools Dialog...
* Import ''hbaapi.h'', ''HBAAPILIB.c'', ''hbaapitest.c'', and ''vendorhbaapi.h'' into ''Aperi\device\SNIA\commonAPI''.
+
#* Select Ant Build -> Download 3rd Party Components to IDE and click the Run button. <br> [[Image:Download3rdPartyToIDE.JPG]]
* Rename ''hbaapitest.c'' to ''hbalib.c'' in A''peri\device\SNIA\commonAPI''
+
#* Eclipse will take a few minutes to download and place third party files
 +
#* From within the IDE, select all the Aperi projects and hit F5 to refresh the projects with the filesystem.
  
==== JavaHelp 1.1.3 ====
+
=== 4. Building Native Code ===
* Go to http://java.sun.com/products/javahelp/download_binary.html.
+
Most users do not need to actually compile the native code. Such users can simply use the latest binaries (already compiled code). To do this:
* Click the Download button under the JavaHelp 1.1.3 (Zip) section.  
+
* Run --> External Tools --> ResetDebugEnvironmentNoNativeCompile
* Click Accept License Agreement.
+
When this run correctly, skip to section 5
* Click the down arrow to download the javahelp-1_1_3.zip file.
+
* Unzip the contents of the downloaded file to ''C:\Aperi-Dev\Etc''
+
* Import into ''javax.help'' the file ''C:\Aperi-Dev\Etc\jh1.1.3\javahelp\lib\jh.jar''
+
 
+
==== Geronimo 1.1 ====
+
* Go to http://www.apache.org/dist/geronimo/1.1/geronimo-tomcat-j2ee-1.1.zip
+
* Unzip the downloaded file to ''C:\Aperi-Dev\Etc''
+
* Import into ''javax.j2ee'' the file ''C:\Aperi-Dev\Etc\geronimo-1.1\repository\org\apache\geronimo\specs\geronimo-j2ee_1.4_spec\1.1\geronimo-j2ee_1.4_spec-1.1.jar.''
+
 
+
==== BIRT Runtime 2.1.2 ====
+
* Download the [http://www.eclipse.org/downloads/download.php?file=/birt/downloads/drops/R-R1-2_1_2-200702271000/birt-runtime-2.1.2.zip BIRT runtime].
+
* Unzip the file to ''C:\Aperi-Dev\Etc''
+
* Import to ''org.eclipse.aperi.reporting\web\birt-viewer'' the contents of ''C:\Aperi-Dev\Etc\birt-runtime-2_1_2\WebViewerExample'' '''except for''' the file ''birt-viewer\WEB-INF\web.xml'', your import dialog should look like this:
+
[[Image:Aperi-importReporting.PNG]]
+
 
+
==== org.mortbay.jaas 5.1.10 ====
+
* Download the [http://repo1.maven.org/maven2/jetty/org.mortbay.jaas/5.1.10/org.mortbay.jaas-5.1.10.jar org.mortbay.jaas jar].
+
* Copy the jar to ''C:\Aperi-Dev\Etc''
+
* Rename the jar from ''org.mortbay.jaas-5.1.10.jar'' to ''org.mortbay.jaas.jar''
+
* Import ''C:\Aperi-Dev\Etc\org.mortbay.jaas.jar'' into ''org.eclipse.aperi.reporting.jaas''
+
 
+
==== Dojo Toolkit 0.4.2 ====
+
* Download the [http://download.dojotoolkit.org/release-0.4.2/dojo-0.4.2-ajax.tar.gz Dojo toolkit]
+
* Extract the downloaded tarball to ''C:\Aperi-Dev\Etc''
+
* Import into ''org.eclipse.aperi.reporting\web\aperi-reports\dojoAjax'' the contents of ''C:\Aperi-Dev\Etc\dojo-0.4.2-ajax''
+
 
+
==== iText 1.3 ====
+
* Download the [http://downloads.sourceforge.net/itext/itext-1.3.jar?modtime=1112806930&big_mirror=0 iText jar]
+
* Copy the jar to ''C:\Aperi-Dev\Etc''
+
* Import ''C:\Aperi-Dev\Etc\itext-1.3.jar'' into the ''org.eclipse.aperi.reporting/web/birt-viewer/WEB-INF/lib'' directory.
+
  
 
=== 4a. Building Aperi on Windows ===
 
=== 4a. Building Aperi on Windows ===
Line 190: Line 139:
 
[[Image:Aperi-build-2.PNG]]
 
[[Image:Aperi-build-2.PNG]]
  
* Launch RunConfigureAperiIDE to install Aperi and creates a runtime Derby database.   
+
=== 5. Installing & Configuring Aperi ===
 +
Installing will configure Aperi for runtime (set ports, etc.)From the IDE, open the Run Dialog and select the following run script:
  
[[Image:Aperi-build-3.PNG]]
+
* Aperi-Install  (for simplicity, just accept all of the defaults when the installer runs)
  
=== 5. Running Aperi in a debug environment ===
+
=== 6. Running Aperi in a debug environment ===
If the configuration completes successfully, Aperi is ready to start.  Launch the following processes in the following order:
+
If the installation completes successfully, Aperi is ready to start.  Launch the following processes in the following order:
  
* RunAperiDerbyDB
+
* Aperi-DerbyDB-Start
* RunAperiDataServer
+
* Aperi-DataServer
* RunAperiDeviceServer
+
* Aperi-DeviceServer
* RunAperiAgent
+
* Aperi-Agent
* RunAperiLegacyGUI
+
* Aperi-GUI
* RunAperiReportServer
+
* Aperi-ReportServer

Latest revision as of 23:24, 25 May 2008

Aperi Development Environment

This document describes how to set up a development environment on a “clean” Windows machine for working with Aperi. This includes:

  • Setting up a development environment
  • Downloading the Aperi source code
  • Downloading third-party libraries
  • Building aperi
  • Running Aperi in a debug environment

1. Begin setting up the development environment

Perform this step to begin establishing the appropriate development environment on a Windows machine. The following components are needed for the environment:

Create a directory - C:\Aperi-Dev\BuildTools\ to house the tools needed to build Aperi.

Create a directory - C:\Aperi-Dev\Etc to house downloaded packages integrated into the product

Java 1.5 JDK

  • Go to http://java.sun.com/javase/downloads/index.jsp
  • Click Download next to JDK 5.0 Update 9 with Java EE.
  • Click Accept License Agreement.
  • Click Java EE SDK 5 Update 1 for Windows to download the jdk-1_5_0_09-windows-i586-p.exe file.
  • Run the executable and accept the default settings.

MSVC 6.0 (MS Visual C) + SP6

Use this component to compile the native code to the Windows platform. Install this into the default directory. Aperi assumes this default location to be: "C:\Program Files\Microsoft Visual Studio\VC98\" If you have a licensed copy of MSVC 6.0 you can download service pack 6 from here: http://www.microsoft.com/downloads/details.aspx?familyid=A8494EDB-2E89-4676-A16A-5C5477CB9713&displaylang=en

NTDDK

The version of the DDK available at that site is Windows Server 2003 SP1. It supports versions of Windows going back to Windows 2000. An ISO download is available. To avoid burning it to a CD prior to installation, you can use WinRAR (http://www.rarlab.com/ ) to extract the contents of the ISO to a local folder. When installing, stick with all of the defaults. There's no need to install any of the samples. By default, the files are written to the following directory: C:\WINDDK\3790.1830.

DXSDK

The version of the Platform SDK available at that site is Windows Server 2003 SP1. Similar to the DDK, it supports versions of Windows going back to Windows 2000. Download the appropriate file for your system (ex: PSDK-x86.exe). Double click this file on the target system and install everything. The install is web-based, and will thus take some time. By default, the Platform SDK files are written to the following directory: C:\Program Files\Microsoft Platform SDK.


Eclipse SDK 3.3

  • Go to http://www.eclipse.org/downloads/.
  • Click on Eclipse Classic
  • Download the eclipse-SDK-3.3-win32.zip file.
  • Extract the contents of the zip file to C:\Aperi-Dev\BuildTools\eclipse

Ant 1.7.0

  • Go to http://ant.apache.org/bindownload.cgi.
  • Click apache-ant-1.7.0-bin.zip in the Current Release of Ant section to download Ant 1.7.0.
  • Unzip the distribution file into C:\Aperi-Dev\BuildTools\. The resulting ANT_HOME directory should be C:\Aperi-Dev\BuildTools\apache-ant-1.7.0.

JSch 0.1.31

  • Download jsch-0.1.31.jar to C:\Aperi-Dev\BuildTools\apache-ant-1.7.0\lib\jsch-0.1.31.jar.

2. Downloading Aperi Source and Eclipse Components

Start the Eclipse IDE.

  • Start the Eclipse IDE by running: C:\Aperi-dev\BuildTools\eclipse\eclipse.exe.
  • Select a workspace directory of C:\Aperi-Dev\Code.

Download the aperi.psf file.

  • Go here - CVS.
  • Right click the download link and 'Save Target As'; then save the file to 'C:\Aperi-Dev\Code\aperi.psf'

Import the aperi.psf file into the IDE - this triggers the download of the source code. From the IDE:

  • Select File > Import.
  • Select Team > Team Project Set.
  • Browse and select aperi.psf
  • Click Finish

3. Downloading Third Party Packages

Perform these steps to download important third-party libraries and complete the Aperi runtime code base.

Manual Download of 3rd Party Files

  • JavaHelp 1.1.3
    • Go to http://java.sun.com/products/javahelp/download_binary.html.
    • Click the Download button under the JavaHelp 1.1.3 (Zip) section.
    • Click Accept License Agreement.
    • Click the down arrow to download the javahelp-1_1_3.zip file.
    • Unzip the contents of the downloaded file to C:\Aperi-Dev\Etc
    • Copy the file C:\Aperi-Dev\Etc\jh1.1.3\javahelp\lib\jh.jar into the "C:\Aperi-Dev\Code\javax.help" directory
    • From within the IDE, select the javax.help project and hit F5 to refresh

Automatic Download of 3rd Party Files

  1. Configure your eclipse workspace to use Ant 1.7.0
    • Click Window -> Preferences...
    • Navigate to Ant -> Runtime and click the "Ant Home" button
      AntHome.JPG
    • Select the base directory on Ant 1.7.0 (C:\Aperi-Dev\BuildTools\apache-ant-1.7.0)
  2. Run the ant task "Download 3rd Party Components to IDE"
    • Click Run -> External Tools -> Open External Tools Dialog...
    • Select Ant Build -> Download 3rd Party Components to IDE and click the Run button.
      Download3rdPartyToIDE.JPG
    • Eclipse will take a few minutes to download and place third party files
    • From within the IDE, select all the Aperi projects and hit F5 to refresh the projects with the filesystem.

4. Building Native Code

Most users do not need to actually compile the native code. Such users can simply use the latest binaries (already compiled code). To do this:

  • Run --> External Tools --> ResetDebugEnvironmentNoNativeCompile

When this run correctly, skip to section 5

4a. Building Aperi on Windows

  • Make sure the C:\Aperi-Dev\Code\Aperi\build_env.bat file is updated so that variables are correct. A default directory, C:\Aperi-Dev\BuildTools\, is used to house the tools needed to build Aperi. If this directory not used, build_env.bat should be updated accordingly.
  • Launch ResetDebugEnvironment from Eclipse. This launch script is preconfigured to build the native code on a Windows platform. The image below illustrates the launch.

Aperi-build-1.PNG

NOTE: If the launch scripts do not appear as illustrated in the above image, there is a small work around. Go to Window -> Open Perspective -> Other -> CVS Repository Exploring. “Re-check out” the AperiDebug project. For some reason, this resolves the problem. You should now see the scripts as illustrated above. Launch ‘ResetDebugEnvironment’.

Aperi-build-2.PNG

  • Launch RunConfigureAperiIDE to install Aperi and creates a runtime Derby database.

Aperi-build-3.PNG

4b. Building Aperi on Linux

  • Create a Linux aperi build user:
    username: aperi
    password: aperi
    home directory: /home/aperi
  • Verify you have SSH access to localhost
    ssh aperi@localhost
  • Make a symbolic link from "/usr/lib/jvm/jdk1.5.0" to the Sun JDK.
  • Make sure the /Aperi-Dev/Code/Aperi/build_env.sh file is updated so that variables are correct. A default directory, /Aperi-Dev/BuildTools/, is used to house the tools needed to build Aperi. If this directory not used, build_env.sh should be updated accordingly.
  • If you would like to compile the native code then Launch CompileNativeLinux_FromLinux. If not, proceed to the next step.

Aperi-build-linux-1.PNG

  • Launch ResetDebugEnvironmentLinux from Eclipse. The image below illustrates the launch.

Aperi-build-linux-2.PNG

NOTE: If the launch scripts do not appear as illustrated in the above image, there is a small work around. Go to Window -> Open Perspective -> Other -> CVS Repository Exploring. “Re-check out” the AperiDebug project. For some reason, this resolves the problem. You should now see the scripts as illustrated above. Launch ‘ResetDebugEnvironment’.

Aperi-build-2.PNG

5. Installing & Configuring Aperi

Installing will configure Aperi for runtime (set ports, etc.). From the IDE, open the Run Dialog and select the following run script:

  • Aperi-Install (for simplicity, just accept all of the defaults when the installer runs)

6. Running Aperi in a debug environment

If the installation completes successfully, Aperi is ready to start. Launch the following processes in the following order:

  • Aperi-DerbyDB-Start
  • Aperi-DataServer
  • Aperi-DeviceServer
  • Aperi-Agent
  • Aperi-GUI
  • Aperi-ReportServer

Back to the top