Difference between revisions of "Quick Development Environment Setup"

From Developer Documents
Jump to navigation Jump to search
Line 4: Line 4:
  
 
# Get and install ''Java SE Development Kit 7'' (JDK 7). You can download the package from [http://www.oracle.com/technetwork/java/javase/downloads/index.html http://www.oracle.com/technetwork/java/javase/downloads/index.html]. Follow the installation instructions for your operating system. It is recommended to always use the latest JDK update.
 
# Get and install ''Java SE Development Kit 7'' (JDK 7). You can download the package from [http://www.oracle.com/technetwork/java/javase/downloads/index.html http://www.oracle.com/technetwork/java/javase/downloads/index.html]. Follow the installation instructions for your operating system. It is recommended to always use the latest JDK update.
# Get and install the latest ''Eclipse Classic IDE'' 4.3 (Kepler) stable stream build. You can find the package from [http://download.eclipse.org/eclipse/downloads/ http://download.eclipse.org/eclipse/downloads/]. You can select freely the installation location for the package, e.g. under your home directory. Just unzip the package to install Eclipse.
+
# Get and install the latest ''Eclipse Classic IDE'' 4.4 (Luna) stable stream build. You can find the package from [http://download.eclipse.org/eclipse/downloads/ http://download.eclipse.org/eclipse/downloads/]. You can select freely the installation location for the package, e.g. under your home directory. Just unzip the package to install Eclipse.
 
# After the installation of Eclipse, check that your Eclipse is set to use the right Java Runtime Environment (JRE):
 
# After the installation of Eclipse, check that your Eclipse is set to use the right Java Runtime Environment (JRE):
 
#* In Eclipse platform, open "Window - Preferences".
 
#* In Eclipse platform, open "Window - Preferences".
Line 25: Line 25:
 
#* Select latest “SVN Kit 1.x.y” and press “Finish”, and proceed with the installation. Restart Eclipse after the installation.
 
#* Select latest “SVN Kit 1.x.y” and press “Finish”, and proceed with the installation. Restart Eclipse after the installation.
  
== Install Simantics 1.13 Target Platform ==
+
== Install Simantics 1.15 Target Platform ==
  
 
# In Eclipse platform, activate the ''Plug-in Development'' perspective, either from the tab on the upper right corner of the Eclipse platform or from the “Window / Open Perspective / Other...” menu, and select ''Plug-in Development''.
 
# In Eclipse platform, activate the ''Plug-in Development'' perspective, either from the tab on the upper right corner of the Eclipse platform or from the “Window / Open Perspective / Other...” menu, and select ''Plug-in Development''.
Line 43: Line 43:
 
#* In Eclipse platform, open “Window / Preferences”, and from there the “Plug-in Development / Target Platform” folder.
 
#* In Eclipse platform, open “Window / Preferences”, and from there the “Plug-in Development / Target Platform” folder.
 
#* The new target definitions should be available in the list. Activate one of the following:
 
#* The new target definitions should be available in the list. Activate one of the following:
#** “Simantics 1.13” (for application development on Simantics platform)
+
#** “Simantics 1.15” (for application development on Simantics platform)
#** “Simantics SDK 1.13” (for Simantics platform development and application development on Simantics platform)
+
#** “Simantics SDK 1.15” (for Simantics platform development and application development on Simantics platform)
#: and confirm the target platform definition by pressing "Apply" and/or "OK". If you defined a ''Simantics SDK 1.13'' target, you are asked for the username and the password.
+
#: and confirm the target platform definition by pressing "Apply" and/or "OK". If you defined a ''Simantics SDK 1.15'' target, you are asked for the username and the password.
 
#* Wait until Eclipse finishes downloading, this may take a while. After the download is completed, there should be several plug-ins starting with "org.simantics.*" in the Eclipse ''Plug-ins'' view (the view on the left side of Eclipse).
 
#* Wait until Eclipse finishes downloading, this may take a while. After the download is completed, there should be several plug-ins starting with "org.simantics.*" in the Eclipse ''Plug-ins'' view (the view on the left side of Eclipse).
 
# '''Keep your platform up-to-date!''' Updating is as easy as reloading the target platform from ''Target Platform'' preference page:
 
# '''Keep your platform up-to-date!''' Updating is as easy as reloading the target platform from ''Target Platform'' preference page:
 
#* In Eclipse platform, open “Window / Preferences”, and from there the “Plug-in Development / Target Platform” folder.
 
#* In Eclipse platform, open “Window / Preferences”, and from there the “Plug-in Development / Target Platform” folder.
#* Select the active target platform, e.g. ''Simantics SDK 1.13'', from the list and press "Reload".
+
#* Select the active target platform, e.g. ''Simantics SDK 1.15'', from the list and press "Reload".
 
#* Wait until the platform is updated.
 
#* Wait until the platform is updated.
  

Revision as of 09:04, 8 July 2014

