Date Created: Sun 02-Dec-2007

Related Document Categories:

Get my WebSphere Application Server course here >> http://www.themiddlewareshop.com/products/


A suitable JVM could not be found. Please run the program again using the option -is:javahome <JAVA HOME DIR>

Essentially installer cannot find the correct version of Java in the standard directories of your system. Ensure correct environment variables are set to ensure correct JVM is found by the installer. If you are unsure which JVM you are using you can type java -version to get the JVM. If you do not have a JVM you can ensure your WebSphere JVM is used.

Run ./java -version (UNIX)
or java -version (Windows) from <OS_Type>\jdk\java\bin and <OS_Type>\jdk\java\jre\bin.

Windows
Here are some pointers for setting in windows:



SET Java home to the JDK or JRE as appropriate



Linux / UNIX:

Excerpt from: http://forum.java.sun.com/thread.jspa?threadID=567732

To add the bin directory of the jdk to your own PATH, for your own work, try the following inside a bash shell:

1) Change into your home directory - cd $HOME
2) Open the file ".bashrc". I recommend vi for simplicity here - vi .bashrc
3) Add the following line to the file. Replace the term <jdk directory> with the name of your java installation directory - export PATH=/usr/java/<jdk directory>/bin:$PATH
4) then save and exit vi - :wq
5) Use the "source" command to force linux to reload the .bashrc file which normally is read only when you log in each time - source .bashrc
6) You can test your PATH setting by checking for the version - java -version

Note that if you wish to set the PATH setting for all users of the system, you will want to log in as root in the bash shell and perform the same steps upon the file "/etc/profile" rather than ".bashrc" in the home directory. Careful when editing system files. It's a good idea to make a backup of the file first just in case.


Note: If you wish to set your JVM to be the same as your WebSphere installation you can use a command similar to the following. This is often useful if the above mentioned error is happening while using an IBM application with an IBM installer.

export JAVA_HOME=/apps/was/ws6/inst01/java/jre/bin

Get my WebSphere Application Server course here >> http://www.themiddlewareshop.com/products/


Steve Robinson - IBM Champion 2013

About Me

Steve Robinson has been working in IT for over 20 years and has provided solutions for many leading brands around the world. Steve specialises in JEE, DevOps and Thought Leadership.

In January 2013, I was awarded the prestigous 'IBM Champion' accolade.


  • Linked In
  • Twitter
  • About Me
  • Contact Me

Read my books?

IBM WebSphere Application Server 8.0 Administration Guide

IBM WebSphere Application Server 8.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

Courses

  • WebSphere Courses

Articles

WebSphere Categories

Other Categories