This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes JBoss multiple jre Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss multiple jre" Watch "JBoss multiple jre" New topic
Author

JBoss multiple jre

Rene Curth
Greenhorn

Joined: May 13, 2004
Posts: 11
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

Joined: Jul 20, 2005
Posts: 9912
    
158

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.


[My Blog] [JavaRanch Journal]
Rene Curth
Greenhorn

Joined: May 13, 2004
Posts: 11
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBoss multiple jre
 
Similar Threads
Eclipse is running in a JRE, but a JDK is required
IS 1.6 JRE Required
Axis2 (1.5 version) java2wsdl - error stating JAVA_HOME environment variable is not defined correctl
JBoss -5.0.0 installation fails
showing wrong jre