The Apache OFBiz project is an Open Source framework for building enterprise automation applications on the Java platform. OFBiz has been used to build many business applications, but until now there wasn't a comprehensive beginner's tutorial for developers wanting to use the platform. Now go into the 'ofbiz' directory and run 'gradlew' (Windows), or './gradlew' (Linux/Unix/OSX). It will compile all modules and leave you an executable jar (ofbiz.jar) in the 'ofbiz/build/libs' directory.
Hello all, I do not get OFBiz istalled on my Windows 10 computer. I have tried any combination I could come up with.
Different loading locations. All currently available Java versions from Oracle. Nothing seem to work. I am not a programmer. What I did for example is: OFBiz to C: apache-ofbiz-16.11.03 Java to C: Program Files Java jdk1.8.0151 and C: Program Files Java jre1.8.0151 I used the commands gradlew cleanAll loadDefault or gradlew loadDefault ofbiz and I tried to change locations for OFBiz and Java. In addition, I tried the latest version of Java.
All I am getting is: C: apache-ofbiz-16.11.03gradlew cleanAll loadDefault:clean:cleanAnt:cleanCatalina:cleanData:cleanDownloads:cleanEclipseClasspath UP-TO-DATE:cleanEclipseJdt UP-TO-DATE:cleanEclipseProject UP-TO-DATE:cleanEclipse UP-TO-DATE:cleanFooterFiles:cleanGradle:cleanIndexes:cleanLogs:cleanOutput:cleanTempfiles:cleanUploads:cleanXtra:cleanAll:compileJava Note: Some input files use unchecked or unsafe operations. Hi Christian, Did you try setting environment variables for JAVAHOME and OFBIZHOME?
Follow the instructions in the above to set: JAVAHOME = C: Program Files Java jdk1.8.0151 OFBIZHOME = C: apache-ofbiz-16.11.03 Make sure the bin folder is in the root of C: Program Files Java jdk1.8.0151. Make sure the application, framework, etc. Folders are in the root of C: apache-ofbiz-16.11.03. Then try recompiling.Tim -Original Message- From: Christian Vetterli mailto: Sent: Friday, December 22, 2017 8:59 AM To: Subject: Cannot install apache-ofbiz-16.11.03 on windows 10 Hello all, I do not get OFBiz istalled on my Windows 10 computer.
I have tried any combination I could come up with. Different loading locations. All currently available Java versions from Oracle. Nothing seem to work. I am not a programmer. What I did for example is: OFBiz to C: apache-ofbiz-16.11.03 Java to C: Program Files Java jdk1.8.0151 and C: Program Files Java jre1.8.0151 I used the commands gradlew cleanAll loadDefault or gradlew loadDefault ofbiz and I tried to change locations for OFBiz and Java.
In addition, I tried the latest version of Java. All I am getting is: C: apache-ofbiz-16.11.03gradlew cleanAll loadDefault:clean:cleanAnt:cleanCatalina:cleanData:cleanDownloads:cleanEclipseClasspath UP-TO-DATE:cleanEclipseJdt UP-TO-DATE:cleanEclipseProject UP-TO-DATE:cleanEclipse UP-TO-DATE:cleanFooterFiles:cleanGradle:cleanIndexes:cleanLogs:cleanOutput:cleanTempfiles:cleanUploads:cleanXtra:cleanAll:compileJava Note: Some input files use unchecked or unsafe operations.
That should be: JAVAHOME = C: Program Files Java jdk1.8.0151 OFBIZHOME = C: apache-ofbiz-16.11.03 The list engine mangled my email.Tim -Original Message- From: Boyden, Timothy mailto: Sent: Friday, December 22, 2017 11:25 AM To: Subject: RE: Cannot install apache-ofbiz-16.11.03 on windows 10 Hi Christian, Did you try setting environment variables for JAVAHOME and OFBIZHOME? Follow the instructions in the above to set: JAVAHOME = C: Program Files Java jdk1.8.0151 OFBIZHOME = C: apache-ofbiz-16.11.03 Make sure the bin folder is in the root of C: Program Files Java jdk1.8.0151. Make sure the application, framework, etc. Folders are in the root of C: apache-ofbiz-16.11.03.
Then try recompiling.Tim -Original Message- From: Christian Vetterli mailto: Sent: Friday, December 22, 2017 8:59 AM To: Subject: Cannot install apache-ofbiz-16.11.03 on windows 10 Hello all, I do not get OFBiz istalled on my Windows 10 computer. I have tried any combination I could come up with. Different loading locations. All currently available Java versions from Oracle. Nothing seem to work.
I am not a programmer. What I did for example is: OFBiz to C: apache-ofbiz-16.11.03 Java to C: Program Files Java jdk1.8.0151 and C: Program Files Java jre1.8.0151 I used the commands gradlew cleanAll loadDefault or gradlew loadDefault ofbiz and I tried to change locations for OFBiz and Java. In addition, I tried the latest version of Java. All I am getting is: C: apache-ofbiz-16.11.03gradlew cleanAll loadDefault:clean:cleanAnt:cleanCatalina:cleanData:cleanDownloads:cleanEclipseClasspath UP-TO-DATE:cleanEclipseJdt UP-TO-DATE:cleanEclipseProject UP-TO-DATE:cleanEclipse UP-TO-DATE:cleanFooterFiles:cleanGradle:cleanIndexes:cleanLogs:cleanOutput:cleanTempfiles:cleanUploads:cleanXtra:cleanAll:compileJava Note: Some input files use unchecked or unsafe operations. Hi ChristianDid you try setting environment variables for JAVAHOME and OFBIZHOME? Follow the instructions in the above to set: JAVAHOME = C: Program Files Java jdk1.8.0151 OFBIZHOME = C: apache-ofbiz-16.11.03 Make sure the bin folder is in the root of C: Program Files Java jdk1.8.0151.
Make sure the application, framework, etc. Folders are in the root of C: apache-ofbiz-16.11.03. Then try recompiling. -Tim -Original Message- From: Christian Vetterli mailto: Sent: Friday, December 22, 2017 8:59 AM To: Subject: Cannot install apache-ofbiz-16.11.03 on windows 10 Hello allI do not get OFBiz istalled on my Windows 10 computer. I have tried any combination I could come up with. Different loading locations. All currently available Java versions from Oracle.
Nothing seem to work. I am not a programmer. What I did for example is: OFBiz to C: apache-ofbiz-16.11.03 Java to C: Program Files Java jdk1.8.0151 and C: Program Files Java jre1.8.0151 I used the commands gradlew cleanAll loadDefault or gradlew loadDefault ofbiz and I tried to change locations for OFBiz and Java. In addition, I tried the latest version of Java. All I am getting is: C: apache-ofbiz-16.11.03gradlew cleanAll loadDefault:clean:cleanAnt:cleanCatalina:cleanData:cleanDownloads:cleanEclipseClasspath UP-TO-DATE:cleanEclipseJdt UP-TO-DATE:cleanEclipseProject UP-TO-DATE:cleanEclipse UP-TO-DATE:cleanFooterFiles:cleanGradle:cleanIndexes:cleanLogs:cleanOutput:cleanTempfiles:cleanUploads:cleanXtra:cleanAll:compileJava Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details. Hi ChristianDid you try setting environment variables for JAVAHOME and OFBIZHOME? Follow the instructions in the above to set: JAVAHOME = C: Program Files Java jdk1.8.0151 OFBIZHOME = C: apache-ofbiz-16.11.03 Make sure the bin folder is in the root of C: Program Files Java jdk1.8.0151. Make sure the application, framework, etc. Folders are in the root of C: apache-ofbiz-16.11.03.
Then try recompiling. -Tim -Original Message- From: Christian Vetterli mailto: Sent: Friday, December 22, 2017 8:59 AM To: Subject: Cannot install apache-ofbiz-16.11.03 on windows 10 Hello allI do not get OFBiz istalled on my Windows 10 computer. I have tried any combination I could come up with. Different loading locations.
All currently available Java versions from Oracle. Nothing seem to work. I am not a programmer.
What I did for example is: OFBiz to C: apache-ofbiz-16.11.03 Java to C: Program Files Java jdk1.8.0151 and C: Program Files Java jre1.8.0151 I used the commands gradlew cleanAll loadDefault or gradlew loadDefault ofbiz and I tried to change locations for OFBiz and Java. In addition, I tried the latest version of Java.
All I am getting is: C: apache-ofbiz-16.11.03gradlew cleanAll loadDefault:clean:cleanAnt :cleanCatalina:cleanData:cleanDownloads:cleanEclipseClasspath UP-TO-DATE:cleanEclipseJdt UP-TO-DATE:cleanEclipseProject UP-TO-DATE :cleanEclipse UP-TO-DATE:cleanFooterFiles:cleanGradle:cleanIndexes :cleanLogs:cleanOutput:cleanTempfiles:cleanUploads:cleanXtra :cleanAll:compileJava Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.
Hi ChristianDid you try setting environment variables for JAVAHOME and OFBIZHOME? Follow the instructions in the above to set: JAVAHOME = C: Program Files Java jdk1.8.0151 OFBIZHOME = C: apache-ofbiz-16.11.03 Make sure the bin folder is in the root of C: Program Files Java jdk1.8.0151.
Make sure the application, framework, etc. Folders are in the root of C: apache-ofbiz-16.11.03. Then try recompiling.
-Tim -Original Message- From: Christian Vetterli mailto: Sent: Friday, December 22, 2017 8:59 AM To: Subject: Cannot install apache-ofbiz-16.11.03 on windows 10 Hello allI do not get OFBiz istalled on my Windows 10 computer. I have tried any combination I could come up with. Different loading locations. All currently available Java versions from Oracle. Nothing seem to work.
I am not a programmer. What I did for example is: OFBiz to C: apache-ofbiz-16.11.03 Java to C: Program Files Java jdk1.8.0151 and C: Program Files Java jre1.8.0151 I used the commands gradlew cleanAll loadDefault or gradlew loadDefault ofbiz and I tried to change locations for OFBiz and Java. In addition, I tried the latest version of Java. All I am getting is: C: apache-ofbiz-16.11.03gradlew cleanAll loadDefault:clean:cleanAnt :cleanCatalina:cleanData:cleanDownloads:cleanEclipseClasspath UP-TO-DATE:cleanEclipseJdt UP-TO-DATE:cleanEclipseProject UP-TO-DATE :cleanEclipse UP-TO-DATE:cleanFooterFiles:cleanGradle:cleanIndexes :cleanLogs:cleanOutput:cleanTempfiles:cleanUploads:cleanXtra :cleanAll:compileJava Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details. Hi Christian, there is no need to uninstall Java/OFbiz when there is just a missing JAVAHOME environment variable. Just point this variable to the correct Java home directory. What does 'echo%JAVAHOME%' and 'java -version' say on the command line? OFBIZHOME is not needed at all, the Gradle build detects everything on its own. I recommend reading the README.md in the project's root folder.
It describes every step you need to run OFBiz. NoClassDefFoundError: It seems that you don't have the necessary dependencies installed on your system. Please notice that the library dependencies are (intentionally) not delivered together with the release. They should be automatically downloaded by the Gradle build which can take some time for the initial build.
You will need an internet connection to do this. If your Gradle cache is messy, please consider removing the contents in the.gradle folder in your user home directory and execute 'gradlew cleanAll loadDefault ofbiz' again. You should see a lot of additional libaries be downloaded during the build which may take a while.
Hope this helps, Regards, Michael Brohl ecomify GmbH www.ecomify.de Am 23.12.17 um 21:25 schrieb Christian Vetterli. Hi Michael, Thank you for your suggestions. I have read the README.md before I started. I followed the steps and did nothing else to it. It seems to be straight forward. First, get Java JDK. So, I got Java and saved it to C: Program Files Java jdk1.8.0151 C: Program Files Java jre1.8.0151 Second, get the latest OFBiz version.
I got from the very first link to download the latest version. I saved it to C: apache-ofbiz-16.11.03 Then I ran the following command line gradlew cleanAll loadDefault I have tried gradlew loadDefault ofbiz previously with the same result. And as Jacques suggested - stacktrace I know that I would not have to uninstall everything to make a new attempt.
I just wanted to make sure that there is nothing else which could mess with the installation. That is all I did.
No additional moving around, no programming – nothing. I have no clue what I could have done wrong.
I am grateful for your help. Thanks a lot. Christian Gesendet: Sonntag, 24. Dezember 2017 um 12:37 Uhr Von: 'Michael Brohl' An: Betreff: Re: Cannot install apache-ofbiz-16.11.03 on windows 10 Hi Christian, there is no need to uninstall Java/OFbiz when there is just a missing JAVAHOME environment variable.
Just point this variable to the correct Java home directory. What does 'echo%JAVAHOME%' and 'java -version' say on the command line? OFBIZHOME is not needed at all, the Gradle build detects everything on its own. I recommend reading the README.md in the project's root folder.
It describes every step you need to run OFBiz. NoClassDefFoundError: It seems that you don't have the necessary dependencies installed on your system. Please notice that the library dependencies are (intentionally) not delivered together with the release. They should be automatically downloaded by the Gradle build which can take some time for the initial build. You will need an internet connection to do this.
If your Gradle cache is messy, please consider removing the contents in the.gradle folder in your user home directory and execute 'gradlew cleanAll loadDefault ofbiz' again. You should see a lot of additional libaries be downloaded during the build which may take a while. Hope this helps, Regards, Michael Brohl ecomify GmbH www.ecomify.de Am 23.12.17 um 21:25 schrieb Christian Vetterli. Christian, The first step after unpacking the OFBiz zip file, is to run 'gradlew' by itself. That downloads all of the libraries and does an initial build of OFBiz. Then you would run the 'gradlew loadDefault' to load the data into default Derby database. Then you would run 'gradlew ofbiz' to run the application.Tim -Original Message- From: Christian Vetterli mailto: Sent: Sunday, December 24, 2017 8:18 AM To: Subject: Aw: Re: Cannot install apache-ofbiz-16.11.03 on windows 10 Hi Michael, Thank you for your suggestions.
I have read the README.md before I started. I followed the steps and did nothing else to it. It seems to be straight forward. First, get Java JDK. So, I got Java and saved it to C: Program Files Java jdk1.8.0151 C: Program Files Java jre1.8.0151 Second, get the latest OFBiz version.
I got from the very first link to download the latest version. I saved it to C: apache-ofbiz-16.11.03 Then I ran the following command line gradlew cleanAll loadDefault I have tried gradlew loadDefault ofbiz previously with the same result.
And as Jacques suggested - stacktrace I know that I would not have to uninstall everything to make a new attempt. I just wanted to make sure that there is nothing else which could mess with the installation. That is all I did. No additional moving around, no programming – nothing. I have no clue what I could have done wrong. I am grateful for your help.
Thanks a lot. Christian Gesendet: Sonntag, 24.
Dezember 2017 um 12:37 Uhr Von: 'Michael Brohl' An: Betreff: Re: Cannot install apache-ofbiz-16.11.03 on windows 10 Hi Christian, there is no need to uninstall Java/OFbiz when there is just a missing JAVAHOME environment variable. Just point this variable to the correct Java home directory.
What does 'echo%JAVAHOME%' and 'java -version' say on the command line? OFBIZHOME is not needed at all, the Gradle build detects everything on its own. I recommend reading the README.md in the project's root folder. It describes every step you need to run OFBiz. NoClassDefFoundError: It seems that you don't have the necessary dependencies installed on your system. Please notice that the library dependencies are (intentionally) not delivered together with the release.
They should be automatically downloaded by the Gradle build which can take some time for the initial build. You will need an internet connection to do this. If your Gradle cache is messy, please consider removing the contents in the.gradle folder in your user home directory and execute 'gradlew cleanAll loadDefault ofbiz' again. You should see a lot of additional libaries be downloaded during the build which may take a while. Hope this helps, Regards, Michael Brohl ecomify GmbH www.ecomify.de Am 23.12.17 um 21:25 schrieb Christian Vetterli.
Christian, can you provide the output of the two commands I provided in my last message? Does your JAVHOME point to the JDK (the JRE is not sufficient)? Did you unpack the release zip in the folder and did you cd to the OFBiz root folder where the README is located? These steps where not mentioned in your description. Do you see the dependency jars downloading during the first build? If not, have you cleared the.gradle folder as I suggested?
It's pretty straight forward to download an run OFBiz OOTB so there must be something on your side. Regards, Michael Am 24.12.17 um 14:17 schrieb Christian Vetterli.
Hi Christian, it would be more readable if you answer the questions directly inline in the cited original message, one-by-one. I'm still waiting for the answers or actions to the following: - What does 'echo%JAVAHOME%' and 'java -version' say on the command line? - please delete the.gradle folder inside your user's home directory and try to run ofbiz again. You should see that Gradle download all necessary dependencies then. I'm pretty sure that you don't have the needed dependencies installed.
Thanks, Michael Am 25.12.17 um 10:49 schrieb Christian Vetterli: What does 'echo%JAVAHOME%' and 'java -version' say on the command line? I am not sure bit I have a suspicion.
Does your windows user folder have spaces like C: Users My User? If yes, this could very well be the problem. To overcome that, try to change the cache location with the -gradle-user-home flag or setting the GRADLEUSERHOME environment variable. Set it to a new location that does not have spaces like C: gradlecache for example. The reason spaces are a problem is because the classpath is registered inside the jar file and does not allow for spaces (a Java thing). I hope this is helpful, if not sorry for babbling.
On Dec 25, 2017 12:49 PM, 'Christian Vetterli' wrote. Hi Michael, I am not a programmer. '- What does 'echo%JAVAHOME%' and 'java -version' say on the command line?' Tell me please what to do to give you an answer to the above question. I deleted.gradle from the apache-ofbiz-16.11.03 folder.
The follwoing I got. C: apache-ofbiz-16.11.03gradlew loadDefault ofbiz:compileJava Note: Some input files use unchecked or unsafe operations. Hi Christian, please open your command line / terminal, I think it is 'cmd' on Windows? I'm not sure because I'm on Mac for a few years now.
There you type 'echo%JAVAHOME%' and copy the output to your answer. Then you type 'java -version' and copy the output to your answer. You should not delete the.gradle folder inside the OFBiz directory but delete the.gradle folder in your user's home directory. Please notice Taher's advise. If your user's home directory contains spaces, this might be the problem why Gradle cannot download/save the dependencies. Regards, Michael Am 25.12.17 um 11:36 schrieb Christian Vetterli.
Hi MichaelI am not a programmer. '- What does 'echo%JAVAHOME%' and 'java -version' say on the command line?'
Tell me please what to do to give you an answer to the above question. I deleted.gradle from the apache-ofbiz-16.11.03 folder. The follwoing I got. C: apache-ofbiz-16.11.03gradlew loadDefault ofbiz :compileJava Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.