Installation Guide
Installing Red Hat CodeReady Studio
Abstract
Part I. Installation Guide for CodeReady Studio
This guide details steps to install, uninstall, and upgrade CodeReady Studio that you may have installed using different methods.
Prerequisites
CodeReady Studio 12.11 is supported for use with a range of operating systems, architectures, and Java Development Kit combinations; for a complete list, see Supported Configurations and Components on the Red Hat Customer Portal.
If you install CodeReady Studio on Windows in a folder accessible to all the users (example: C:\devstudio
), this CodeReady Studio instance can be used by all the users. However, if the main installation folder is not writable by a given user, any newly installed feature and update gets saved inside the user’s home directory.
Minimum hardware requirements
- 4 GB RAM (minimum 2 GB RAM)
- 2 GB hard disk space
Software requirements
- Install OpenJDK. Red Hat OpenJDK is recommended.
Installing OpenJDK 1.8.0 on Windows
To install OpenJDK 1.8.0 on Windows using the MSI-based installer:
- Download the MSI-based installer from: http://developers.redhat.com/products/openjdk/overview/.
- Run the installer and follow the on-screen instructions to install.
- To configure CodeReady Studio to use OpenJDK, follow the instructions at Working with JREs.
Installing OpenJDK 1.8.0 on RHEL
To install OpenJDK 1.8.0 on Red Hat Enterprise Linux:
All the commands in the following procedure must be run as the root user.
Register and subscribe the system by running the following command:
# subscription-manager register
- When prompted, enter your Red Hat Customer Portal username and password.
To find a suitable subscription, such as Developer Subscription, run the following command:
# subscription-manager list --available
This command lists the available subscriptions and details of the subscriptions. Note down the pool ID of the appropriate subscription.
To attach a subscription to your system, run the following command:
# subscription-manager attach --pool=<pool ID from previous command>
To install OpenJDK RPMs:
# yum install java-1.8.0-openjdk-devel
Install the java-1.8.0-openjdk-demo package for examples of Java applications and the java-1.8.0-openjdk-src package to debug your applications. Both packages are available from the Optional repository. Use the following command to enable that repository on your system:
# subscription-manager repos --enable=rhel-7-server-optional-rpms
Substitute the version number in the above command with 6
if you use Red Hat Enterprise Linux 6.
Use the following command to install the packages:
# yum install java-1.8.0-openjdk-src java-1.8.0-openjdk-demo
Chapter 1. Installing CodeReady Studio in Eclipse
CodeReady Studio for Eclipse packages the CodeReady Studio plug-ins for your existing Eclipse instance. You can either install CodeReady Studio from the Eclipse Marketplace when you are online or use the Update Site Zip
to install it when you are offline.
1.1. Installing CodeReady Studio in Eclipse when online
CodeReady Studio is available to install from Eclipse Marketplace when you are online.
If anytime before or during the installation, you are asked about selecting additional features to install, you may select Fuse Tooling to use the Fuse tooling features after the installation is complete.
Procedure
To install CodeReady Studio BYOE from Eclipse Marketplace, take the following steps:
- Start Eclipse SimRel 2018-09 GA.
- Click Help > Eclipse Marketplace, locate Red Hat CodeReady Studio 12.11 GA, and click Install.
- Follow the on-screen instructions to complete the installation process.
During the installation process, if you receive warnings about installing unsigned content, review the details of the content and if satisfied, click OK to continue with the installation.
After the installation is complete, you are prompted to restart Eclipse. Click Yes to restart immediately and No if you need to save any unsaved changes to open projects. Note that the IDE changes do not take effect until Eclipse is restarted.
1.2. Installing CodeReady Studio in Eclipse when offline
You need the Update Site Zip
to install CodeReady Studio in Eclipse in the offline mode. Alternatively, you can also use an installer downloaded on your system instead of the Update Site Zip
to install CodeReady Studio in Eclipse when Offline. Note that the Target Platform Zip
contains the features on which CodeReady Studio depends. It also contains the sources of all the included plugins. You can download the Target Platform Zip
from https://devstudio.redhat.com/12/stable/updates/.
- You must first be online to download the .zip file before proceeding to install CodeReady Studio in Eclipse in the offline mode.
- If anytime before or during the installation, you are asked about selecting additional features to install, you may select Fuse Tooling to use the Fuse tooling features after the installation is complete.
Procedure
To install CodeReady Studio in Eclipse in offline mode, take the following steps:
- Download the Red Hat CodeReady Studio 12.11 Update Site Zip from https://devstudio.redhat.com/12/stable/updates/.
- Start Eclipse SimRel 2018-09 GA.
- Click Help > Install New Software.
-
In the Work with field, enter the path of the
Update Site Zip
file. Alternatively, click Add and click Archive to locate the file. - From the table of components, select Red Hat CodeReady Studio 12 - Bring Your Own Eclipse and click Next.
- Follow the on-screen instructions to complete the installation process.
During the installation process, you may receive warnings about installing unsigned content. If this is the case, review the details of the content and if satisfied, click OK to continue with the installation.
After the installation is complete, you are prompted to restart Eclipse. Click Yes to restart immediately and No to save any unsaved changes to open projects. Note that the IDE changes do not take effect until Eclipse is restarted.
Chapter 2. Installing CodeReady Studio stand-alone using the Installer
CodeReady Studio stand-alone packages the CodeReady Studio plug-ins with Eclipse and dependent third-party plug-ins in an installer for all operating systems.
The installer provided to install CodeReady Studio stand-alone is available from a variety of sources, including the Red Hat Customer Portal.
If anytime before or during the installation, you are asked about selecting additional features to install, you may select Fuse Tooling to use the Fuse tooling features after the installation is complete.
Procedure
To install CodeReady Studio stand-alone, take the following steps:
- Download Red Hat CodeReady Studio 12.11 Stand-alone Installer from CodeReady Studio Software Downloads.
Start the installer:
$ cd /path/to/.jar $ java -jar devstudio-12.11.0.GA-installer-standalone.jar
Alternatively, you can start the installer by double-clicking the
.jar
file. On OS X systems, hold control and click the.jar
file, click Open, review the.jar
file details and if satisfied, click Open.- Follow the on-screen instructions to complete the installation process.
Chapter 3. Performing advanced installation tasks
This section describes steps to install CodeReady Studio using a script and to build the Red Hat CodeReady Studio installer from the source code.
3.1. Installing Red Hat CodeReady Studio using a script
Use the scripted method to install CodeReady Studio stand-alone using the GUI once and then a generated script for subsequent installations. This installation method enables simplified repeat installations or installations in bulk without stepping through the installer GUI for every installation.
The CodeReady Studio stand-alone installer is available from a variety of sources, including the Red Hat Customer Portal.
Procedure
To install CodeReady Studio by script, take the following steps:
- Download Red Hat CodeReady Studio 12.11 Stand-alone Installer from CodeReady Studio Software Downloads.
Start the installer:
$ cd /path/to/.jar $ java -jar devstudio-12.11.0.GA-installer-standalone.jar
-
Follow the on-screen instructions to complete the installation process. After the installation is complete, an
InstallConfigRecord.xml
file is generated in the CodeReady Studio installation directory. In the terminal window, enter the following command:
$ java -jar devstudio-12.11.0.GA-installer-standalone.jar \ /path/to/devstudio/InstallConfigRecord.xml
The generated InstallConfigRecord.xml
file is machine-specific and uses the Java Developer Kit and installation paths of your system. To use the InstallConfigRecord.xml
file for other operating systems, Java Developer Kits, or paths, you must manually modify the file.
3.2. Building the CodeReady Studio stand-alone Installer from source
Prerequisites
- Maven 3.3 or later, with Java 8 must be installed to build the installer from the source code. To obtain and configure Maven, see http://maven.apache.org/.
Procedure
To build the CodeReady Studio stand-alone installer from source, take the following steps:
Clone the git repository by running the command:
$ git clone https://github.com/jbdevstudio/jbdevstudio-product.git
Checkout the master branch by running the command:
$ git checkout master
- Build the installer by following the instructions in the jbdevstudio-product/README.adoc file.
The jbdevstudio-product/README.adoc
file is located in the extracted current folder at the highest level.
Building takes some time to complete, after which the devstudio-[version]-installer-standalone.jar
file will be located in the /path/to/jbdevstudio-product/installer/target
directory.
Chapter 4. Uninstalling CodeReady Studio
You may want to uninstall a specific version of CodeReady Studio if you have concluded development in one version, say 11.x, and you now want to install a newer version, say 12.x. However, you can have more than one version of Installer-installed CodeReady Studio or Eclipse-installed CodeReady Studio on your system, provided you have these versions located in different directories.
4.1. Uninstalling CodeReady Studio installed using the Installer
Procedure
To uninstall CodeReady Studio, take the following steps:
- Ensure that CodeReady Studio is not running.
- On the command line, navigate to path/to/CodeReady Studio/Uninstaller.
On the command line, type:
$ java -jar uninstaller.jar
In the IzPack Uninstaller dialog box:
- Click the Force the deletion of <path_to_CodeReady Studio_directory> check box, to remove the entire CodeReady Studio installation directory. If this is not selected, Red Hat CodeReady Studio will be uninstalled but some files will be left as is in the installation directory.
- Click Uninstall.
- After the progress bar shows Finished, click Quit to close the Uninstaller dialog box.
Figure 4.1. Uninstall CodeReady Studio
4.2. Uninstalling Red Hat CodeReady Studio installed in Eclipse
Procedure
CodeReady Studio can be uninstalled using the following steps regardless of whether it was installed via Eclipse Marketplace or the update .zip file.
To uninstall CodeReady Studio, take the following steps:
- Start Eclipse SimRel 2018-09 GA.
- Click Help > Eclipse Marketplace.
- In the Eclipse Marketplace window, Find field, type Red Hat CodeReady Studio and then click Go.
- Click Installed in the Red Hat CodeReady Studio <version> section.
Click the Update drop-down list to view the options available. Click Uninstall.
Figure 4.2. Uninstall Button
- In the Confirm Selected Features window, ensure that Red Hat CodeReady Studio <version> is selected and click Confirm.
Click Finish.
Figure 4.3. Confirm Selected Feature Deletion
- In the Software Updates dialog box, click Yes to restart Eclipse for the changes to take effect.
Chapter 5. Upgrading CodeReady Studio
Depending on your need, refer to the respective sections to upgrade CodeReady Studio.
5.1. Upgrading major versions of CodeReady Studio
Each major version of CodeReady Studio is based on a different version of Eclipse. As a result, it is not possible to update an older major version of CodeReady Studio to a newer major version. For example, it is not possible to update a devstudio 10.x installation to 11.x, nor is it possible to update a 11.x installation to 12.x. However, it is possible to use the workspaces created using CodeReady Studio 11.x with CodeReady Studio 12.x.
The following table details the version of Eclipse supported with each major version of Red Hat CodeReady Studio:
Red Hat CodeReady Studio Version | Base Eclipse Version |
---|---|
CodeReady Studio 12.11 | Eclipse SimRel 2019-03 GA |
CodeReady Studio 12.9 | Eclipse SimRel 2018-09 GA |
CodeReady Studio 12.0 | Eclipse 4.8 (Photon) |
CodeReady Studio 11.x | Eclipse 4.7 (Oxygen) |
Red Hat CodeReady Studio 10.x | Eclipse 4.6 (Neon) |
Red Hat CodeReady Studio 9.x | Eclipse 4.5 (Mars) |
5.2. Updating minor versions of Red Hat CodeReady Studio
You can update your Red Hat CodeReady Studio to the latest minor versions within the major release. For example, you can update your Red Hat CodeReady Studio 12.0 installation to 12.9.
Before updating, back up your workspace. In addition to your project files, your workspace contains metadata about customized settings and preferences for the IDE. To back up your workspace, either copy the workspace directory to a backup location, or save it as a compressed file.
You may be automatically notified by the IDE when the Red Hat CodeReady Studio 12.x update is available, depending on your IDE settings for automatic updates.
Procedure
Alternatively, use the following instructions to manually check for and apply the most recent Red Hat CodeReady Studio update:
- In the IDE, click Window > Preferences, expand Install/Update and click Available Software Sites.
- In the Available Software Sites table, ensure the URL https://devstudio.redhat.com/12/stable/updates/ is listed or, if not listed, add it.
- Close the Preferences window.
- Click Help > Check for Updates.
- For any Red Hat CodeReady Studio updates found, follow the on-screen instructions to apply the update.
During the update process, you may receive warnings about installing unsigned content. If this is the case, review the details of the content and if satisfied click OK to continue with the update.
After updating is complete, you are prompted to restart the IDE. Click Yes to restart immediately or No to save any unsaved changes to open projects. Note that IDE changes do not take effect until the IDE is restarted.
Chapter 6. Reporting issues from within Red Hat CodeReady Studio
Red Hat CodeReady Studio and JBoss Tools allow you to report issues as they are encountered from within the IDE. It is recommended that you report issues frequently and include as much detail as possible to help the development and testing teams replicate and fix the issue. When an error, related to the JBoss Tools plugins occurs, a notification displays in the lower right corner of the IDE. The notification outlines the error. You can either dismiss, send directly, or provide more details about the error.
You can also enable error reporting from: Preferences > General > Error Reporting. These menu options also allow you to adjust error reporting. If enabled, when you encounter a plugin related error, a pop-up notification describing the error will display. The user can either dismiss or send the error directly, or provide more details about the error. When submitting the report, you can optionally provide an email address. You will be contacted on the given email address in case more information about the error is required. If you do not enter an email address, the report will be anonymous.
Another way to report errors is by raising a ticket in JIRA. You must enter as much detail as possible in the JIRA ticket to help the team debug the error. You can attach the error log to the JIRAs submitted against each problem to provide context for the issue.