Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 24 Next »

Overview

If you want to setup an Eclipse development environment with the Pentaho Reporting Classic Engine source code, the following instructions will get you started.

NOTE: While the Eclipse IDE is nice and somewhat easy for development on the Pentaho Reporting Classic Engine, it is by no means required to develop on or against the engine.

Install Eclipse with SVN Tools

Make sure you have Eclipse setup and installed and you have installed Subclipse (Subversion tools for Eclipse). If you have not, follow the steps to setup your development environment.

Connect to the SVN Repository

The next step is to connect to the SVN Repository for the Pentaho Reporting project. This repository connection information is:

svn://source.pentaho.org/pentaho-reporting 

  • In Eclipse, open the SVN Repositories Window (Window Menu > Show View > Other > SVN > SVN Repository)


  • Right click in the SVN Repository window > New > Repository Location...


  • Fill in the following fields:

    Field Name

    Value

    URL

    svn://source.pentaho.org/pentaho-reporting



  • The connection should be established and displayed in the SVN Repository window
    |

Check Out the Latest Code

Once the connection is established, it is time to check out the latest source code.

  • In the SVN Repository windows, navigate to engines > classic > core > trunk
  • Right-click and select Checkout...

  • Click on the Finish button...
  • From the New Project window, select Java Project...

  • In the New Java Project window, enter the Project Name (something like pentaho-reporting-classic-core) and click on the Next button...

  • In the Default output folder, append a /bin to the default folder and click Finish...

  • Ignore the warning message about resources that exist in the project...
  • At this point, the latest version of the project is checked out and the source code is sitting on your computer

Configure the Project for Eclipse

Once the project is checked out, there are some Eclipse specific tasks that need to be done since this isn't an Eclipse project by default.

  • Back in the Java perspective, on the Navigator or Package Explorer view, right-click on the pentaho-reporting-classic-core project and select Properties
  • Select the Java Build Path item

  • On the Source tab:
    • Highlight the pentaho-reporting-classic-core item and click the Remove button.
    • Click the Add Folder button, check the pentaho-reporting-classic-core ? source folder and click OK

    • Set the Default output folder to pentaho-reporting-classic-core/bin (and un-check the Allow output folders for source folders option if it is selected)
  • On the Libraries tab, click the Add JARs... button
    • Navigate to the pentaho-reporting-classic-core ? lib directory
    • Highlight all the jar files in that directory
    • Click on the OK button

  • Click on the OK button of the Properties dialog

At this point, the pentaho-reporting-classic-core project should compile and be ready for development.
You can repeat the same steps to work on the pentaho-reporting-classic-extensions project or any of the associated libraries (located under trunk ? libraries):

  • jcommon-serializer
  • libfonts
  • libformula
  • libloader
  • librepository
  • libxml
  • pixie
  • No labels