Permalink: www.outsystems.com/goto/howto-configure-integration-studio
Integration Studio is the Agile Platform tool you should use when making low level integrations. This tool allows you to connect with entities from other databases (through Service Center defined Database Connections) and also to define Actions whose operation is determined in "low level" Java or .NET code.
In this post I will guide you through what configurations are needed to allow you to correctly compile and develop Java or .NET source code in Integration Studio.
Where and what to configure
In the Edit -> Options Menu you will find a tab for each framework (J2EE and .NET) where you can configure the following options for each:
- Integrated Development Environment
- Compiler Tool
- Compiler Tool Options
- Java Home (Java only)
In order to be able to compile extensions with a certain Application Server type, you'll need to correctly configure the Compiler Tool (and possibly the options). In order to be able to Edit the Source code of an extension with a certain Application Server type, you'll need to correctly configure the Integrated Development Environment for that Application Server type.
Configuring .NET
What's required?
- Microsoft .NET Framework 2.0 (OutSystems 5.0-) or 3.5 (OutSystems 5.1 thru 8.0)
- Microsoft .NET Framework 4.0 (OutSystems 9.0+)
- Visual Studio 2008 or 2010 (OutSystems 6.0+ only). If using the Express version, install Visual Express C#.
With these installed the default options in Integration Studio should work. You can always use Reset Settings to replace them.
In case the defaults don't work use the following:
- Compiler Tool should point to your MSBuild.exe, usually found in "C:\Windows\Microsoft.NET\Framework\v<VERSION>\"
- Integrated Development Environment should point to your devenv.exe, by default located in "c:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"
- Compiler Tool Options: just leave the defaults, unless you know exactly what you are doing.
Configuring J2EE
What's required?
Java SDK is installed normally; for ANT and Eclipse, simply download the ZIP file and extract them to a folder of your choice.
Regarding Eclipse, if you are using Windows Vista or 7 and have UAC enabled (the default) unzip eclipse to a folder outside "Program Files" - this will avoid privileges problems when writing to C:\Program Files\.
Suggestion: create a "C:\opt" folder and put both ANT and Eclipse in it (C:\opt\apache-ant-1.8.4 and C:\opt\eclipse).
To configure ANT and JAVA for Eclipse you need to create system environment variables for their installation paths.
The variables that need to be created are JAVA_HOME and ANT_HOME; for example, your JAVA_HOME could have a value of C:\Program Files\Java\jdk1.6.0_45 and your ANT_HOME could have a value of C:\opt\apache-ant-1.8.4.
After setting the environment variables, you need to perform the following configurations in Integration Studio (Edit -> Options):
- Integrated Development Environment: path to your eclipse.exe file
- Compiler Tool: path to the ant.bat script inside ANT_HOME/bin/
- Compiler Tool Options: you shouldn't need to fill this in
- Java Home: path to the JAVA_HOME directory.
Now you should be able to build .NET and Java extensions.
Happy Integrations !
If you have any questions related to this topic, feel free to ask them.
Best regards,
Ricardo Silva
What if I don't need Java because I am not writing Java extensions? Integration studio tells me that options are not correctly defined and asks me to setup up options for java environment. But I don't have cause I don't use and I don't want to install it.