Installation Guide
Installing Red Hat JBoss Developer Studio
Abstract
Chapter 1. Introducing JBoss Developer Studio Installation Options Copy linkLink copied to clipboard!
JBoss Developer Studio can be installed in a variety of ways. Depending on your circumstance, use one of the following installation methods:
Chapter 2. Understanding JBoss Developer Studio Installation Prerequisites Copy linkLink copied to clipboard!
2.1. Hardware and Software Requirements Copy linkLink copied to clipboard!
JBoss Developer Studio 10.4 is supported for use with a range of operating system, architecture, and Java developer kit combinations; for a complete list, see https://access.redhat.com/articles/427493 on the Red Hat Customer Portal.
Following are the prerequisites for installing JBoss Developer Studio:
Minimum hardware requirements:
- 4 GB RAM (minimum 2 GB RAM)
- 2 GB hard disk space
Software requirements:
- Install JDK 8 (Red Hat OpenJDK is recommended)
2.2. Installing OpenJDK 8 Copy linkLink copied to clipboard!
Unless you already have Java 8 installed on your system, use the OpenJDK distribution provided by Red Hat. This section describes how to install OpenJDK by Red Hat on Microsoft Windows and Red Hat Enterprise Linux.
2.2.1. Installing OpenJDK on Microsoft Windows Copy linkLink copied to clipboard!
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 JBoss Developer Studio to use OpenJDK, follow the instructions at Working with JREs.
2.2.2. Installing OpenJDK on Red Hat Enterprise Linux Copy linkLink copied to clipboard!
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
# subscription-manager register
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - When prompted, enter your Red Hat Customer Portal user name and password.
To find a suitable subscription, such as Developer Subscription, run the following command:
subscription-manager list --available
# subscription-manager list --available
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 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>
# subscription-manager attach --pool=<pool id from previous command>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow To install OpenJDK RPMs:
yum install java-1.8.0-openjdk-devel
# yum install java-1.8.0-openjdk-devel
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
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
# 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
# yum install java-1.8.0-openjdk-src java-1.8.0-openjdk-demo
Chapter 3. Installing JBoss Developer Studio in Eclipse Copy linkLink copied to clipboard!
JBoss Developer Studio for Eclipse packages the JBoss Developer Studio plug-ins for your existing Eclipse instance. You can either install JBoss Developer Studio from the Eclipse Marketplace when you are online or use the Update Site Zip
to install it when you are offline.
3.1. Installing JBoss Developer Studio in Eclipse when Online Copy linkLink copied to clipboard!
JBoss Developer Studio is available to install from Eclipse Marketplace when you are online.
To install JBoss Developer Studio BYOE from Eclipse Marketplace:
- Start Eclipse Neon.
- Click Help → Eclipse Marketplace, locate Red Hat JBoss Developer Studio 10.4 GA, and click Install.
- Follow the on-screen instructions to complete the installation process.
If you come across the Install Remediation Page window, click Update my installation to be compatible with the items being installed and click Next. This is a known issue in JBoss Developer Studio 10.4. It occurs because Eclipse includes an older version (1.7.0) of the org.eclipse.m2e.feature pulgin that JBoss Developer Studio depends on. As a workaround, the provisioning platform (p2) breaks the install definition into smaller pieces to allow the org.eclipse.m2e.feature plugin to be updated to 1.7.1.
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.
Once 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 IDE changes do not take effect until Eclipse is restarted.
3.2. Installing JBoss Developer Studio in Eclipse when Offline Copy linkLink copied to clipboard!
You need the Update Site Zip
to install JBoss Developer 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 JBoss Developer Studio in Eclipse when Offline.
You must first be online to download the .zip file before proceeding to install JBoss Developer Studio in Eclipse in the offline mode.
To install JBoss Developer Studio in Eclipse in offline mode:
- Download the Red Hat JBoss Developer Studio 10.4 Update Site Zip from https://devstudio.redhat.com/10.0/stable/updates/.
- Start Eclipse Neon.
- 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 JBoss Developer Studio 10 - Bring Your Own Eclipse and click Next.
- Follow the on-screen instructions to complete the installation process.
If you come across the Install Remediation Page window, click Update my installation to be compatible with the items being installed and click Next. This is a known issue in JBoss Developer Studio 10.4. It occurs because Eclipse includes an older version (1.7.0) of the org.eclipse.m2e.feature pulgin that JBoss Developer Studio depends on. As a workaround, the provisioning platform (p2) breaks the install definition into smaller pieces to allow the org.eclipse.m2e.feature plugin to be updated to 1.7.1.
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.
Once 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 4. Installing JBoss Developer Studio Using the Installer Copy linkLink copied to clipboard!
JBoss Developer Studio stand-alone packages the JBoss Developer Studio plug-ins with Eclipse and dependent third-party plug-ins in an installer for all operating systems.
4.1. Installing JBoss Developer Studio Stand-alone Copy linkLink copied to clipboard!
The installer provided to install JBoss Developer Studio stand-alone is available from a variety of sources, including the Red Hat Customer Portal.
To install JBoss Developer Studio stand-alone:
- Download Red Hat JBoss Developer Studio 10.4 Stand-alone Installer from JBoss Developer Studio Software Downloads.
Start the installer:
cd /path/to/.jar java -jar devstudio-10.4.0.GA-installer-standalone.jar
$ cd /path/to/.jar $ java -jar devstudio-10.4.0.GA-installer-standalone.jar
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 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.
4.2. Installing JBoss Developer Studio and Red Hat JBoss EAP Copy linkLink copied to clipboard!
A single installer is provided for both JBoss Developer Studio stand-alone and Red Hat JBoss Enterprise Application Platform (JBoss EAP). A specific JBoss EAP version is packaged in the installer. For details of the JBoss EAP version, see https://access.redhat.com/articles/427493. This installer is available from a variety of sources, including the Red Hat Customer Portal.
To install JBoss Developer Studio stand-alone and JBoss EAP:
- Download Red Hat JBoss Developer Studio 10.4 Installer with EAP from JBoss Developer Studio Software Downloads.
Start the installer:
cd /path/to/.jar java -jar devstudio-10.4.0.GA-installer-eap.jar
$ cd /path/to/.jar $ java -jar devstudio-10.4.0.GA-installer-eap.jar
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 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.- In the Introduction Step 1 of 9 window, read the information about the installer and click Next.
- In the End User License Agreement Step 2 of 9 window, read the agreement and click I accept the terms of this license agreement and click Next.
- In the Select Target Folder Step 3 of 9 window, click Browse, select the installation path, and click Next.
- In the Warning dialog box, click Yes
- In the Select Java VM Step 4 of 9 window, Default Java VM is selected by default. Ensure that the disabled text field contains the path of the Java developer kit you want to use. This is based on the default Java developer kit of your system. To change the specified Java developer kit, click Specific Java VM and click Browse to locate the Java developer kit. When the text field shows the correct Java developer kit path, click Next.
In the Select Platforms and Servers Step 5 of 9 window, Yes, and have it ready for use in Red Hat JBoss Developer Studio is selected by default. Alternatively, to add a location:
- Click Add to add locations that you want to be scanned recursively to locate platforms and servers.
- In the Add Location window, click Browse to select the location path.
- Click the Scan every start check box to scan the specified path for new application servers each time JBoss Developer Studio starts.
- Click OK.
- In the Select Platforms and Servers Step 5 of 9 window, click Next.
- In the Summary Information Step 6 of 9 window, review the installation details and click Next.
- The Installation Step 7 of 9 window shows the progress of the installation. When the Pack installation progress bar shows Finished, click Next.
- In the Setup Shortcuts Step 8 of 9 window, click the relevant check box to create shortcuts and click Next.
- In the Finish Step 9 of 9 window, the Run Red Hat JBoss Developer Studio after installation check box is selected by default. Click Done.
- In the Eclipse Launcher window, Workspace field, click Browse to select the directory where JBoss Developer Studio will store its preferences and development artifacts. Click OK.
- In the Red Hat JBoss Developer Studio Usage window, click Yes to allow Red Hat Inc. to receive usage statistics for the installed JBoss Developer Studio instance or click No, as required.
This additional installer option installs JBoss EAP in a subdirectory of the JBoss Developer Studio installation and generates a complete default server definition within the IDE with which to manage the JBoss EAP instance and deployed applications.
Chapter 5. Installing JBoss Developer Studio through Red Hat Development Suite Copy linkLink copied to clipboard!
You can install JBoss Developer Studio as part of Red Hat Development Suite on 64-bit Microsoft Windows and macOS.
The Red Hat Development Suite Installer installs the following components:
- OpenJDK
- Red Hat JBoss Developer Studio
- Cygwin
- Red Hat Container Development Kit
- Kompose
- VirtualBox
For details of the components installed through Red Hat Development Suite, see Component Details in the Red Hat Development Suite Installation Guide.
For instructions on installing Red Hat Development Suite, see the Red Hat Development Suite Installation Guide.
Chapter 6. Installing JBoss Developer Studio Using RPM Copy linkLink copied to clipboard!
On Red Hat Enterprise Linux 7.2 and higher, JBoss Developer Studio can be installed using the standard package management system. RPM packages that use the Software Collections format are provided in the rh-eclipse46-devstudio-stable-10.x repository. This section explains how to enable that repository and install JBoss Developer Studio from RPM packages.
The RPM package method for installing JBoss Developer Studio is being released as a Technology Preview for this JBoss Developer Studio 10.4 release. For information on support for features released as Technology Preview, see Technology Preview Features Support Scope.
Installation of third-party plugins, that are not included in Red Hat Central, may corrupt JBoss Developer Studio. If you have installed any plugin in JBoss Developer Studio from an Update Site, including Red Hat Central, we highly recommend starting JBoss Developer Studio RPM by running the following commands:
scl enable rh-eclipse46 bash cd /opt/rh/rh-eclipse46/root/usr/lib64/eclipse/ ./eclipse -clean
$ scl enable rh-eclipse46 bash
$ cd /opt/rh/rh-eclipse46/root/usr/lib64/eclipse/
$ ./eclipse -clean
If an installed plugin corrupts the JBoss Developer Studio istance, the only way to fix this issue is to delete the ~/.eclipse
directory and then restart JBoss Developer Studio.
Prerequisites
- Register your Red Hat Enterprise Linux system. For instructions on registering your system, see How to register and subscribe a system to the Red Hat Customer Portal using Red Hat Subscription-Manager.
- Enable the rhel-server-rhscl-7-rpms repository. For instructions on enabling the repository, see Getting Access to Red Hat Software Collections.
To install JBoss Developer Studio using the RPM package:
As root, create the
/etc/yum.repos.d/rh-eclipse46-devstudio-stable-10_x.repo
file, and then add the following content to it:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Run the following command to install product signing (GPG) key:
rpm --import "https://www.redhat.com/security/data/a5787476.txt"
# rpm --import "https://www.redhat.com/security/data/a5787476.txt"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteFor a list of GPG keys used to automatically verify Red Hat software updates, see https://access.redhat.com/security/team/key.
Run the following command to install JBoss Developer Studio and all the debendencies:
yum install rh-eclipse46-devstudio
# yum install rh-eclipse46-devstudio
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Chapter 7. Performing Advanced Installation Tasks Copy linkLink copied to clipboard!
This section describes how to install JBoss Developer Studio using a script and how to build the JBoss Developer Studio installer from source code.
7.1. Installing JBoss Developer Studio Using a Script Copy linkLink copied to clipboard!
Use the scripted method to install JBoss Developer 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 JBoss Developer Studio stand-alone installer is available from a variety of sources, including the Red Hat Customer Portal.
To install JBoss Developer Studio by script:
- Download Red Hat JBoss Developer Studio 10.4 Stand-alone Installer from JBoss Developer Studio Software Downloads.
Start the installer:
cd /path/to/.jar java -jar devstudio-10.4.0.GA-installer-standalone.jar
$ cd /path/to/.jar $ java -jar devstudio-10.4.0.GA-installer-standalone.jar
Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
Follow the on-screen instructions to complete the installation process. After the installation is complete, an
InstallConfigRecord.xml
file is generated in the JBoss Developer Studio installation directory. In the terminal window, enter the following command:
java -jar devstudio-10.4.0.GA-installer-standalone.jar \ /path/to/devstudio/InstallConfigRecord.xml
$ java -jar devstudio-10.4.0.GA-installer-standalone.jar \ /path/to/devstudio/InstallConfigRecord.xml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
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.
7.2. Building the JBoss Developer Studio Stand-alone Installer from Source Copy linkLink copied to clipboard!
Prerequisite
- Maven 3.2 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/.
To build the JBoss Developer Studio stand-alone installer from source:
Clone the git repository by running the command:
git clone https://github.com/jbdevstudio/jbdevstudio-product.git
$ git clone https://github.com/jbdevstudio/jbdevstudio-product.git
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Checkout branch jbosstools-4.4.x by running the command:
git checkout jbosstools-4.4.x
$ git checkout jbosstools-4.4.x
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 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 8. Uninstalling JBoss Developer Studio Copy linkLink copied to clipboard!
You may want to uninstall a specific version of JBoss Developer Studio if you have concluded development in one version, say 9.x, and you now want to install a newer version, say 10.x. However, you can have more than one version of Installer-installed JBoss Developer Studio or Eclipse-installed JBoss Developer Studio on your system, provided you have these versions located in different directories.
You can not have more than one version of RPM-installed JBoss Developer Studio on the same system.
There are three ways to uninstall JBoss Developer Studio, depending on how you installed it. The following sections describe the three methods:
8.1. Uninstalling JBoss Developer Studio Installed Using the Installer Copy linkLink copied to clipboard!
To uninstall JBoss Developer Studio:
- Ensure that JBoss Developer Studio is not running.
- On the command line, navigate to path/to/JBoss Developer Studio/Uninstaller.
On the command line, type:
java -jar uninstaller.jar
$ java -jar uninstaller.jar
Copy to Clipboard Copied! Toggle word wrap Toggle overflow In the IzPack Uninstaller dialog box:
- Click the Force the deletion of <path_to_JBoss Developer Studio_directory> check box, to remove the entire JBoss Developer Studio installation directory. If this is not selected, JBoss Developer 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 8.1. Uninstall JBoss Developer Studio
8.2. Uninstalling JBoss Developer Studio Installed in Eclipse Copy linkLink copied to clipboard!
JBoss Developer Studio can be uninstalled using the following steps regardless of whether it was installed via Eclipse Marketplace or the update .zip file.
To uninstall JBoss Developer Studio:
- Start Eclipse Neon.
- Click Help > Eclipse Marketplace.
-
In the Eclipse Marketplace window, Find field, type
Red Hat JBoss Developer Studio
and then click Go. Click Installed in the Red Hat JBoss Developer Studio <version> section. This will show the Uninstall button.
Figure 8.2. Uninstall Button
- Click Uninstall.
- In the Confirm Selected Features window, ensure that Red Hat JBoss Developer Studio <version> is selected.
Click Finish.
Figure 8.3. Confirm Selected Feature Deletion
- In the Software Updates dialog box, click Yes to restart Eclipse for the changes to take effect.
8.3. Uninstalling JBoss Developer Studio Installed Using RPM Copy linkLink copied to clipboard!
To uninstall JBoss Developer Studio completely, including Eclipse and the included plugins, use the following command:
sudo yum remove rh-eclipse46 *
$ sudo yum remove rh-eclipse46 *
To uninstall only JBoss Developer Studio and leave Eclipse and other plugins as is, use the following command:
sudo yum remove rh-eclipse46-devstudio
$ sudo yum remove rh-eclipse46-devstudio
Chapter 9. Upgrading JBoss Developer Studio Copy linkLink copied to clipboard!
Depending on your need, refer to the following sections to upgrade JBoss Developer Studio:
9.1. Upgrading Major Versions of JBoss Developer Studio Copy linkLink copied to clipboard!
Each major version of JBoss Developer Studio is based on a different version of Eclipse. As a result, it is not possible to update an older major version of JBoss Developer Studio to a newer major version. For example, it is not possible to update a devstudio 8.x installation to 9.x, nor is it possible to update a 9.x installation to 10.x. However, it is possible to use the workspaces created using JBoss Developer Studio 9.x with JBoss Developer Studio 10.x.
If you have installed JBoss Developer Studio using the RPM package, you can also upgrade from one major version to another. Installation using RPM uninstalls and then re-installs the newest versions of JBoss Developer Studio and Eclipse. For details to update JBoss Developer Studio installed using the RPM package, refer to Section 9.3, “Updating JBoss Developer Studio Installed Using RPM”.
The following table details the version of Eclipse supported with each major version of JBoss Developer Studio:
JBoss Developer Studio Version | Base Eclipse Version |
---|---|
JBoss Developer Studio 10.x | Eclipse Neon (4.6) |
JBoss Developer Studio 9.x | Eclipse Mars (4.5) |
JBoss Developer Studio 8.x | Eclipse Luna (4.4) |
JBoss Developer Studio 7.x | Eclipse Kepler (4.3) |
JBoss Developer Studio 6.x | Eclipse Juno (4.2) |
9.2. Updating Minor Versions of JBoss Developer Studio Copy linkLink copied to clipboard!
You can update your JBoss Developer Studio to the latest minor versions within the major release. For example, you can update your JBoss Developer Studio 10.3 installation to 10.4.
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 JBoss Developer Studio 10.y update is available, depending on your IDE settings for automatic updates.
Alternatively, use the following instructions to manually check for and apply the most recent JBoss Developer 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/10.0/stable/updates/ is listed or, if not listed, add it.
- Close the Preferences window.
- Click Help > Check for Updates.
- For any JBoss Developer 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.
Once 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.
9.3. Updating JBoss Developer Studio Installed Using RPM Copy linkLink copied to clipboard!
If you have installed JBoss Developer Studio using the RPM package, you must update using your package manager (example: yum update) and not look for automatic updates. To update JBoss Developer Studio:
Run the command:
yum update "rh-eclipse46*"
$ yum update "rh-eclipse46*"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Run the command:
yum update rh-java-common-google-gson
$ yum update rh-java-common-google-gson
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteYou must update rh-java-common-google-gson due to a known issue in the RPM specification.
Chapter 10. Reporting Issues from within JBoss Developer Studio Copy linkLink copied to clipboard!
Red Hat JBoss Developer Studio and JBoss Tools allow users to report issues from within the IDE as they are encountered. It is recommended that users report issues frequently and include as much detail as possible to help the development and testing teams replicate and fix the issue. The Report Problem wizard creates a zip file containing the relevant IDE log files. This zip file can be attached to the JIRAs submitted against each problem to provide context for the issue.
- Click Help and then click Report Problem.
- The Log file name field contains the zipped log files as a default. Click Browse to select a different log file to attach to the JIRA.
In the Problem Description field, outline details about the problem, such as:
- What you wanted to do with JBoss Developer Studio.
- What steps you followed to arrive at the problem or error message.
- Any other noteworthy information about the environment or any unsupported add-ons or plug-ins in use.
- Optionally, in the E-Mail field, add your e-mail address to be potentially contacted in the future about the issue.
- Click OK to submit the problem report.
You can also enable error reporting from: Preferences → General → Error Reporting. If enabled, when you encounter a plugin related error, a pop-up notification describing the error will appear. The user can either dismiss or send the error directly, or provide more details about the error. You can optionally provide your e-mail ID to be contacted for more details on the error.