Pages

Google ads Horizontal

Wednesday, November 25, 2015

OFBIZ ADMIN USER CREATION (COMMAND LINE)

* To install : sudo ant run-install-seed
* Create admin user : sudo ant create-admin-user-login
* When prompted, enter the user login name “admin”
* Password will be “ofbiz”

OFBIZ SUDO ANT START NOT WORKING

Log error:
Incompatible minimum and maximum heap sizes specified
Go to your project folder and edit build.xml with code of under the below:
<property name="site.dir" value="../site"/> <property name="memory.initial.param" value="-Xms2048M"/> <property name="memory.max.param" value="-Xmx2048M"/> <property name="pos.memory.max.param" value="-Xmx2048M"/> <property name="memory.maxpermsize.param" value="-XX:MaxPermSize=2048m"/>

HIDE URL PORT NUMBER OF OFBIZ APPLICATION

To hide the url port number in ofBiz application follow instruction under the below:
* Open framework/base/config/ofbiz-containers.xml
* Find port number which you want to hide
* Replace with 443
My one is
<property name="port" value="443"/>
under
 <property name="https-connector" value="connector">

REMOVING UNNECESSARY CODE IN YOUR JOOMLA – TEMPLATE

To remove code from head
$doc = JFactory::getDocument();  
unset($this->_scripts[JURI::root(true).'/media/system/js/mootools-core.js']);
unset($this->_scripts[JURI::root(true).'/media/jui/js/jquery-migrate.min.js']);
unset($this->_scripts[JURI::root(true).'/media/jui/js/jquery-noconflict.js']); 
unset($this->_scripts[JURI::root(true).'/media/system/js/caption.js']); unset($this->_scripts[JURI::root(true).'/media/system/js/core.js']); unset($this->_scripts[JURI::root(true).'/media/system/js/tabs-state.js']); unset($this->_scripts[JURI::root(true).'/includes/js/joomla.javascript.js']);

if (!empty($this->_script['text/javascript'])){
unset($this->_script['text/javascript']);
}

How To Install Oracle Java on Ubuntu with Apt-Get

Installing Java with apt-get is easy. First, update the package index:
$ sudo apt-get update
The Oracle JDK is the official JDK; however, it is no longer provided by Oracle as a
default installation for Ubuntu. You can still install it using apt-get. To install 
any version,
first execute the following commands:
$ sudo apt-get install python-software-properties
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
Then, depending on the version you want to install, execute one of the following commands:

Oracle JDK 6

This is an old version but still in use.
$ sudo apt-get install oracle-java6-installer

Oracle JDK 7

This is the latest stable version.
$ sudo apt-get install oracle-java7-installer

Oracle JDK 8

This is a developer preview, the general release is scheduled for March 2014.
$ sudo apt-get install oracle-java8-installer

Managing Java (optional)

To do this, if there are multiple Java installations execute the following command:
$ sudo update-alternatives --config java
It will usually return something like this if you have 2 installations (if you have 
more, it will of course return more):
There are 2 choices for the alternative java (providing /usr/bin/java). Selection Path Priority Status ------------------------------------------------------------ * 0 /usr/lib/jvm/java-7-oracle/jre/bin/java 1062 auto mode 1 /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java 1061 manual mode 2 /usr/lib/jvm/java-7-oracle/jre/bin/java 1062 manual mode Press enter to keep the current choice[*], or type selection number: You can now choose the number to use as default. This can also be done for the Java  compiler (javac):
$ sudo update-alternatives --config javac
It is the same selection screen as the previous command and should be used in the same way. This command can be executed for all other commands which have different installations. In Java, this includes but is not limited to: keytool, javadoc and jarsigner.