1 Reply Latest reply on Dec 1, 2014 3:09 AM by Jay SenSharma

    JBOSS EAP 6 JDK or JRE

    Hannes Weninger Newbie

      Hello,

       

      I would have a question concerning which runtime environment JBOSS needs - > JRE or JDK.

      I read that JBoss EAP 6 needs the JDK but I can't believe it because why JBoss should need the developer tools in JDK.

      Does JBOSS need the JDK only for some special features?

       

      Thanks for helpful answers and all the best.

      Generic1

        • 1. Re: JBOSS EAP 6 JDK or JRE
          Jay SenSharma Master

          JRE Or JDK anything should be fine. You should not face any issue while using JRE to run the JBoss EAP6.  As EAP is a java based application server so you can run it with either JRE/JDK. Are youseeing any specific error/warn etc?

          Special case with Windows JRE refer to [1]

           

          jre\bin\server\
                  On Microsoft Windows platforms, the JDK includes both
                  the Java HotSpot(TM) Server VM and Java HotSpot Client VM.
                  However, the Java SE Runtime Environment for Microsoft Windows
                  platforms includes only the Java HotSpot Client VM. Those wishing
                  to use the Java HotSpot Server VM with the Java SE Runtime
                  Environment may copy the JDK's jre\bin\server folder to a
                  bin\server directory in the Java SE Runtime Environment. Software
                  vendors may redistribute the Java HotSpot Server VM with their
                  redistributions of the Java SE Runtime Environment.
          
          

           

           

          However recommended would be to use JDK instead of JRE because JBoss EAP 6 provides some scripts like  "$JBOSS_HOME/bin/jconsole.sh" which can be used to query JBoss EAP6 mbean server instance.  Similarly JDK provides some additional utilities like "$JAVA_HOME/bin/jstack" in generating thread dumps and "jmap"  etc which really helps in memory mapping for troubleshooting

           

          [1] http://www.oracle.com/technetwork/java/javase/jre-7-readme-430162.html

          1 of 1 people found this helpful