Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set java version in JBoss 7?

Tags:

java

jboss

I've got machine which is using 2 versions of java(for eg. 6-th and 7-th). If I will run java -version, the system will say it's 6-th. Is there an approach to set another java version for JBoss only?

like image 547
Tony Avatar asked Apr 28 '14 11:04

Tony


People also ask

Does JBoss 7 support java8?

To run JBoss EAP 6 with Java 8 you will at least need EAP 6.4. 1+ (OpenJDK 8) or EAP 6.3. 4 (OracleJDK 8). Note that JBoss AS 7.1.1.GA will not work with Java 8.

How do I change my Java version?

In the Java Control Panel, click on the Java tab. Verify that the latest Java Runtime version is enabled by checking the Enabled box. Click OK in Java Control Panel window to confirm changes and close the window. Try to run same applet and verify it is now running using latest version of Java installed in your system.

Does JBoss need JDK or JRE?

The list of supported Java environments can be found at http://www.jboss.com/products/platforms/application/supportedconfigurations/. A Java Development Kit (JDK) is required for development, and a Java Runtime Environment (JRE) is required to run JBoss Enterprise Application Platform.

Does JBoss 7 support java7?

java - Jboss eap7. 0 supported with JDK 7 or 8 - Stack Overflow. Stack Overflow for Teams – Start collaborating and sharing organizational knowledge.


1 Answers

  • For Standalone server or localdev, change file standalone.conf
  • For domain control, change file domain.conf

in $JBOSS_HOME/bin

Change the following lines

#JAVA_HOME="/opt/java/jdk" → JAVA_HOME="/path/to/jdk"
#JAVA="" → JAVA="$JAVA_HOME/bin/java"
like image 184
Shimatsu Avatar answered Oct 24 '22 22:10

Shimatsu