JBoss AS comes in two variants - one compiled with JDK-1.5 and other with JDK-6. You probably downloaded the JDK-6 version and are using against 1.5. This won't work. You will either have to download the JBoss for JDK-1.5 variant or upgrade the JDK to 1.6.
Dave Alvarado wrote:When you say "using against 1.5", what do you mean?
I mean you are running it using JDK 1.5, as you mentioned:
"java -version" resolves to 1.5.0_16
Dave Alvarado wrote:
How do I use against 1.6, which I have installed? - Dave
You will have to set JAVA_HOME to point it to the location where you have installed JDK 1.6. For example, if you have installed it at /home/me/jdk-1.6 then set it as:
Joined: Jul 02, 2008
Ok, let me throw you a real curve ball. I have another application server (Resin) installed on my machine that currently relies on Java 1.5, so I want to keep JAVA_HOME where it is. Can I define "JAVA_HOME" in the jboss run.sh script, or is there a more stable way to define Java as 1.6 for the JBoss instance only?