Hello,
I am new to ofbiz and am having some trouble with installation. I installed the jdk on my machine but it seems like ofbiz is expecting everything to be in one place and its not there, here is the out from my install attempt: $ sudo ./ant run-install run Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk/lib/tools.jar Buildfile: build.xml ofbiz-init: build: [echo] [build] ========== Start Building (Compile) ========== ofbiz-init: dir-init: [mkdir] Created dir: /etc/ofbiz/runtime/logs/test-results [mkdir] Created dir: /etc/ofbiz/runtime/data/derby [mkdir] Created dir: /etc/ofbiz/runtime/data/hsql copy-derby-props: build: [echo] [build] ========== Start Building Framework (Compile) ========== init: prepare: [mkdir] Created dir: /etc/ofbiz/framework/start/build/classes [mkdir] Created dir: /etc/ofbiz/framework/start/build/lib classes: [javac16] Compiling 6 source files to /etc/ofbiz/framework/start/build/classes BUILD FAILED /etc/ofbiz/build.xml:183: The following error occurred while executing this line: /etc/ofbiz/framework/build.xml:148: The following error occurred while executing this line: /etc/ofbiz/macros.xml:27: The following error occurred while executing this line: /etc/ofbiz/framework/start/build.xml:37: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to "/usr/lib/jvm/java-6-openjdk/jre" Total time: 1 second anyone who could give me a bit an idea on how to solve this would be greatly appreciated. |
Le 31/01/2011 21:25, Kenneth G. Bice a écrit :
> Hello, > > I am new to ofbiz and am having some trouble with installation. > I installed the jdk on my machine but it seems like ofbiz is expecting > everything to be in one place and its not there, here is the out from my > install attempt: > > > $ sudo ./ant run-install run > Unable to locate tools.jar. Expected to find it in > /usr/lib/jvm/java-6-openjdk/lib/tools.jar > Buildfile: build.xml > you should try with the sun jdk. Cheers, -- Erwan de FERRIERES www.nereide.biz |
I just had a similar experience. I'm going to guess that you already had the
Open-JDK installed, but then later installed the Sun JDK. If not, install the Sun JDK. After you have installed the Sun JDK, you'll need to set the variable JAVA_HOME. You can do so by finding the location of the Java installation (usually /usr/lib/jvm/java, but mine was /usr/lib/jvm/java-1.6.10 [or something similar]). Then, open up the file */etc/bash.bashrc as root and append to the end: [by the way, if you have gedit, you can do this by typing sudo /etc/bash.bashrc in a terminal] * JAVA_HOME=/path/to/java/installation (actually put in your path here) export JAVA_HOME PATH=$PATH:$JAVA_HOME/bin export PATH Save, reboot your computer, and retry the installation. If you're using Ubuntu and installing thru xterm with the official JDK, expect the application to take about 16 minutes to compile. On Mon, Jan 31, 2011 at 2:31 PM, Erwan de FERRIERES < [hidden email]> wrote: > Le 31/01/2011 21:25, Kenneth G. Bice a écrit : > > Hello, >> >> I am new to ofbiz and am having some trouble with installation. >> I installed the jdk on my machine but it seems like ofbiz is expecting >> everything to be in one place and its not there, here is the out from my >> install attempt: >> >> >> $ sudo ./ant run-install run >> Unable to locate tools.jar. Expected to find it in >> /usr/lib/jvm/java-6-openjdk/lib/tools.jar >> Buildfile: build.xml >> >> > you should try with the sun jdk. > > Cheers, > > > -- > Erwan de FERRIERES > www.nereide.biz > -- Matthew Gonzales Sales Associate Remark Imaging http://www.remarkimaging.com p. 888-688-3336 c. 920-385-9289 f. 920-233-2478 e. [hidden email] |
Free forum by Nabble | Edit this page |