• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss multiple jre

 
Rene Curth
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,
I don't know exactly, if this is the right forum, so please don't hang me if it is not.

I do have a problem here.
I have a win 2000 server with some stable running java applications on it. The directive I got from above is: "Never change a winning team".
These applications are using jre 1.4 with a JAVA_HOME environment variable pointing on this jre.
I now have to integrate a JBoss 4.0.4 (EJB 3.0 - important) into this system, which is, so far I know, requiring java 1.5.
I did install a second jre (1.5) - so far so good.

The problem is, to install JBoss properly, that I have to set the JAVA_HOME to the java 1.5 directory. Please remember the above directive, so I can't. The variable has to be remaining unchanged. I think, I'm trapped.

Is it possible to tell JBoss to take the 1.5 version without changing the JAVA_HOME variable?

Any help is highly appreciated. Thanks in advance.

Rene
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is, to install JBoss properly, that I have to set the JAVA_HOME to the java 1.5 directory. Please remember the above directive, so I can't. The variable has to be remaining unchanged. I think, I'm trapped. Is it possible to tell JBoss to take the 1.5 version without changing the JAVA_HOME variable?


I believe, what you are trying to do is: Let only JBoss know that you are using Java5 and let all the other applications on your machine refer to the JAVA_HOME that has already been set as an environment variable.

If that's the case, then you will have to modify the run.bat file present in %JBOSS_HOME%/bin directory and add the following line:


i.e. point JBoss to use Java5. So whenever JBoss is started using this run.bat, it will point to Java5 and wont affect any other application in your system.
 
Rene Curth
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jaikiran,
thanks for your (remarkable) quick reaction. This sounds exactly like the answer, I was searching for. I will try this.

Thanks again.

Rene
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic