Hi Everyone,
We have done the installation for Apache Ofbiz on Ubuntu 12.04 Server Struggling to start the ofbiz the following result is coming on screen... ############################## ./ant start Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk-amd64/lib/tools.jar Buildfile: /opt/apache-ofbiz/build.xml start: [java] Unable to access jarfile /opt/apache-ofbiz/ofbiz.jar [java] Java Result: 1 BUILD SUCCESSFUL Total time: 2 seconds ################################# Not able to set Java Environment location.... please help me to sort this out. Thanks Pushkar S. |
hi Pushkar,
I think you have installed JRE, please install and start OFBiz with JDK |
If your server already have JDK, switch to JDK before starting OFBiz.
See also: set-java-1-6-default-over-1-7-in-ubuntu-linux |
In reply to this post by Rong Nguyen
Hi Pushkar,
Install JDK 6 and set the jdk path in JAVA_HOME as one of the environment variables. Once it is done try executing the start command again. Sincerely, Ajinkya Gadewar DISCLAIMER: This e-mail (including any attachments) may contain confidential, proprietary or legally privileged information. It is intended solely for the use of the addressee(s) and it should not be used by anyone who is not the original intended recipient. If you are not the intended recipient of this e-mail, please delete it, destroy all copies and inform the sender by return e-mail. Its unauthorized use, disclosure, storage or copying is strictly prohibited. This e-mail may contain viruses. You must do your own virus check before opening the e-mail or the attachments. Buffer Tech Solutions Private Limited and it's group companies are not liable for any damage sustained. -----Original Message----- From: Rong Nguyen [mailto:[hidden email]] Sent: 05 May 2014 10:36 To: [hidden email] Subject: Re: Ofbiz Setup hi Pushkar, I think you have installed JRE, please install and start OFBiz with JDK ----- Rong Nguyen Olbius JSC Deliver highest business value http://www.olbius.com/ -- View this message in context: http://ofbiz.135035.n4.nabble.com/Ofbiz-Setup-tp4650883p4650884.html Sent from the OFBiz - User mailing list archive at Nabble.com. |
Hi Ajinkya,
Thanks for the response. JDK 1.6 is already installed, I am not able to set the JAVA_HOME environment. have added the line in /etc/environment for JAVA_HOME but still cant make it. please share steps for setting up JAVA_HOME environment. Thanks Pushkar S. On Mon, May 5, 2014 at 10:48 AM, Ajinkya Gadewar <[hidden email] > wrote: > Hi Pushkar, > > Install JDK 6 and set the jdk path in JAVA_HOME as one of the environment > variables. Once it is done try executing the start command again. > > Sincerely, > Ajinkya Gadewar > > DISCLAIMER: This e-mail (including any attachments) may contain > confidential, proprietary or legally privileged information. It is intended > solely for the use of the addressee(s) and it should not be used by anyone > who is not the original intended recipient. If you are not the intended > recipient of this e-mail, please delete it, destroy all copies and inform > the sender by return e-mail. Its unauthorized use, disclosure, storage or > copying is strictly prohibited. This e-mail may contain viruses. You must > do > your own virus check before opening the e-mail or the attachments. Buffer > Tech Solutions Private Limited and it's group companies are not liable for > any damage sustained. > > -----Original Message----- > From: Rong Nguyen [mailto:[hidden email]] > Sent: 05 May 2014 10:36 > To: [hidden email] > Subject: Re: Ofbiz Setup > > hi Pushkar, > I think you have installed JRE, please install and start OFBiz with JDK > > > > ----- > Rong Nguyen > > Olbius JSC > Deliver highest business value > http://www.olbius.com/ > -- > View this message in context: > http://ofbiz.135035.n4.nabble.com/Ofbiz-Setup-tp4650883p4650884.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > > |
Hi Pushkar,
To set JAVA_PATH, enter on command line or $HOME/<shell script file>: JAVA_HOME=<path of java folder(this should include bin files too)> export JAVA_HOME Ex: JAVA_HOME=/etc/java/jdk1.6.0_20 If you set this on command line it will work till the session lasts for the user. To make it permanent add this to shell script files. Sincerely, Ajinkya Gadewar DISCLAIMER: This e-mail (including any attachments) may contain confidential, proprietary or legally privileged information. It is intended solely for the use of the addressee(s) and it should not be used by anyone who is not the original intended recipient. If you are not the intended recipient of this e-mail, please delete it, destroy all copies and inform the sender by return e-mail. Its unauthorized use, disclosure, storage or copying is strictly prohibited. This e-mail may contain viruses. You must do your own virus check before opening the e-mail or the attachments. Buffer Tech Solutions Private Limited and it’s group companies are not liable for any damage sustained. -----Original Message----- From: pushkar sawant [mailto:[hidden email]] Sent: 05 May 2014 14:50 To: [hidden email] Subject: Re: Ofbiz Setup Hi Ajinkya, Thanks for the response. JDK 1.6 is already installed, I am not able to set the JAVA_HOME environment. have added the line in /etc/environment for JAVA_HOME but still cant make it. please share steps for setting up JAVA_HOME environment. Thanks Pushkar S. On Mon, May 5, 2014 at 10:48 AM, Ajinkya Gadewar <[hidden email] > wrote: > Hi Pushkar, > > Install JDK 6 and set the jdk path in JAVA_HOME as one of the environment > variables. Once it is done try executing the start command again. > > Sincerely, > Ajinkya Gadewar > > DISCLAIMER: This e-mail (including any attachments) may contain > confidential, proprietary or legally privileged information. It is intended > solely for the use of the addressee(s) and it should not be used by anyone > who is not the original intended recipient. If you are not the intended > recipient of this e-mail, please delete it, destroy all copies and inform > the sender by return e-mail. Its unauthorized use, disclosure, storage or > copying is strictly prohibited. This e-mail may contain viruses. You must > do > your own virus check before opening the e-mail or the attachments. Buffer > Tech Solutions Private Limited and it's group companies are not liable for > any damage sustained. > > -----Original Message----- > From: Rong Nguyen [mailto:[hidden email]] > Sent: 05 May 2014 10:36 > To: [hidden email] > Subject: Re: Ofbiz Setup > > hi Pushkar, > I think you have installed JRE, please install and start OFBiz with JDK > > > > ----- > Rong Nguyen > > Olbius JSC > Deliver highest business value > http://www.olbius.com/ > -- > View this message in context: > http://ofbiz.135035.n4.nabble.com/Ofbiz-Setup-tp4650883p4650884.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > > |
Free forum by Nabble | Edit this page |