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 19 Next »

Servoy is a plugin for the Eclipse platform, so to develop the Servoy codebase an Eclipse SDK environment with Eclipse Plugin development facilities is required.

In order to get started with development on one of the open source Servoy projects, the following is required:

  1. A Servoy Developer installation, with the SQL Explorer plugin installed
  2. A separate Eclipse environment with the Eclipse plugin development tools installed 
  3. Configuration of the Eclipse installation

Installing Servoy Developer

The installer for Servoy Developer can be downloaded after login in at http://www.servoy.com/download. Running the installer will install Servoy Developer.

For a more indepth description of installing Servoy Developer, see Installing Servoy Developer|...\

After installation, start Servoy Developer and install the SQL Explorer plugin. See [] for more information.

Installing Eclipse with the Eclipse plugin development tools

The open source Servoy projects are all plugins for the Eclipse environment, so in order to develop on one of the projects a Eclipse version with Eclipse plugin development tools installed is required.

The Eclipse.org download page (http://www.eclipse.org/downloads/) lists a wide range of prepackaged Eclipse distributions, one being the 'Eclipse for RPC/Plug-in Developers'. Although the plugin development tools can be installed in any Eclipse environment, the easiest is to download the 'Eclipse for RPC/Plug-in Developers' distribution and install it.

Configuration

Start the Eclipse installation and choose or create a workspace into which the development on open source projects of Servoy will take place.

The following configuration needs to be done:

Setup a variable: Go to Window > Preferences > Run/Debug > String Substitution and create a new variable named 'servoy_install' with the value of the directory where Servoy is installed.

Create a classpath variable: Go to Window > Preferences > Java > Build Path > Classpath Variables and create a new variable named 'WEBSTART' with the value of of javaws.jar in the Java installation.

Setup a connection to the Servoy SVN:

  • Open the SVN Perspective: Window > Open Perspective > Other > SVN Repository Exploring
  • Add a new Repository Location: File > New > Repository Location
    • Specify the URL 'https://subversion.servoy.com/product' and click 'Finish'

Checkout the Servoy projects:

  • Expand the tree structure under the newly created Repository Location to the desired version to work on.
  • Select all the projects
  • Right-click one of the selected projects and select "Check Out" from the context menu

Setup the Target Platform: The Target Platform setting provides the Eclipse instance with information on the Servoy Developer installation, namely whether it's installed to run on a 32 or 64 bit Java virtual Machine (JVM).
When the Eclipse instance is running with the same setup as the Servoy Developer instance (both 32 or 64 bit JVM's), then the setup is straight forward. When the Eclipse and Servoy Developer instance run with different setups, it is important to setup the Target Platform correctly.
The checked out projects already contain the target setup files for different platform/JVM combinations:

  1. Mac OSX
  2. Mac OSX 64 bit
  3. Windows 32 bit
  4. Windows 64 bit
  5. Linux.....
  • Switch back to the Java Perspective: Window > Open Perspective > Java
  • Expand to com.servoy.eclipse.core > target in the Package Explorer
  • Open (double-click) the .target file that matches the Servoy Developer environment and click the 'Set as Target Platform'. This will setup the Target Platform correctly, after which projects will be build and should compile without error.

    To check if Servoy Developer runs on a 32 or 64 bit JVM follow the following steps:

    • Open Servoy Developer
    • Go to Help > About Servoy Developer > Installation Details > Configuration tab and look for the text '-arch'.
    • If the text is followed by 'x86', Servoy Developer runs on 32 bit. If it is followed by 'x86_64', Servoy Developer runs on 64 bit

verschillende target files staan voor de verschillende platformen.
Dit is de meest tricky onderdeel, want als jij bv met eclipse gewoon de 32 bits variant heb geinstalleerd
maar servoy zag dat je een 64bits jvm hebt (dat is in mijn geval zo) dan moet je dus hier de juiste target selecteren
Ben er nog niet over uit hoe we dat nu mooi kunnen doen.
Want bv als je mixed moet je ook nog de juiste jvm (32 bit of 64 bit) geconfigureerd hebben (anders kun je niet debuggen)

Maar je moet dus weten welk platform servoy heeft geinstalleerd als dat bij jou win32_64 is moet je die servoy_win32_64.target file openen
Als je de variable servoy_install goed hebt dan zie je als goed is in de eerste tab bij locations 224 plugins (rond dat getal..) available
nu kun je dus rechts boven in op Set as Target Platform link drukken.
Als het goed is compileerd nu alles in 1x.

  • No labels