Setting up your IDE and installing BMC Helix Innovation Studio SDK
Before you start with developing applications, you must install the BMC Helix Innovation Studio SDK and the components required to develop applications. For an overview of the steps to develop an application, see Setting-up-the-environment-to-develop-a-code-based-application.
The following video (4:20) demonstrates the list of components required to develop the application and how to setup the Integrated Development Environment (IDE).
The video shows an older version of BMC Helix Innovation Studio. Although there might be minor changes in the UI, the overall functionality remains the same.
The following table lists the different components and installers you need to set up the development environment:
Components and installers | Description |
---|---|
BMC Helix Innovation Studio Software Development Kit | |
Open Java Development Kit | |
BMC Helix Innovation Studio server | BMC Helix Innovation Studio server and database are installed on the BMC Helix Innovation Studio Developer Instance (sandbox systems). Click here to register and request a free BMC Helix Innovation Studio Developer Instance. |
Build system | |
Integrated Development Environment (IDE) (2018-12) | |
Required for BMC Helix Innovation Studio SDK | |
JavaScript runtime engine required for Grunt | |
Package manager for JavaScript | |
JavaScript task runner for running and debugging custom web applications |
Recommendations
- Use Google Chrome or Mozilla Firefox browser to access BMC Helix Innovation Studio.
If you are using Google Chrome, you can use Batarang - the AngularJS Extension. To download the tool, click Chrome webstore apps.
When working with REST APIs, you can use the Postman application.
To install OpenJDK 11.0.7
Download OpenJDK 11.0.7. See OpenJDK11.0.7.
- Extract the archive in a folder on your computer. For example, C:\Tools\Java\ jdk-11.0.7\.
- Create a JAVA_HOME environment variable pointing to C:\Tools\Java\ jdk-11.0.7.
To create the variable on Microsoft Windows:- Navigate to Start > Control Panel > System > Advanced System settings.
- In the System Properties, navigate to Advanced > Environment Variables.
- In System Variables, perform the following:
- Add <JDKInstallation> folder to JAVA_HOME variable.
For example, a typical value for the PATH variable can be:
C:\WINDOWS\system32;C:\WINDOWS;C:\Tools\Java\jdk11.0.7\ Add %JAVA_HOME%\bin to the PATH environment variable.
- Add <JDKInstallation> folder to JAVA_HOME variable.
To install Maven 3.6.3
Download and install Maven 3.6.3.
For more information, see archive.apache.org and download one of the following files:- (Windows) Download apache-maven-3.6.3-bin.zip.
- (UNIX) Download apache-maven-3.6.3-bin.tar.gz.
For more information, see Installing Apache Maven in the Maven documentation.
Create a MAVEN_OPTS environment variable and set it to -Xms512m -Xmx1024m.
For more information, see Configuring Apache Maven in the Maven documentation.
To install Eclipse 4.10 (2018-12)
Download and unzip Eclipse IDE for Java developers, 64-bit version (2018-12).
- Modify the eclipse.ini file to increase the memory used by Eclipse.
- Update the line with -Xms to -Xms512m
- Update the line with -Xmx to -Xmx2048m
- Download and install the AspectJ plug-in for Eclipse.
Download AJDT (AspectJ)
- In Eclipse, navigate to Help > Install New Software > Add and select Archive (downloaded from above location).
- Select Required Tools > Next > Finish.
To install AJDT M2E configurator in Eclipse, see https://archive.eclipse.org/technology/m2e/releases/1.5/1.5.0.20140606-0033/.
- In Eclipse, navigate to Window>Preferences > Java > Compiler, set the compiler compliance level to 11.
- In Eclipse, navigate to Window>Preferences > Java > Installed JREs, select the open jdk 11.
To install GitHub
The following procedures list the different ways to install GitHub:
- By using GitHub desktop
- By using the Git command line program
- Build issues due while installing dependencies
- Build issues due to Adapt changes
- Build fails with errors of cyclic dependencies in Angular
By using GitHub desktop
Install the desktop version of GitHub.
See GitHub.- After you install GitHub, add the command line git.exe in the Windows Path environment variable.
- Get the git.exe path. GitHub desktop is installed in the following folder:
C:\Users\<YourUserName>\AppData\Local\GitHubDesktop\app-<VersionNumber>\resources\app\git\cmd
<YourUserName> is your Windows login name and <VersionNumber> is the GitHub version installed.
For example, see the following image: - Navigate to Windows Explorer > This PC > Properties > Advanced System settings, and in the System Properties, navigate to Advanced > Environment Variables.
- In System Variables, edit the variable Path to add the path to the git.exe utility, and save the changes.
- Get the git.exe path. GitHub desktop is installed in the following folder:
Verify that git.exe is available by opening a Windows command prompt and entering the following command:git --version
The git.exe tool version is displayed as shown in the following image:
By using the Git command line program
Access the GitHub Downloads URL and select Windows.
- Cancel the download for the default git installer and from the UI select the 64-bit Git for Windows Portable option.
- After you run the executable file, the Git command line program is installed at the C:\git\PortableGit folder.
- Add the git.exe path in the Windows Path environment variable by using the following steps:
- Get the git.exe path from the C:\git\PortableGit\bin\ folder.
- Navigate to Windows Explorer > This PC > Properties > Advanced System settings and in System Properties, navigate to Advanced > Environment Variables.
- In System Variables, edit the variable Path to add the path to the utility git.exe, and save the changes.
- Get the git.exe path from the C:\git\PortableGit\bin\ folder.
Verify that git.exe is available by opening a Windows command prompt and entering the following command:
git --versionThe git.exe tool version is displayed as shown in the following image:
To install Node.js
Verify if the correct version of Node.js is installed by using the following command:
node --version- If you have installed a Node.js version earlier than 12.20.1, uninstall Node.js.
If you have installed Node.js by using Node Version Manager (nvm), use the following command to uninstall it:
nvm uninstall <version>- If you have installed Node.js directly, use your operating system OOTB functionality to uninstall it.
For example the Add/Remove Programs on Windows.
Install Node.js 12.20.01.
You can install Node.js by using Node Version Manager version 1.1.7 or by using Node.js installer.- Install Node Version Manager version 1.1.7
(Windows) See nvm-windows. For more information about versions, see nvm-windows releases.
(Mac OS/Linux) See nwm-macOS
Install Node.js 12.20.1 installer.
- (Windows) Use Windows Installer (.msi) or Windows Binary (.zip)
- (Mac OS) Use macOS Installer (.pkg) or macOS Binary (.tar.gz)
- (Linux) Use any the applicable binaries
- Install Node Version Manager version 1.1.7
Verify that the correct version of Node.js is running on your system by using the following command:
node --version
To install Yarn
Install Yarn 1.22.5.
Operation System
Use the installation file with extension
Windows
.msi
Linux
.tar
MAC
.tar.gz
Other
See the Yarn installation information.
Verify that the version of Yarn running on your system by using the following command:
yarn --version
To install Grunt
You can install Grunt tool for easy debugging of custom web applications. Grunt is installed and managed via the Node.js package manager. No additional installer is required for installing Grunt.
Install Grunt 1.3.2 command line interface by using the following command:
To download and install BMC Helix Innovation Studio SDK
- Download BMC Helix Platform SDK.
- Extract the sdk folder to a desired location (for example, C:\sdk) and add a system environment variable RX_SDK_HOME pointing to the sdk folder location.
Run the following command in the sdk lib folder:
mvn clean installFor example, if the sdk folder is located at C:\sdk, run the following commands:
cd C:\sdk\com.bmc.arsys.rx.sdk-22.1.08\lib
mvn clean install
To verify the development environment
You can have a quick check of installed software in the development environment by using commands.
The following table describes the commands with output examples. The output may vary on your system depending on the installed components.
Command | Output | Verification |
---|---|---|
java -version | openjdk version "11.0.7" 2020-04-14 | Verify that the JAVA_HOME and PATH parameters are set to correct locations. If not set correctly, set the locations manually:
|
mvn -version | Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) | Verify that the MAVEN_HOME, MAVEN_OPTS and PATH parameters are set to correct location. If not set correctly, set the locations manually:
|
node --version | v12.20.1 | Verify that the PATH parameter is set to correct location. If not set correctly, in the PATH parameter add "C:\BMCTools\nodeJS\" manually. |
set RX_SDK_HOME | RX_SDK_HOME=<sdk location>\com.bmc.arsys.rx.sdk-22.1.08 | Verify that the RX_SDK_HOME parameter is set to correct location. If not set correctly, set the location manually to <sdk location>\com.bmc.arsys.rx.sdk-22.1.08 |
yarn --version | 1.22.5 | Verify that the PATH parameter contains the location C:\Users\Administrator\AppData\Local\Yarn\bin |
grunt --version | v1.3.2 | Verify that the PATH parameter is set to correct location. If not set correctly, set the location manually to "C:\Users\Administrator\AppData\Roaming\npm" |
Troubleshooting
This section describes how to resolve issues that you might encounter when upgrading your applications or libraries from version 21.3.xx to 22.1.07 or earlier.
Build issues due while installing dependencies
The following errors are displayed when you upgrade your applications or libraries to version 22.1.06 or earlier:
- error sass@1.62.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0". Got "12.20.1"
error Found incompatible module.
To resolve the issue, perform the following steps:- Delete the node_modules folder and the yarn.lock file from the bundle/src/main/webapp/ location.
Add the following dependency to the resolutions section located at bundle/src/main/webapp/package.json.
"sass": "1.60.0"For example:
dependencies
"resolutions": {
...
"sass": "1.60.0"
},
- error ts-custom-error@3.3.1: The engine "node" is incompatible with this module. Expected version ">=14.0.0". Got "12.20.0"
error Found incompatible module.To resolve the issue, perform the following steps:- Delete the node_modules folder and the yarn.lock file from the bundle/src/main/webapp/ location.
Add the following dependency to the resolutions section located at bundle/src/main/webapp/package.json.
"ts-custom-error": "3.2.0"For example:
dependencies
"resolutions": {
...
"ts-custom-error": "3.2.0"
},
error tmp@0.2.3: The engine "node" is incompatible with this module. Expected version ">=14.14". Got "12.20.1"
To resolve the issue, add 0.2.1 tmp library to the resolutions section."resolutions": {
...
"tmp": "0.2.1"
},
Build issues due to Adapt changes
If you are using StackedChartType import from Adapt, for example import { StackedChartType } from '@bmc-ux/adapt-charts'; the build fails with the following error:
This issue occurs because the type name has changed from StackedChartType to AdaptStackedChartType.
Build fails with errors of cyclic dependencies in Angular
Make sure you refactor the code. For more information, see NG3003: Import cycles would need to be created to compile this component.