TechTip: Changing the JRE in iRAD

General
Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

IBM's Rational Application Developer (iRAD) is a great integrated development environment that allows you to perform end-to-end development of Java, J2EE, Web, and portal applications. In this TechTip, I will illustrate how you can easily switch your Java Runtime Environment (JRE).

Perhaps you want to take advantage of some of the new APIs introduced by the newest version of Java (Java 1.5). In order to change JREs, right-click on the current JRE, and click Configure, as shown in Figure 1 below:

http://www.mcpressonline.com/articles/images/2002/Switch%20JREV4--12010600.png

Figure 1: Right-click the JRE being used and select Configure.

When the Edit Library window is displayed, click the Alternate JRE radio button (Figure 2):

http://www.mcpressonline.com/articles/images/2002/Switch%20JREV4--12010601.png

Figure 2: Click Alternate JRE in the Edit Library window.

Click on Installed JREs to display the Preferences window, which lists all the currently available JREs. The one you are currently using will appear with a checkmark in the box next to it (Figure 3):

http://www.mcpressonline.com/articles/images/2002/Switch%20JREV4--12010602.png

Figure 3: The Preferences window displays a list of JREs.

Now click the Add button (shown in Figure 3) to display the Add JRE window (Figure 4):

http://www.mcpressonline.com/articles/images/2002/Switch%20JREV4--12010603.png

Figure 4: Add a JRE here.

Here, you specify the path to the JRE you want to use. When you're done, click OK to return to the Preferences window. The new JRE now shows up as MyJRE in Figure 5:

http://www.mcpressonline.com/articles/images/2002/Switch%20JREV4--12010604.png

Figure 5: The new JRE is now displayed in the Preferences window.

Select this JRE and click OK to exit. You can now run your program with the new JRE and take advantage of all the new APIs.

More Tips and Tricks

For a list of iRAD tips and tricks that you can use to make code development fun and easy, click on Help -> Tips and Tricks in the menu bar. Happy coding!

Chinwe Edeani is a software engineer in IBM, Rochester, MN. She joined IBM in 2004 after graduating from Michigan State University. She is now working in the Customer Solutions Test team. You can contact Chinwe at This email address is being protected from spambots. You need JavaScript enabled to view it..

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  •  

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: