How to set java version in JBoss 7? -


I have a machine that is using 2 versions of Java (like 6-degrees and 7-in). If I run java -version , then the system says that it is 6-th. Is there a way to set up another Java version for JBoss?

If you start jboss with standalone.bat (get the same lines for .sh) You can comment the following lines

  if "x% JAVA_HOME%" == "x" (Set Java = Java Echo JAVA_HOME has not been set, there may be unexpected results. Set JAVA_HOME in the directory of your local JDK to avoid this message.) Other (set "Java =% JAVA_HOME% \ bin \ java")  

Add more

< Pre> set "Java = & desired Path to the JDK; gt; \ bin \ java "

It's worked for me :)


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -