Changing port from Java system property

To specify a different port through Java System property when you encounter a port conflict issue because the same port is in use by another application on the host:

  1. Set the port to be used instead of the default port (61367).
    -Dhadrian.control.port=<port number you want to use instead of 61367>

    For non-windows platforms add the java system property in <SEAS install dir>/bin/startSeas.sh.

    For windows platform you need to add this java system property in <SEAS install dir>\bin\SEAS$$.lax file.

  2. Add java system property in the following files:
    For windows platforms
    <SEAS install dir>\bin\SEAS$$.lax file.
    Example:
    lax.nl.java.option.additional=-server -Xdump:java+heap:events=user 
    -Dhadrian.root.dir=.. -Dhadrian.control.port=<desired port> -Djava.security.krb5.conf=..\\conf
    krb5.conf
    For non-windows platforms
    <SEAS install dir>/bin/startSeas.sh.
    Example:
    Q=-Dhadrian.control.port=<port number you want to use instead of 61367>
     ...
    if test ! -s "${DIST_DIR}/conf/system/sb.enc"
    
                    then          
                            echo Starting ${app.prop.product.ea.name.short.server} as a background process...
                            echo Program output will be redirected to startSeas.out.
                            nohup "${JAVA_HOME}/bin/java" -server -Xmx1024m -cp ${CLASSPATH} ${K} ${L} ${M} ${Z} ${H} ${W} ${P} ${Q} -Dhadrian.root.dir=${DIST_DIR} 
                            -Djava.security.krb5.conf=${DIST_DIR}/conf/krb5.conf com.sterlingcommerce.hadrian.Main >startSeas.out &
                            sleep 5
                            ./cli.sh -l -o
    
                    else
                            echo Starting ${app.prop.product.ea.name.short.server} as a background process...
                            echo Program output will be redirected to startSeas.out.
                            nohup "${JAVA_HOME}/bin/java" -server -Xmx1024m -cp ${CLASSPATH} ${K} ${L} ${M} ${Z} ${H} ${W} ${P*}* ${Q} -Dhadrian.root.dir=${DIST_DIR} 
                            -Djava.security.krb5.conf=${DIST_DIR}/conf/krb5.conf com.sterlingcommerce.hadrian.Main >startSeas.out &
                    fi