Installing JDK in Ubuntu and starting wildfly

Modified on Thu, 14 Mar 2024 at 12:25 PM

Details of Linux configuration needed to be carried out prior to deployment on server


                              Linux 3.13.0-74-generic x86_64
Distributor ID : Ubuntu
                              Description : Ubuntu 14.04.3 LTS


1) First you need to update your Ubuntu packages to latest version, to do that run following command.in terminal with root privileges
    apt-get update

2) To Install Java 1.79 use following command, you need to run these commands in terminal with root privileges. These will Install JDK 7.
    sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
    sudo apt-get install oracle-java7-installer


3) Now Disable headless mode, to do that open file "WILDFLY_HOME(path where wildfly is installed)/bin/standalone.conf" and replace value 'true' with 'false' for headless mode.

    headless = "True"


4) Change memory setting, as you have 8G of total physical memory you can allocate 6G to wildfly to do that open file "WILDFLY_HOME/bin/standalone.conf" and set memory.
To set 6G :  JAVA_OPTS=”-Xms6G –Xmx6G”

6) To allow other users to access your server Internally, replace 127.0.0.1 with 0.0.0.0 in file "WILDFLY_HOME/standalone/configuration/standalone.xml"

      <interface name="management">
          <inet-address value="${jboss.bind.address.management:0.0.0.0}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:0.0.0.0}"/>
</interface>
<!-- TODO - only show this if the jacorb subsystem is added -->
<interface name="unsecure">
<inet-address value="${jboss.bind.address.unsecure:0.0.0.0}"/>
</interface>


7) To start wildfly you need to go to path "WILDFLY_HOME/standalone/bin" and execute command "sh standalone.sh"


Note: This article is based on Smarten Version 5.x. This may or may not be relevant to the Smarten version you may be using.

Linux configuration ubuntu apt-get update sudo headless = "True" JAVA_OPTS 127.0.0.1 0.0.0.0 sh standalone.sh

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article