Installing IBM development package for Eclipse to develop EJB thin clients for applications on WebSphere application server

This post explains how to install IBM Development Package for Eclipse on a Windows machine.

It is easier to run a EJB thin client for a JEE application on a WebSphere application server using IBM JRE than using Oracle JRE.
But, as can be observed here, IBM Java SDK is not available as an independent download for Windows platform. It only comes bundled with some IBM product.

This post says,

Unfortunately you can get hold of the JDK only as part of another IBM product (say, Websphere or any Rational product) that you purchased. Our licensing agreement with Sun/Oracle forbids us from providing direct downloads of the IBM JDK on any platforms that Oracle/Sun also support (namely Windows and Linux). If you look at the Java downloads section of the developerWorks website, you’ll only find SDKs for AIX, z/OS and Linux on System p/z, since those are IBM owned platforms that Oracle doesn’t support.

This post says,

The IBM Java SDK for Windows is only available with an IBM product.

However, IBM does provide a ready-to-run Java development environment consisting of the Eclipse IDE and the IBM JRE. It is called IBM Development Package for Eclipse and can be downloaded from the developerWorks website. It is available for both 32-bit and 64-bit Windows on Intel. You will need an IBM Registration ID before you can download it.

There are two methods to download the package. I chose HTTP. The downloaded file was a zip archive. Once you have downloaded the archive follow the instructions below to install it on your Windows machine.

Unzip the archive file to some directory. Hereafter, we will refer to this directory as %BASE_DIR%.

The Developer Kit will then be located at %BASE_DIR%\IBM_DevelopmentPackage_for_Eclipse_Win_X86_32_4.0.0. You can rename the directory to a shorter and more convenient name. Hereafter, we will refer to this directory as %DEVKIT_HOME%.

Create a separate eclipse workspace directory for the developer kit.

Run %DEVKIT_HOME%\eclipseDevelopmentPackage\eclipse\eclipse.exe

You may get the following error depending upon the location where you have installed the developer kit.

image001

If you encounter this error,

  • Open the file %DEVKIT_HOME%\eclipseDevelopmentPackage\eclipse\eclipse.ini in a text editor.
  • Change the value of the ‘vm’ argument to path of the javaw executable bundled with the developer kit. In my case, this executable was present atĀ  %DEVKIT_HOME%\eclipseDevelopmentPackage\ibm_sdk70\jre\bin\javaw.exe [Note: you need to replaceĀ %DEVKIT_HOME% with the actual path of the developer kit’s home directory]
  • Save the eclipse.ini file

Now, run %DEVKIT_HOME%\eclipseDevelopmentPackage\eclipse\eclipse.exe again.

Eclipse will prompt you to enter the workspace directory. Specify the directory where you created the workspace earlier.

You are now ready to create a new project for your EJB thin client application.

Advertisements
This entry was posted in Java, Java EE and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s