Install Java JDK and Eclipse, and Setup the IDE for Simantics Development

  1. Get and install Java SE Development Kit 7 (JDK 7). You can download the package from http://www.oracle.com/technetwork/java/javase/downloads/index.html. Follow the installation instructions for your operating system. It is recommended to always use the latest JDK update.
  2. Get and install the latest Eclipse Classic IDE 4.4 (Luna) stable stream build. You can find the package from http://download.eclipse.org/eclipse/downloads/. You can select freely the installation location for the package, e.g. under your home directory. Just unzip the package to install Eclipse.
  3. After the installation of Eclipse, check that your Eclipse is set to use the right Java Runtime Environment (JRE):
    • In Eclipse platform, open "Window - Preferences".
    • Open page “Java / Installed JREs”.
    • Set the JRE to point to the previously installed JDK 7.
  4. Install the Simantics Graph Compiler:
    • In Eclipse platform, open “Help / Install New Software...”.
    • Set the installation site to "http://www.simantics.org/update/utils" in the “Work with” field and press “Add...”. Give the installation site link a name when asked.
    • Select from the list the latest "Ontology development / Graph feature" and proceed with the installation. Restart Eclipse after the installation.
  5. Install the Subversive plug-in to the Eclipse platform:
    • In Eclipse platform, open “Help / Install New Software...”.
    • Select installation site "Kepler - http://download.eclipse.org/releases/kepler" to the “Work with” field from the preset list.
    • Click open the "Collaboration" folder and select from the list:
      • Subversive SVN Team Provider
      • Subversive SVN JDT Ignore Extensions
    and proceed with the installation. Restart Eclipse after the installation.
  6. After restarting Eclipse, open the SVN Repository Exploring perspective:
    • In Eclipse platform, open “Window / Open Perspective / Other...”.
    • Select SVN Repository Exploring and press “OK”. Eclipse should open the “Install Connectors” dialog.
    • Select latest “SVN Kit 1.x.y” and press “Finish”, and proceed with the installation. Restart Eclipse after the installation.

Install Simantics 1.15 Target Platform

  1. In Eclipse platform, activate the Plug-in Development perspective, either from the tab on the upper right corner of the Eclipse platform or from the “Window / Open Perspective / Other...” menu, and select Plug-in Development.
  2. Create a new general project in Eclipse by:
    • Selecting “File / New / Project...” menu item.
    • In the "Select a wizard", select “General / Project” and press “Next”.
    • Give the project a name, e.g. "Simantics_target" and press "Finish".
  3. Copy one of the following files into your system to some temporary location:
    The Simantics platform source code is available for THTH/Simantics Division registered members through these alternative target definitions (user name and password are asked during the installation, these are available at the THTH/Simantics Member Wiki):
  4. In Eclipse Package Explorer (the view on left side of the Eclipse platform):
    • Right-click your previously created project and select "Import..." from the context menu.
    • In Select wizard, select “General / File System”, and press "Next".
    • Select in the “From directory” the folder where the previously downloaded file(s) are located, and select the downloaded file(s) in the file list below. Press "Finish".
  5. Set the target platform for the development with Simantics:
    • In Eclipse platform, open “Window / Preferences”, and from there the “Plug-in Development / Target Platform” folder.
    • The new target definitions should be available in the list. Activate one of the following:
      • “Simantics 1.15” (for application development on Simantics platform)
      • “Simantics SDK 1.15” (for Simantics platform development and application development on Simantics platform)
    and confirm the target platform definition by pressing "Apply" and/or "OK". If you defined a Simantics SDK 1.15 target, you are asked for the username and the password.
    • Wait until Eclipse finishes downloading, this may take a while. After the download is completed, there should be several plug-ins starting with "org.simantics.*" in the Eclipse Plug-ins view (the view on the left side of Eclipse).
  6. Keep your platform up-to-date! Updating is as easy as reloading the target platform from Target Platform preference page:
    • In Eclipse platform, open “Window / Preferences”, and from there the “Plug-in Development / Target Platform” folder.
    • Select the active target platform, e.g. Simantics SDK 1.15, from the list and press "Reload".
    • Wait until the platform is updated.

Test Your Installation

Test your installation with the Simantics movie tutorial:

  1. Download Simantics movie tutorial plug-ins into your Eclipse workspace:
    • Get movie-tutorial.zip
    • In Eclipse platform, select “File / Import...” menu item.
    • In the "Select" dialog, select “General / Existing Projects into Workspace” and press “Next”.
    • Select the “Select archive file:” radio button and press “Browse” to find the downloaded movie-tutorial.zip.
    • Press “Select All” and “Finish”.
  2. Run movie.product:
    • From the Package Explorer view, open “org.simantics.movie.ui / Movie.product”.
    • From the Overview page of the opened product editor, press “Launch an Eclipse application”.

If you managed to start the movie product, your development platform should be operational.


Happy developing with Simantics!