Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trouble getting off the ground with JBoss 5.1

 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm just downloaded and installed JBoss 5.1.0.GA for Mac 10.5.6. "java -version" resolves to 1.5.0_16. When I start my server, I'm getting this error in my stdout file ...



Anyone know what this means and how to resolve it? Thanks, - Dave
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you say "using against 1.5", what do you mean? How do I use against 1.6, which I have installed? - Dave
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:


 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

- Dave
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dave Alvarado wrote:Can I define "JAVA_HOME" in the jboss run.sh script,


Yes, you can do that. Infact in some of my local instances, i keep doing that or keep passing the correct JAVA_HOME through the command prompt while launching the server.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic