Having trouble getting this working. I the installation docs are pretty
thin on details. I started with a clean install of CentOS7 updated: [root@localhost ~]# cat /etc/redhat-release Followed these instructionsQuick & Easy Setup: https://cwiki.apache.org/confluence/display/OFBIZ/Demo+and+Test+Setup+Guide Download an OFBiz release 1. Download and install Java 1.8 or higher JDK/J2SDK (not the JRE, you need the full SDK) from Sun's Java (J2SE) site. You can use OpenJdk 8 (or higher). Make sure your JAVA_HOME environment variable is set to this JDK after installation (NOTE that for Mac OS X no JVM setup is needed, just make sure Java is up to date with the OS X Software Update facility). There are still people using older versions, even it it's of course not recommened, notably for security reasons <https://cwiki.apache.org/confluence/display/OFBIZ/Keeping+OFBiz+secure>. By and large see this page on system requirements <https://cwiki.apache.org/confluence/display/OFBIZ/System+Requirements>. [root@localhost ~]# yum install java-11-openjdk [root@localhost ~]# java --version openjdk 11.0.6 2020-01-14 LTS OpenJDK Runtime Environment 18.9 (build 11.0.6+10-LTS) OpenJDK 64-Bit Server VM 18.9 (build 11.0.6+10-LTS, mixed mode, sharing) [root@localhost ~]# unzip /media/sf_Downloads/apache-ofbiz-16.11.06.zip 2. "Download" OFBiz in the directory of your choice (see comments below about that). This should create one sub-directory: *ofbiz*. This will be the OFBIZ_HOME location. [root@localhost ~]# unzip /media/sf_Downloads/apache-ofbiz-16.11.06.zip [root@localhost ~]# mv apache-ofbiz-16.11.06/ /usr/local/ofbiz [root@localhost ~]# cd /usr/local/ofbiz/ 3. (*not for snapshots*) Load OFBiz demo data in the embedded Apache Derby database running *"gradlew loadAll"*on Windows or *"./gradlew loadAll"*on Linux/Unix/OSX. [root@localhost ofbiz]# ./gradlew loadAll -bash: ./gradlew: No such file or director a) I read the README.md that said to run ./gradle/init-gradle-wrapper [root@localhost ofbiz]# gradle/init-gradle-wrapper.sh === Prepare operation === /usr/local/ofbiz/gradle/wrapper/gradle-wrapper.jar not found, we download it === Download gradle-wrapper.jar === === Download gradle-wrapper.properties === === Download script wrapper === === Control downloaded files === gradle/wrapper/gradle-wrapper.jar: OK gradle/wrapper/gradle-wrapper.properties: OK gradlew: OK b) README says: you can setup the Gradle wrapper for OFBiz by executing the following from the command line at the OFBiz top level directory (folder): `gradle wrapper --gradle-version 2.13` [root@localhost ofbiz]# gradle wrapper --gradle-version 2.13 -bash: gradle: command not found From there things go downhill,none of these work: Linux/Unix/OSX: *"./gradlew**ofbiz"*or *"./startofbiz.sh"*(or even "$JAVA_HOME/bin/java -jar build/libs/ofbiz.jar"). What do I need to do to get this stuff to work? Never had so much trouble installing an app before. Are there updated instructions anywhere? |
Hello L,
After you download the wrapper with the help script, you just run $ ./gradlew ofbiz the command `gradle wrapper --gradle-version 2.13`need to be run if you currently have gradle on your system and you prefer to load the wrapper with it. Nicolas On 22/01/2020 00:38, L wrote: > Having trouble getting this working. I the installation docs are > pretty thin on details. > I started with a clean install of CentOS7 updated: > > [root@localhost ~]# cat /etc/redhat-release > > Followed these instructionsQuick & Easy Setup: > https://cwiki.apache.org/confluence/display/OFBIZ/Demo+and+Test+Setup+Guide > > > Download an OFBiz release > > 1. Download and install Java 1.8 or higher JDK/J2SDK (not the JRE, you > need the full SDK) from Sun's Java (J2SE) site. You can use OpenJdk > 8 (or higher). > Make sure your JAVA_HOME environment variable is set to this JDK > after installation (NOTE that for Mac OS X no JVM setup is needed, > just make sure Java is up to date with the OS X Software Update > facility). > There are still people using older versions, even it it's of course > not recommened, notably for security reasons > > <https://cwiki.apache.org/confluence/display/OFBIZ/Keeping+OFBiz+secure>. > By and large see this page on system requirements > > <https://cwiki.apache.org/confluence/display/OFBIZ/System+Requirements>. > > [root@localhost ~]# yum install java-11-openjdk > [root@localhost ~]# java --version > openjdk 11.0.6 2020-01-14 LTS > OpenJDK Runtime Environment 18.9 (build 11.0.6+10-LTS) > OpenJDK 64-Bit Server VM 18.9 (build 11.0.6+10-LTS, mixed mode, > sharing) > [root@localhost ~]# unzip > /media/sf_Downloads/apache-ofbiz-16.11.06.zip > > > 2. "Download" OFBiz in the directory of your choice (see comments below > about that). This should create one sub-directory: *ofbiz*. This > will be the OFBIZ_HOME location. > > [root@localhost ~]# unzip > /media/sf_Downloads/apache-ofbiz-16.11.06.zip > [root@localhost ~]# mv apache-ofbiz-16.11.06/ /usr/local/ofbiz > [root@localhost ~]# cd /usr/local/ofbiz/ > > 3. (*not for snapshots*) Load OFBiz demo data in the embedded Apache > Derby database running *"gradlew loadAll"*on Windows or *"./gradlew > loadAll"*on Linux/Unix/OSX. > > [root@localhost ofbiz]# ./gradlew loadAll > -bash: ./gradlew: No such file or director > > a) I read the README.md that said to run ./gradle/init-gradle-wrapper > > [root@localhost ofbiz]# gradle/init-gradle-wrapper.sh > === Prepare operation === > /usr/local/ofbiz/gradle/wrapper/gradle-wrapper.jar not found, we > download it > === Download gradle-wrapper.jar === > === Download gradle-wrapper.properties === > === Download script wrapper === > === Control downloaded files === > gradle/wrapper/gradle-wrapper.jar: OK > gradle/wrapper/gradle-wrapper.properties: OK > gradlew: OK > > > b) README says: > > you can setup the Gradle wrapper for OFBiz by executing the > following from > the command line at the OFBiz top level directory (folder): > > `gradle wrapper --gradle-version 2.13` > > [root@localhost ofbiz]# gradle wrapper --gradle-version 2.13 > -bash: gradle: command not found > > > From there things go downhill,none of these work: > > Linux/Unix/OSX: *"./gradlew**ofbiz"*or *"./startofbiz.sh"*(or even > "$JAVA_HOME/bin/java -jar build/libs/ofbiz.jar"). > > What do I need to do to get this stuff to work? Never had so much > trouble installing an app before. > > Are there updated instructions anywhere? > > pEpkey.asc (2K) Download Attachment |
In reply to this post by L
Hello,
You seems to have well installed java and unzipped OFBiz, and downloaded the gradle wrapper. Now you should have in your OFBiz directory an executable : gradlew And you should be able to : $ .gradlew loadAll And continue with this executable for the other command (launching the app etc.) As an advice, it is better to use a specific user instead of root to install and launch OFBiz. Regards Gil On Tue, Jan 21, 2020 at 06:38:35PM -0500, L wrote: > Having trouble getting this working. I the installation docs are pretty > thin on details. > I started with a clean install of CentOS7 updated: > > [root@localhost ~]# cat /etc/redhat-release > > Followed these instructionsQuick & Easy Setup: > https://cwiki.apache.org/confluence/display/OFBIZ/Demo+and+Test+Setup+Guide > > Download an OFBiz release > > 1. Download and install Java 1.8 or higher JDK/J2SDK (not the JRE, you > need the full SDK) from Sun's Java (J2SE) site. You can use OpenJdk > 8 (or higher). > Make sure your JAVA_HOME environment variable is set to this JDK > after installation (NOTE that for Mac OS X no JVM setup is needed, > just make sure Java is up to date with the OS X Software Update > facility). > There are still people using older versions, even it it's of course > not recommened, notably for security reasons > <https://cwiki.apache.org/confluence/display/OFBIZ/Keeping+OFBiz+secure>. > By and large see this page on system requirements > <https://cwiki.apache.org/confluence/display/OFBIZ/System+Requirements>. > > [root@localhost ~]# yum install java-11-openjdk > [root@localhost ~]# java --version > openjdk 11.0.6 2020-01-14 LTS > OpenJDK Runtime Environment 18.9 (build 11.0.6+10-LTS) > OpenJDK 64-Bit Server VM 18.9 (build 11.0.6+10-LTS, mixed mode, sharing) > [root@localhost ~]# unzip /media/sf_Downloads/apache-ofbiz-16.11.06.zip > > > 2. "Download" OFBiz in the directory of your choice (see comments below > about that). This should create one sub-directory: *ofbiz*. This > will be the OFBIZ_HOME location. > > [root@localhost ~]# unzip /media/sf_Downloads/apache-ofbiz-16.11.06.zip > [root@localhost ~]# mv apache-ofbiz-16.11.06/ /usr/local/ofbiz > [root@localhost ~]# cd /usr/local/ofbiz/ > > 3. (*not for snapshots*) Load OFBiz demo data in the embedded Apache > Derby database running *"gradlew loadAll"*on Windows or *"./gradlew > loadAll"*on Linux/Unix/OSX. > > [root@localhost ofbiz]# ./gradlew loadAll > -bash: ./gradlew: No such file or director > > a) I read the README.md that said to run ./gradle/init-gradle-wrapper > > [root@localhost ofbiz]# gradle/init-gradle-wrapper.sh > === Prepare operation === > /usr/local/ofbiz/gradle/wrapper/gradle-wrapper.jar not found, we > download it > === Download gradle-wrapper.jar === > === Download gradle-wrapper.properties === > === Download script wrapper === > === Control downloaded files === > gradle/wrapper/gradle-wrapper.jar: OK > gradle/wrapper/gradle-wrapper.properties: OK > gradlew: OK > > > b) README says: > > you can setup the Gradle wrapper for OFBiz by executing the > following from > the command line at the OFBiz top level directory (folder): > > `gradle wrapper --gradle-version 2.13` > > [root@localhost ofbiz]# gradle wrapper --gradle-version 2.13 > -bash: gradle: command not found > > > From there things go downhill,none of these work: > > Linux/Unix/OSX: *"./gradlew**ofbiz"*or *"./startofbiz.sh"*(or even > "$JAVA_HOME/bin/java -jar build/libs/ofbiz.jar"). > > What do I need to do to get this stuff to work? Never had so much trouble > installing an app before. > > Are there updated instructions anywhere? > signature.asc (849 bytes) Download Attachment |
On Wed, Jan 22, 2020 at 10:30:14AM +0100, Gil Portenseigne wrote:
> Hello, > > Typo : And you should be able to : $ ./gradlew loadAll signature.asc (849 bytes) Download Attachment |
Administrator
|
In reply to this post by L
Hi born2trump (nice name, if I got it right),
Your message has been moderated. Please subscribe to the user ML for such questions and then use your email client. See why here http://ofbiz.apache.org/mailing-lists.html. You will get a better support, people can answer you on the ML. The wider the audience the better the answers you might get. Also it's more work for moderators who have to accept your messages as long as you have not subscribed. I'll personally no longer accept them (other moderators still could). Thanks OK people already answered to you, let's go and let us know it's OK Jacques Le 22/01/2020 à 00:38, L a écrit : > Having trouble getting this working. I the installation docs are pretty thin on details. > I started with a clean install of CentOS7 updated: > > [root@localhost ~]# cat /etc/redhat-release > > Followed these instructionsQuick & Easy Setup: > https://cwiki.apache.org/confluence/display/OFBIZ/Demo+and+Test+Setup+Guide > > Download an OFBiz release > > 1. Download and install Java 1.8 or higher JDK/J2SDK (not the JRE, you > need the full SDK) from Sun's Java (J2SE) site. You can use OpenJdk > 8 (or higher). > Make sure your JAVA_HOME environment variable is set to this JDK > after installation (NOTE that for Mac OS X no JVM setup is needed, > just make sure Java is up to date with the OS X Software Update > facility). > There are still people using older versions, even it it's of course > not recommened, notably for security reasons > <https://cwiki.apache.org/confluence/display/OFBIZ/Keeping+OFBiz+secure>. > By and large see this page on system requirements > <https://cwiki.apache.org/confluence/display/OFBIZ/System+Requirements>. > > [root@localhost ~]# yum install java-11-openjdk > [root@localhost ~]# java --version > openjdk 11.0.6 2020-01-14 LTS > OpenJDK Runtime Environment 18.9 (build 11.0.6+10-LTS) > OpenJDK 64-Bit Server VM 18.9 (build 11.0.6+10-LTS, mixed mode, sharing) > [root@localhost ~]# unzip /media/sf_Downloads/apache-ofbiz-16.11.06.zip > > > 2. "Download" OFBiz in the directory of your choice (see comments below > about that). This should create one sub-directory: *ofbiz*. This > will be the OFBIZ_HOME location. > > [root@localhost ~]# unzip /media/sf_Downloads/apache-ofbiz-16.11.06.zip > [root@localhost ~]# mv apache-ofbiz-16.11.06/ /usr/local/ofbiz > [root@localhost ~]# cd /usr/local/ofbiz/ > > 3. (*not for snapshots*) Load OFBiz demo data in the embedded Apache > Derby database running *"gradlew loadAll"*on Windows or *"./gradlew > loadAll"*on Linux/Unix/OSX. > > [root@localhost ofbiz]# ./gradlew loadAll > -bash: ./gradlew: No such file or director > > a) I read the README.md that said to run ./gradle/init-gradle-wrapper > > [root@localhost ofbiz]# gradle/init-gradle-wrapper.sh > === Prepare operation === > /usr/local/ofbiz/gradle/wrapper/gradle-wrapper.jar not found, we > download it > === Download gradle-wrapper.jar === > === Download gradle-wrapper.properties === > === Download script wrapper === > === Control downloaded files === > gradle/wrapper/gradle-wrapper.jar: OK > gradle/wrapper/gradle-wrapper.properties: OK > gradlew: OK > > > b) README says: > > you can setup the Gradle wrapper for OFBiz by executing the > following from > the command line at the OFBiz top level directory (folder): > > `gradle wrapper --gradle-version 2.13` > > [root@localhost ofbiz]# gradle wrapper --gradle-version 2.13 > -bash: gradle: command not found > > > From there things go downhill,none of these work: > > Linux/Unix/OSX: *"./gradlew**ofbiz"*or *"./startofbiz.sh"*(or even > "$JAVA_HOME/bin/java -jar build/libs/ofbiz.jar"). > > What do I need to do to get this stuff to work? Never had so much trouble installing an app before. > > Are there updated instructions anywhere? > |
In reply to this post by Gil Portenseigne
The problem lies with the download files. Some of the zip files *even
the latest 16.11 zip) does not have gradlew file included in them. It is pathetic that the final package file served from the mirrors is incomplete(May be.... someone will pay some attention to this decline in quality). I also found this after wasting some time. Easier solution may be to use svn for downloading whatever version you are looking for. On Wed, 2020-01-22 at 10:32 +0100, Gil Portenseigne wrote: > On Wed, Jan 22, 2020 at 10:30:14AM +0100, Gil Portenseigne wrote: > > Hello, > > > Typo :And you should be able to : $ ./gradlew loadAll -- Regards, Parminder S. Lehal |
./gradlew loadAll doesn't do anything and supplies no output. It just returns to the CLI instantly:
[root@localhost ofbiz]# ./gradlew loadAll [root@localhost ofbiz]# On 1/22/20 9:08 AM, Parminder S. Lehal wrote: > The problem lies with the download files. Some of the zip files *even > the latest 16.11 zip) does not have gradlew file included in them. It > is pathetic that the final package file served from the mirrors is > incomplete(May be.... someone will pay some attention to this decline > in quality). I also found this after wasting some time. Easier > solution may be to use svn for downloading whatever version you are > looking for. > On Wed, 2020-01-22 at 10:32 +0100, Gil Portenseigne wrote: >> On Wed, Jan 22, 2020 at 10:30:14AM +0100, Gil Portenseigne wrote: >>> Hello, >>> >> Typo :And you should be able to : $ ./gradlew loadAll |
In reply to this post by Parminder S. Lehal
This is well documented in the README along with the system requirements
which is always a good read ;-) You can find the reasons for this here: [1] Thanks, Michael Brohl ecomify GmbH - www.ecomify.de [1] https://issues.apache.org/jira/browse/OFBIZ-10145 Am 22.01.20 um 15:08 schrieb Parminder S. Lehal: > The problem lies with the download files. Some of the zip files *even > the latest 16.11 zip) does not have gradlew file included in them. It > is pathetic that the final package file served from the mirrors is > incomplete(May be.... someone will pay some attention to this decline > in quality). I also found this after wasting some time. Easier > solution may be to use svn for downloading whatever version you are > looking for. > On Wed, 2020-01-22 at 10:32 +0100, Gil Portenseigne wrote: >> On Wed, Jan 22, 2020 at 10:30:14AM +0100, Gil Portenseigne wrote: >>> Hello, >>> >> Typo :And you should be able to : $ ./gradlew loadAll smime.p7s (5K) Download Attachment |
And this still does not help why my gradlew seems to do nothing.
I've been through the README.md and I met all the requirements (not many listed). What in the README did I miss? Excerpts from the README: The first requirement to run OFBiz is to have the Java Development Kit (JDK) version 8 installed on your system (not just the JRE, but the full JDK) which you can download from the below link. [root@localhost ~]# java -version openjdk version "11.0.6" 2020-01-14 LTS OpenJDK Runtime Environment 18.9 (build 11.0.6+10-LTS) OpenJDK 64-Bit Server VM 18.9 (build 11.0.6+10-LTS, mixed mode, sharing) The second requirement is to setup the Gradle wrapper files that are used build the system. order to fulfill this requirement, you can run the following command: Unix-like OS: `./gradle/init-gradle-wrapper` [root@localhost ~]# cd /usr/local/ofbiz/ [root@localhost ofbiz]# ./gradle/init-gradle-wrapper.sh === Prepare operation === /usr/local/ofbiz/gradle/wrapper/gradle-wrapper.jar not found, we download it === Download gradle-wrapper.jar === === Download gradle-wrapper.properties === === Download script wrapper === === Control downloaded files === gradle/wrapper/gradle-wrapper.jar: OK gradle/wrapper/gradle-wrapper.properties: OK gradlew: OK So far, so good ( I think, it only took 3 seconds and no other output). Then: Quick start ----------- To quickly install and fire-up OFBiz, please follow the below instructions from the command line at the OFBiz top level directory (folder) ### Prepare OFBiz: Unix-like OS: `./gradlew cleanAll loadDefault` [root@localhost ofbiz]# ./gradlew cleanAll loadDefault [root@localhost ofbiz]# Unix-like OS: `./gradlew ofbiz` [root@localhost ofbiz]# ./gradlew ofbiz [root@localhost ofbiz]# Again no outout and appears to do NOTHING. On 1/22/20 12:42 PM, Michael Brohl wrote: > This is well documented in the README along with the system > requirements which is always a good read ;-) > > You can find the reasons for this here: [1] > > Thanks, > > Michael Brohl > > ecomify GmbH - www.ecomify.de > > > [1] https://issues.apache.org/jira/browse/OFBIZ-10145 > > Am 22.01.20 um 15:08 schrieb Parminder S. Lehal: >> The problem lies with the download files. Some of the zip files *even >> the latest 16.11 zip) does not have gradlew file included in them. It >> is pathetic that the final package file served from the mirrors is >> incomplete(May be.... someone will pay some attention to this decline >> in quality). I also found this after wasting some time. Easier >> solution may be to use svn for downloading whatever version you are >> looking for. >> On Wed, 2020-01-22 at 10:32 +0100, Gil Portenseigne wrote: >>> On Wed, Jan 22, 2020 at 10:30:14AM +0100, Gil Portenseigne wrote: >>>> Hello, >>>> >>> Typo :And you should be able to : $ ./gradlew loadAll > |
In reply to this post by L
Perhaps the instructions are not as clesr as they could be...
Op do 23 jan. 2020 12:38 schreef L <[hidden email]>: > ./gradlew loadAll doesn't do anything and supplies no output. It just > returns to the CLI instantly: > > [root@localhost ofbiz]# ./gradlew loadAll > [root@localhost ofbiz]# > > On 1/22/20 9:08 AM, Parminder S. Lehal wrote: > > The problem lies with the download files. Some of the zip files *even > > the latest 16.11 zip) does not have gradlew file included in them. It > > is pathetic that the final package file served from the mirrors is > > incomplete(May be.... someone will pay some attention to this decline > > in quality). I also found this after wasting some time. Easier > > solution may be to use svn for downloading whatever version you are > > looking for. > > On Wed, 2020-01-22 at 10:32 +0100, Gil Portenseigne wrote: > >> On Wed, Jan 22, 2020 at 10:30:14AM +0100, Gil Portenseigne wrote: > >>> Hello, > >>> > >> Typo :And you should be able to : $ ./gradlew loadAll > > > |
In reply to this post by L
Hi,
as you might have noticed, my answer was addressed to Parminder's answer, particularily the fact that the gradlew file is not included. I may come back to your topics if noone else beats me to it. Best regards, Michael Brohl ecomify GmbH - www.ecomify.de Am 22.01.20 um 20:50 schrieb L: > And this still does not help why my gradlew seems to do nothing. > > I've been through the README.md and I met all the requirements (not > many listed). > What in the README did I miss? > > Excerpts from the README: > > The first requirement to run OFBiz is to have the Java Development Kit > (JDK) > version 8 installed on your system (not just the JRE, but the full > JDK) which > you can download from the below link. > > [root@localhost ~]# java -version > openjdk version "11.0.6" 2020-01-14 LTS > OpenJDK Runtime Environment 18.9 (build 11.0.6+10-LTS) > OpenJDK 64-Bit Server VM 18.9 (build 11.0.6+10-LTS, mixed mode, > sharing) > > The second requirement is to setup the Gradle wrapper files that are used > build the system. > order to fulfill this requirement, you can run the following command: > > Unix-like OS: > `./gradle/init-gradle-wrapper` > > [root@localhost ~]# cd /usr/local/ofbiz/ > [root@localhost ofbiz]# ./gradle/init-gradle-wrapper.sh > === Prepare operation === > /usr/local/ofbiz/gradle/wrapper/gradle-wrapper.jar not found, we > download it > === Download gradle-wrapper.jar === > === Download gradle-wrapper.properties === > === Download script wrapper === > === Control downloaded files === > gradle/wrapper/gradle-wrapper.jar: OK > gradle/wrapper/gradle-wrapper.properties: OK > gradlew: OK > > So far, so good ( I think, it only took 3 seconds and no other > output). Then: > > Quick start > ----------- > > To quickly install and fire-up OFBiz, please follow the below > instructions > from the command line at the OFBiz top level directory (folder) > > ### Prepare OFBiz: > Unix-like OS: > `./gradlew cleanAll loadDefault` > > [root@localhost ofbiz]# ./gradlew cleanAll loadDefault > [root@localhost ofbiz]# > > Unix-like OS: > `./gradlew ofbiz` > > [root@localhost ofbiz]# ./gradlew ofbiz > [root@localhost ofbiz]# > > Again no outout and appears to do NOTHING. > > > On 1/22/20 12:42 PM, Michael Brohl wrote: >> This is well documented in the README along with the system >> requirements which is always a good read ;-) >> >> You can find the reasons for this here: [1] >> >> Thanks, >> >> Michael Brohl >> >> ecomify GmbH - www.ecomify.de >> >> >> [1] https://issues.apache.org/jira/browse/OFBIZ-10145 >> >> Am 22.01.20 um 15:08 schrieb Parminder S. Lehal: >>> The problem lies with the download files. Some of the zip files *even >>> the latest 16.11 zip) does not have gradlew file included in them. It >>> is pathetic that the final package file served from the mirrors is >>> incomplete(May be.... someone will pay some attention to this decline >>> in quality). I also found this after wasting some time. Easier >>> solution may be to use svn for downloading whatever version you are >>> looking for. >>> On Wed, 2020-01-22 at 10:32 +0100, Gil Portenseigne wrote: >>>> On Wed, Jan 22, 2020 at 10:30:14AM +0100, Gil Portenseigne wrote: >>>>> Hello, >>>>> >>>> Typo :And you should be able to : $ ./gradlew loadAll >> > smime.p7s (5K) Download Attachment |
In reply to this post by Pierre Smits-3
Feel free to improve them if you see room for optimization, Pierre.
Thanks, Michael Brohl ecomify GmbH - www.ecomify.de Am 23.01.20 um 13:00 schrieb Pierre Smits: > Perhaps the instructions are not as clesr as they could be... > > Op do 23 jan. 2020 12:38 schreef L <[hidden email]>: > >> ./gradlew loadAll doesn't do anything and supplies no output. It just >> returns to the CLI instantly: >> >> [root@localhost ofbiz]# ./gradlew loadAll >> [root@localhost ofbiz]# >> >> On 1/22/20 9:08 AM, Parminder S. Lehal wrote: >>> The problem lies with the download files. Some of the zip files *even >>> the latest 16.11 zip) does not have gradlew file included in them. It >>> is pathetic that the final package file served from the mirrors is >>> incomplete(May be.... someone will pay some attention to this decline >>> in quality). I also found this after wasting some time. Easier >>> solution may be to use svn for downloading whatever version you are >>> looking for. >>> On Wed, 2020-01-22 at 10:32 +0100, Gil Portenseigne wrote: >>>> On Wed, Jan 22, 2020 at 10:30:14AM +0100, Gil Portenseigne wrote: >>>>> Hello, >>>>> >>>> Typo :And you should be able to : $ ./gradlew loadAll >> >> smime.p7s (5K) Download Attachment |
In reply to this post by L
I can reproduce the behaviour L is seeing in a docker container - see steps
below. I don't have a solution yet though, sorry. Repro Steps: docker run -t -i openjdk:11 /bin/bash root@b1d80d7d85ab:/# javac -version javac 11.0.6 root@b1d80d7d85ab:/# echo $JAVA_HOME /usr/local/openjdk-11root@b1d80d7d85ab:/# cd /usr/local root@b1d80d7d85ab:/usr/local# wget http://apache.mirror.anlx.net/ofbiz/apache-ofbiz-16.11.06.zip --2020-01-23 12:25:08-- http://apache.mirror.anlx.net/ofbiz/apache-ofbiz-16.11.06.zip Resolving apache.mirror.anlx.net (apache.mirror.anlx.net)... 81.91.108.244, 81.91.108.244 Connecting to apache.mirror.anlx.net (apache.mirror.anlx.net)|81.91.108.244|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 31289456 (30M) [application/zip] Saving to: ‘apache-ofbiz-16.11.06.zip’ apache-ofbiz-16.11.06.zip 100%[===================================================================================================================>] 29.84M 3.19MB/s in 9.4s 2020-01-23 12:25:17 (3.16 MB/s) - ‘apache-ofbiz-16.11.06.zip’ saved [31289456/31289456] root@b1d80d7d85ab:/usr/local# unzip -q apache-ofbiz-16.11.06.zip root@b1d80d7d85ab:/usr/local# mv apache-ofbiz-16.11.06 ofbiz root@b1d80d7d85ab:/usr/local# cd ofbiz/ root@b1d80d7d85ab:/usr/local/ofbiz# ls -l total 180 -rw-r--r-- 1 root staff 7136 Jul 11 2016 APACHE2_HEADER -rw-r--r-- 1 root staff 13794 Oct 5 2016 LICENSE -rw-r--r-- 1 root staff 166 Jun 19 2019 NOTICE -rw-r--r-- 1 root staff 1747 Sep 23 2016 OPTIONAL_LIBRARIES -rw-r--r-- 1 root staff 20560 Aug 23 08:12 README.md -rw-r--r-- 1 root staff 26396 Aug 23 08:12 README.md.html drwxr-sr-x 14 root staff 4096 Aug 27 09:30 applications -rw-r--r-- 1 root staff 42437 Aug 9 13:02 build.gradle -rw-r--r-- 1 root staff 1929 Sep 22 2016 common.gradle drwxr-sr-x 19 root staff 4096 Aug 27 09:30 framework drwxr-sr-x 3 root staff 4096 Aug 27 09:31 gradle drwxr-sr-x 2 root staff 4096 Aug 27 09:30 hot-deploy -rwxr-xr-x 1 root staff 1180 Aug 18 15:06 init-gradle-wrapper.bat drwxr-sr-x 2 root staff 4096 Aug 27 09:30 lib -rw-r--r-- 1 root staff 7 Aug 27 09:31 revision.txt drwxr-sr-x 10 root staff 4096 Aug 27 09:30 runtime -rw-r--r-- 1 root staff 1150 Jul 30 2016 settings.gradle drwxr-sr-x 20 root staff 4096 Aug 27 09:31 specialpurpose drwxr-sr-x 7 root staff 4096 Aug 27 09:30 themes drwxr-sr-x 5 root staff 4096 Aug 27 09:30 tools root@b1d80d7d85ab:/usr/local/ofbiz# ./gradle/init-gradle-wrapper.sh === Prepare operation === /usr/local/ofbiz/gradle/wrapper/gradle-wrapper.jar not found, we download it === Download gradle-wrapper.jar === === Download gradle-wrapper.properties === === Download script wrapper === === Control downloaded files === gradle/wrapper/gradle-wrapper.jar: OK gradle/wrapper/gradle-wrapper.properties: OK gradlew: OK root@b1d80d7d85ab:/usr/local/ofbiz# ls -l total 188 -rw-r--r-- 1 root staff 7136 Jul 11 2016 APACHE2_HEADER -rw-r--r-- 1 root staff 13794 Oct 5 2016 LICENSE -rw-r--r-- 1 root staff 166 Jun 19 2019 NOTICE -rw-r--r-- 1 root staff 1747 Sep 23 2016 OPTIONAL_LIBRARIES -rw-r--r-- 1 root staff 20560 Aug 23 08:12 README.md -rw-r--r-- 1 root staff 26396 Aug 23 08:12 README.md.html drwxr-sr-x 14 root staff 4096 Aug 27 09:30 applications -rw-r--r-- 1 root staff 42437 Aug 9 13:02 build.gradle -rw-r--r-- 1 root staff 1929 Sep 22 2016 common.gradle drwxr-sr-x 19 root staff 4096 Aug 27 09:30 framework drwxr-sr-x 3 root staff 4096 Aug 27 09:31 gradle -rwxr--r-- 1 root staff 5875 Jan 23 12:26 gradlew drwxr-sr-x 2 root staff 4096 Aug 27 09:30 hot-deploy -rwxr-xr-x 1 root staff 1180 Aug 18 15:06 init-gradle-wrapper.bat drwxr-sr-x 2 root staff 4096 Aug 27 09:30 lib -rw-r--r-- 1 root staff 7 Aug 27 09:31 revision.txt drwxr-sr-x 10 root staff 4096 Aug 27 09:30 runtime -rw-r--r-- 1 root staff 1150 Jul 30 2016 settings.gradle drwxr-sr-x 20 root staff 4096 Aug 27 09:31 specialpurpose drwxr-sr-x 7 root staff 4096 Aug 27 09:30 themes drwxr-sr-x 5 root staff 4096 Aug 27 09:30 tools Windows Terminal root@b1d80d7d85ab:/usr/local/ofbiz# ./gradlew cleanAll loadDefault Downloading https://services.gradle.org/distributions/gradle-2.13-bin.zip ................................................................................................................................................................................................................. ................................................................................................................................................................................................................. ................................................................................................................................................................................................................. ................................................................................................................................................................................................................. ................................................................................................................................................................................................................. ................................................................................................................................................................................................................. ................................................................................................................................................................................................................. ................................................................................................................................................................................................................. ................................................................................................................................................................................................................. ................................................................................................................................................................................................................. ................................................................................................................................................................................................................. ....................................................... Unzipping /root/.gradle/wrapper/dists/gradle-2.13-bin/4xsgxlfjcxvrea7akf941nvc7/gradle-2.13-bin.zip to /root/.gradle/wrapper/dists/gradle-2.13-bin/4xsgxlfjcxvrea7akf941nvc7 Set executable permissions for: /root/.gradle/wrapper/dists/gradle-2.13-bin/4xsgxlfjcxvrea7akf941nvc7/gradle-2.13/bin/gradle Attempts to run gradlew don't appear to do anything: root@b1d80d7d85ab:/usr/local/ofbiz# ./gradlew build root@b1d80d7d85ab:/usr/local/ofbiz# ./gradlew help root@b1d80d7d85ab:/usr/local/ofbiz# ./gradlew tasks root@b1d80d7d85ab:/usr/local/ofbiz# As far as I can tell the gradlew script is in place. Attempts to redirect stdout to other files still resulted in 0-bytes of output, therefore I assume there is nothing odd going on with the terminal. On Thu, 23 Jan 2020 at 11:38, L <[hidden email]> wrote: > ./gradlew loadAll doesn't do anything and supplies no output. It just > returns to the CLI instantly: > > [root@localhost ofbiz]# ./gradlew loadAll > [root@localhost ofbiz]# > > On 1/22/20 9:08 AM, Parminder S. Lehal wrote: > > The problem lies with the download files. Some of the zip files *even > > the latest 16.11 zip) does not have gradlew file included in them. It > > is pathetic that the final package file served from the mirrors is > > incomplete(May be.... someone will pay some attention to this decline > > in quality). I also found this after wasting some time. Easier > > solution may be to use svn for downloading whatever version you are > > looking for. > > On Wed, 2020-01-22 at 10:32 +0100, Gil Portenseigne wrote: > >> On Wed, Jan 22, 2020 at 10:30:14AM +0100, Gil Portenseigne wrote: > >>> Hello, > >>> > >> Typo :And you should be able to : $ ./gradlew loadAll > > > -- Daniel Watford |
In reply to this post by L
do you analyse the gradlew script present ?
$ file gradlew gradlew: a /usr/bin/env sh script, ASCII text executable $ ls -l gradlew -rwxrwxr-x 1 mnicolas mnicolas 6128 - gradlew From my part I run form fresh download the process and all work fine. Just I never run it as root. I can also try to find the problem with : $ ./gradlew --debug Nicolas On 22/01/2020 17:15, L wrote: > ./gradlew loadAll doesn't do anything and supplies no output. It just > returns to the CLI instantly: > > [root@localhost ofbiz]# ./gradlew loadAll > [root@localhost ofbiz]# > > On 1/22/20 9:08 AM, Parminder S. Lehal wrote: >> The problem lies with the download files. Some of the zip files *even >> the latest 16.11 zip) does not have gradlew file included in them. It >> is pathetic that the final package file served from the mirrors is >> incomplete(May be.... someone will pay some attention to this decline >> in quality). I also found this after wasting some time. Easier >> solution may be to use svn for downloading whatever version you are >> looking for. >> On Wed, 2020-01-22 at 10:32 +0100, Gil Portenseigne wrote: >>> On Wed, Jan 22, 2020 at 10:30:14AM +0100, Gil Portenseigne wrote: >>>> Hello, >>>> >>> Typo :And you should be able to : $ ./gradlew loadAll > > > pEpkey.asc (2K) Download Attachment |
In reply to this post by Daniel Watford
If I use open-jdk-8 rather than 11 then the gradlew command works fine for
me. Try building under: docker run -t -i openjdk:8 /bin/bash to check. On Thu, 23 Jan 2020 at 12:35, Daniel Watford <[hidden email]> wrote: > I can reproduce the behaviour L is seeing in a docker container - see > steps below. > > I don't have a solution yet though, sorry. > > > > Repro Steps: > > docker run -t -i openjdk:11 /bin/bash > > root@b1d80d7d85ab:/# javac -version > javac 11.0.6 > root@b1d80d7d85ab:/# echo $JAVA_HOME > /usr/local/openjdk-11root@b1d80d7d85ab:/# cd /usr/local > root@b1d80d7d85ab:/usr/local# wget > http://apache.mirror.anlx.net/ofbiz/apache-ofbiz-16.11.06.zip > --2020-01-23 12:25:08-- > http://apache.mirror.anlx.net/ofbiz/apache-ofbiz-16.11.06.zip > Resolving apache.mirror.anlx.net (apache.mirror.anlx.net)... > 81.91.108.244, 81.91.108.244 > Connecting to apache.mirror.anlx.net (apache.mirror.anlx.net)|81.91.108.244|:80... > connected. > HTTP request sent, awaiting response... 200 OK > Length: 31289456 (30M) [application/zip] > Saving to: ‘apache-ofbiz-16.11.06.zip’ > > apache-ofbiz-16.11.06.zip > 100%[===================================================================================================================>] > 29.84M 3.19MB/s in 9.4s > > 2020-01-23 12:25:17 (3.16 MB/s) - ‘apache-ofbiz-16.11.06.zip’ saved > [31289456/31289456] > > root@b1d80d7d85ab:/usr/local# unzip -q apache-ofbiz-16.11.06.zip > root@b1d80d7d85ab:/usr/local# mv apache-ofbiz-16.11.06 ofbiz > root@b1d80d7d85ab:/usr/local# cd ofbiz/ > root@b1d80d7d85ab:/usr/local/ofbiz# ls -l > total 180 > -rw-r--r-- 1 root staff 7136 Jul 11 2016 APACHE2_HEADER > -rw-r--r-- 1 root staff 13794 Oct 5 2016 LICENSE > -rw-r--r-- 1 root staff 166 Jun 19 2019 NOTICE > -rw-r--r-- 1 root staff 1747 Sep 23 2016 OPTIONAL_LIBRARIES > -rw-r--r-- 1 root staff 20560 Aug 23 08:12 README.md > -rw-r--r-- 1 root staff 26396 Aug 23 08:12 README.md.html > drwxr-sr-x 14 root staff 4096 Aug 27 09:30 applications > -rw-r--r-- 1 root staff 42437 Aug 9 13:02 build.gradle > -rw-r--r-- 1 root staff 1929 Sep 22 2016 common.gradle > drwxr-sr-x 19 root staff 4096 Aug 27 09:30 framework > drwxr-sr-x 3 root staff 4096 Aug 27 09:31 gradle > drwxr-sr-x 2 root staff 4096 Aug 27 09:30 hot-deploy > -rwxr-xr-x 1 root staff 1180 Aug 18 15:06 init-gradle-wrapper.bat > drwxr-sr-x 2 root staff 4096 Aug 27 09:30 lib > -rw-r--r-- 1 root staff 7 Aug 27 09:31 revision.txt > drwxr-sr-x 10 root staff 4096 Aug 27 09:30 runtime > -rw-r--r-- 1 root staff 1150 Jul 30 2016 settings.gradle > drwxr-sr-x 20 root staff 4096 Aug 27 09:31 specialpurpose > drwxr-sr-x 7 root staff 4096 Aug 27 09:30 themes > drwxr-sr-x 5 root staff 4096 Aug 27 09:30 tools > > > root@b1d80d7d85ab:/usr/local/ofbiz# ./gradle/init-gradle-wrapper.sh > === Prepare operation === > /usr/local/ofbiz/gradle/wrapper/gradle-wrapper.jar not found, we download > it > === Download gradle-wrapper.jar === > === Download gradle-wrapper.properties === > === Download script wrapper === > === Control downloaded files === > gradle/wrapper/gradle-wrapper.jar: OK > gradle/wrapper/gradle-wrapper.properties: OK > gradlew: OK > root@b1d80d7d85ab:/usr/local/ofbiz# ls -l > total 188 > -rw-r--r-- 1 root staff 7136 Jul 11 2016 APACHE2_HEADER > -rw-r--r-- 1 root staff 13794 Oct 5 2016 LICENSE > -rw-r--r-- 1 root staff 166 Jun 19 2019 NOTICE > -rw-r--r-- 1 root staff 1747 Sep 23 2016 OPTIONAL_LIBRARIES > -rw-r--r-- 1 root staff 20560 Aug 23 08:12 README.md > -rw-r--r-- 1 root staff 26396 Aug 23 08:12 README.md.html > drwxr-sr-x 14 root staff 4096 Aug 27 09:30 applications > -rw-r--r-- 1 root staff 42437 Aug 9 13:02 build.gradle > -rw-r--r-- 1 root staff 1929 Sep 22 2016 common.gradle > drwxr-sr-x 19 root staff 4096 Aug 27 09:30 framework > drwxr-sr-x 3 root staff 4096 Aug 27 09:31 gradle > -rwxr--r-- 1 root staff 5875 Jan 23 12:26 gradlew > drwxr-sr-x 2 root staff 4096 Aug 27 09:30 hot-deploy > -rwxr-xr-x 1 root staff 1180 Aug 18 15:06 init-gradle-wrapper.bat > drwxr-sr-x 2 root staff 4096 Aug 27 09:30 lib > -rw-r--r-- 1 root staff 7 Aug 27 09:31 revision.txt > drwxr-sr-x 10 root staff 4096 Aug 27 09:30 runtime > -rw-r--r-- 1 root staff 1150 Jul 30 2016 settings.gradle > drwxr-sr-x 20 root staff 4096 Aug 27 09:31 specialpurpose > drwxr-sr-x 7 root staff 4096 Aug 27 09:30 themes > drwxr-sr-x 5 root staff 4096 Aug 27 09:30 tools > > > Windows Terminal > root@b1d80d7d85ab:/usr/local/ofbiz# ./gradlew cleanAll loadDefault > Downloading https://services.gradle.org/distributions/gradle-2.13-bin.zip > > ................................................................................................................................................................................................................. > > ................................................................................................................................................................................................................. > > ................................................................................................................................................................................................................. > > ................................................................................................................................................................................................................. > > ................................................................................................................................................................................................................. > > ................................................................................................................................................................................................................. > > ................................................................................................................................................................................................................. > > ................................................................................................................................................................................................................. > > ................................................................................................................................................................................................................. > > ................................................................................................................................................................................................................. > > ................................................................................................................................................................................................................. > ....................................................... > Unzipping > /root/.gradle/wrapper/dists/gradle-2.13-bin/4xsgxlfjcxvrea7akf941nvc7/gradle-2.13-bin.zip > to /root/.gradle/wrapper/dists/gradle-2.13-bin/4xsgxlfjcxvrea7akf941nvc7 > Set executable permissions for: > /root/.gradle/wrapper/dists/gradle-2.13-bin/4xsgxlfjcxvrea7akf941nvc7/gradle-2.13/bin/gradle > > > Attempts to run gradlew don't appear to do anything: > root@b1d80d7d85ab:/usr/local/ofbiz# ./gradlew build > root@b1d80d7d85ab:/usr/local/ofbiz# ./gradlew help > root@b1d80d7d85ab:/usr/local/ofbiz# ./gradlew tasks > root@b1d80d7d85ab:/usr/local/ofbiz# > > > As far as I can tell the gradlew script is in place. Attempts to redirect > stdout to other files still resulted in 0-bytes of output, therefore I > assume there is nothing odd going on with the terminal. > > > > > > On Thu, 23 Jan 2020 at 11:38, L <[hidden email]> wrote: > >> ./gradlew loadAll doesn't do anything and supplies no output. It just >> returns to the CLI instantly: >> >> [root@localhost ofbiz]# ./gradlew loadAll >> [root@localhost ofbiz]# >> >> On 1/22/20 9:08 AM, Parminder S. Lehal wrote: >> > The problem lies with the download files. Some of the zip files *even >> > the latest 16.11 zip) does not have gradlew file included in them. It >> > is pathetic that the final package file served from the mirrors is >> > incomplete(May be.... someone will pay some attention to this decline >> > in quality). I also found this after wasting some time. Easier >> > solution may be to use svn for downloading whatever version you are >> > looking for. >> > On Wed, 2020-01-22 at 10:32 +0100, Gil Portenseigne wrote: >> >> On Wed, Jan 22, 2020 at 10:30:14AM +0100, Gil Portenseigne wrote: >> >>> Hello, >> >>> >> >> Typo :And you should be able to : $ ./gradlew loadAll >> >> >> > > -- > Daniel Watford > -- Daniel Watford |
In reply to this post by Daniel Watford
I found the problem :)
$ grep JDK README.md The first requirement to run OFBiz is to have the Java Development Kit (JDK) version 8 installed on your system (not just the JRE, but the full JDK) which [JDK download](https://adoptopenjdk.net/) On your case, it's java 11.0.6 that unsupport by gradle 2.13 Nicolas On 23/01/2020 13:35, Daniel Watford wrote: > I can reproduce the behaviour L is seeing in a docker container - see steps > below. > > I don't have a solution yet though, sorry. > > > > Repro Steps: > > docker run -t -i openjdk:11 /bin/bash > > root@b1d80d7d85ab:/# javac -version > javac 11.0.6 > root@b1d80d7d85ab:/# echo $JAVA_HOME > /usr/local/openjdk-11root@b1d80d7d85ab:/# cd /usr/local > root@b1d80d7d85ab:/usr/local# wget > http://apache.mirror.anlx.net/ofbiz/apache-ofbiz-16.11.06.zip > --2020-01-23 12:25:08-- > http://apache.mirror.anlx.net/ofbiz/apache-ofbiz-16.11.06.zip > Resolving apache.mirror.anlx.net (apache.mirror.anlx.net)... 81.91.108.244, > 81.91.108.244 > Connecting to apache.mirror.anlx.net > (apache.mirror.anlx.net)|81.91.108.244|:80... > connected. > HTTP request sent, awaiting response... 200 OK > Length: 31289456 (30M) [application/zip] > Saving to: ‘apache-ofbiz-16.11.06.zip’ > > apache-ofbiz-16.11.06.zip > 100%[===================================================================================================================>] > 29.84M 3.19MB/s in 9.4s > > 2020-01-23 12:25:17 (3.16 MB/s) - ‘apache-ofbiz-16.11.06.zip’ saved > [31289456/31289456] > > root@b1d80d7d85ab:/usr/local# unzip -q apache-ofbiz-16.11.06.zip > root@b1d80d7d85ab:/usr/local# mv apache-ofbiz-16.11.06 ofbiz > root@b1d80d7d85ab:/usr/local# cd ofbiz/ > root@b1d80d7d85ab:/usr/local/ofbiz# ls -l > total 180 > -rw-r--r-- 1 root staff 7136 Jul 11 2016 APACHE2_HEADER > -rw-r--r-- 1 root staff 13794 Oct 5 2016 LICENSE > -rw-r--r-- 1 root staff 166 Jun 19 2019 NOTICE > -rw-r--r-- 1 root staff 1747 Sep 23 2016 OPTIONAL_LIBRARIES > -rw-r--r-- 1 root staff 20560 Aug 23 08:12 README.md > -rw-r--r-- 1 root staff 26396 Aug 23 08:12 README.md.html > drwxr-sr-x 14 root staff 4096 Aug 27 09:30 applications > -rw-r--r-- 1 root staff 42437 Aug 9 13:02 build.gradle > -rw-r--r-- 1 root staff 1929 Sep 22 2016 common.gradle > drwxr-sr-x 19 root staff 4096 Aug 27 09:30 framework > drwxr-sr-x 3 root staff 4096 Aug 27 09:31 gradle > drwxr-sr-x 2 root staff 4096 Aug 27 09:30 hot-deploy > -rwxr-xr-x 1 root staff 1180 Aug 18 15:06 init-gradle-wrapper.bat > drwxr-sr-x 2 root staff 4096 Aug 27 09:30 lib > -rw-r--r-- 1 root staff 7 Aug 27 09:31 revision.txt > drwxr-sr-x 10 root staff 4096 Aug 27 09:30 runtime > -rw-r--r-- 1 root staff 1150 Jul 30 2016 settings.gradle > drwxr-sr-x 20 root staff 4096 Aug 27 09:31 specialpurpose > drwxr-sr-x 7 root staff 4096 Aug 27 09:30 themes > drwxr-sr-x 5 root staff 4096 Aug 27 09:30 tools > > > root@b1d80d7d85ab:/usr/local/ofbiz# ./gradle/init-gradle-wrapper.sh > === Prepare operation === > /usr/local/ofbiz/gradle/wrapper/gradle-wrapper.jar not found, we download it > === Download gradle-wrapper.jar === > === Download gradle-wrapper.properties === > === Download script wrapper === > === Control downloaded files === > gradle/wrapper/gradle-wrapper.jar: OK > gradle/wrapper/gradle-wrapper.properties: OK > gradlew: OK > root@b1d80d7d85ab:/usr/local/ofbiz# ls -l > total 188 > -rw-r--r-- 1 root staff 7136 Jul 11 2016 APACHE2_HEADER > -rw-r--r-- 1 root staff 13794 Oct 5 2016 LICENSE > -rw-r--r-- 1 root staff 166 Jun 19 2019 NOTICE > -rw-r--r-- 1 root staff 1747 Sep 23 2016 OPTIONAL_LIBRARIES > -rw-r--r-- 1 root staff 20560 Aug 23 08:12 README.md > -rw-r--r-- 1 root staff 26396 Aug 23 08:12 README.md.html > drwxr-sr-x 14 root staff 4096 Aug 27 09:30 applications > -rw-r--r-- 1 root staff 42437 Aug 9 13:02 build.gradle > -rw-r--r-- 1 root staff 1929 Sep 22 2016 common.gradle > drwxr-sr-x 19 root staff 4096 Aug 27 09:30 framework > drwxr-sr-x 3 root staff 4096 Aug 27 09:31 gradle > -rwxr--r-- 1 root staff 5875 Jan 23 12:26 gradlew > drwxr-sr-x 2 root staff 4096 Aug 27 09:30 hot-deploy > -rwxr-xr-x 1 root staff 1180 Aug 18 15:06 init-gradle-wrapper.bat > drwxr-sr-x 2 root staff 4096 Aug 27 09:30 lib > -rw-r--r-- 1 root staff 7 Aug 27 09:31 revision.txt > drwxr-sr-x 10 root staff 4096 Aug 27 09:30 runtime > -rw-r--r-- 1 root staff 1150 Jul 30 2016 settings.gradle > drwxr-sr-x 20 root staff 4096 Aug 27 09:31 specialpurpose > drwxr-sr-x 7 root staff 4096 Aug 27 09:30 themes > drwxr-sr-x 5 root staff 4096 Aug 27 09:30 tools > > > Windows Terminal > root@b1d80d7d85ab:/usr/local/ofbiz# ./gradlew cleanAll loadDefault > Downloading https://services.gradle.org/distributions/gradle-2.13-bin.zip > ................................................................................................................................................................................................................. > ................................................................................................................................................................................................................. > ................................................................................................................................................................................................................. > ................................................................................................................................................................................................................. > ................................................................................................................................................................................................................. > ................................................................................................................................................................................................................. > ................................................................................................................................................................................................................. > ................................................................................................................................................................................................................. > ................................................................................................................................................................................................................. > ................................................................................................................................................................................................................. > ................................................................................................................................................................................................................. > ....................................................... > Unzipping > /root/.gradle/wrapper/dists/gradle-2.13-bin/4xsgxlfjcxvrea7akf941nvc7/gradle-2.13-bin.zip > to /root/.gradle/wrapper/dists/gradle-2.13-bin/4xsgxlfjcxvrea7akf941nvc7 > Set executable permissions for: > /root/.gradle/wrapper/dists/gradle-2.13-bin/4xsgxlfjcxvrea7akf941nvc7/gradle-2.13/bin/gradle > > > Attempts to run gradlew don't appear to do anything: > root@b1d80d7d85ab:/usr/local/ofbiz# ./gradlew build > root@b1d80d7d85ab:/usr/local/ofbiz# ./gradlew help > root@b1d80d7d85ab:/usr/local/ofbiz# ./gradlew tasks > root@b1d80d7d85ab:/usr/local/ofbiz# > > > As far as I can tell the gradlew script is in place. Attempts to redirect > stdout to other files still resulted in 0-bytes of output, therefore I > assume there is nothing odd going on with the terminal. > > > > > > On Thu, 23 Jan 2020 at 11:38, L <[hidden email]> wrote: > >> ./gradlew loadAll doesn't do anything and supplies no output. It just >> returns to the CLI instantly: >> >> [root@localhost ofbiz]# ./gradlew loadAll >> [root@localhost ofbiz]# >> >> On 1/22/20 9:08 AM, Parminder S. Lehal wrote: >>> The problem lies with the download files. Some of the zip files *even >>> the latest 16.11 zip) does not have gradlew file included in them. It >>> is pathetic that the final package file served from the mirrors is >>> incomplete(May be.... someone will pay some attention to this decline >>> in quality). I also found this after wasting some time. Easier >>> solution may be to use svn for downloading whatever version you are >>> looking for. >>> On Wed, 2020-01-22 at 10:32 +0100, Gil Portenseigne wrote: >>>> On Wed, Jan 22, 2020 at 10:30:14AM +0100, Gil Portenseigne wrote: >>>>> Hello, >>>>> >>>> Typo :And you should be able to : $ ./gradlew loadAll >> >> pEpkey.asc (2K) Download Attachment |
L,
As Nicolas said, only JDK8 is supported at the moment. There is an improvement ticket regarding JDK11 here: https://issues.apache.org/jira/browse/OFBIZ-10757 Please give JDK8 a try and see how you get on. Thanks, Dan. On Thu, 23 Jan 2020 at 12:45, Nicolas Malin <[hidden email]> wrote: > I found the problem :) > > $ grep JDK README.md > The first requirement to run OFBiz is to have the Java Development > Kit (JDK) > version 8 installed on your system (not just the JRE, but the full > JDK) which > [JDK download](https://adoptopenjdk.net/) > > On your case, it's java 11.0.6 that unsupport by gradle 2.13 > > Nicolas > > On 23/01/2020 13:35, Daniel Watford wrote: > > I can reproduce the behaviour L is seeing in a docker container - see > steps > > below. > > > > I don't have a solution yet though, sorry. > > > > > > > > Repro Steps: > > > > docker run -t -i openjdk:11 /bin/bash > > > > root@b1d80d7d85ab:/# javac -version > > javac 11.0.6 > > root@b1d80d7d85ab:/# echo $JAVA_HOME > > /usr/local/openjdk-11root@b1d80d7d85ab:/# cd /usr/local > > root@b1d80d7d85ab:/usr/local# wget > > http://apache.mirror.anlx.net/ofbiz/apache-ofbiz-16.11.06.zip > > --2020-01-23 12:25:08-- > > http://apache.mirror.anlx.net/ofbiz/apache-ofbiz-16.11.06.zip > > Resolving apache.mirror.anlx.net (apache.mirror.anlx.net)... > 81.91.108.244, > > 81.91.108.244 > > Connecting to apache.mirror.anlx.net > > (apache.mirror.anlx.net)|81.91.108.244|:80... > > connected. > > HTTP request sent, awaiting response... 200 OK > > Length: 31289456 (30M) [application/zip] > > Saving to: ‘apache-ofbiz-16.11.06.zip’ > > > > apache-ofbiz-16.11.06.zip > > > 100%[===================================================================================================================>] > > 29.84M 3.19MB/s in 9.4s > > > > 2020-01-23 12:25:17 (3.16 MB/s) - ‘apache-ofbiz-16.11.06.zip’ saved > > [31289456/31289456] > > > > root@b1d80d7d85ab:/usr/local# unzip -q apache-ofbiz-16.11.06.zip > > root@b1d80d7d85ab:/usr/local# mv apache-ofbiz-16.11.06 ofbiz > > root@b1d80d7d85ab:/usr/local# cd ofbiz/ > > root@b1d80d7d85ab:/usr/local/ofbiz# ls -l > > total 180 > > -rw-r--r-- 1 root staff 7136 Jul 11 2016 APACHE2_HEADER > > -rw-r--r-- 1 root staff 13794 Oct 5 2016 LICENSE > > -rw-r--r-- 1 root staff 166 Jun 19 2019 NOTICE > > -rw-r--r-- 1 root staff 1747 Sep 23 2016 OPTIONAL_LIBRARIES > > -rw-r--r-- 1 root staff 20560 Aug 23 08:12 README.md > > -rw-r--r-- 1 root staff 26396 Aug 23 08:12 README.md.html > > drwxr-sr-x 14 root staff 4096 Aug 27 09:30 applications > > -rw-r--r-- 1 root staff 42437 Aug 9 13:02 build.gradle > > -rw-r--r-- 1 root staff 1929 Sep 22 2016 common.gradle > > drwxr-sr-x 19 root staff 4096 Aug 27 09:30 framework > > drwxr-sr-x 3 root staff 4096 Aug 27 09:31 gradle > > drwxr-sr-x 2 root staff 4096 Aug 27 09:30 hot-deploy > > -rwxr-xr-x 1 root staff 1180 Aug 18 15:06 init-gradle-wrapper.bat > > drwxr-sr-x 2 root staff 4096 Aug 27 09:30 lib > > -rw-r--r-- 1 root staff 7 Aug 27 09:31 revision.txt > > drwxr-sr-x 10 root staff 4096 Aug 27 09:30 runtime > > -rw-r--r-- 1 root staff 1150 Jul 30 2016 settings.gradle > > drwxr-sr-x 20 root staff 4096 Aug 27 09:31 specialpurpose > > drwxr-sr-x 7 root staff 4096 Aug 27 09:30 themes > > drwxr-sr-x 5 root staff 4096 Aug 27 09:30 tools > > > > > > root@b1d80d7d85ab:/usr/local/ofbiz# ./gradle/init-gradle-wrapper.sh > > === Prepare operation === > > /usr/local/ofbiz/gradle/wrapper/gradle-wrapper.jar not found, we > download it > > === Download gradle-wrapper.jar === > > === Download gradle-wrapper.properties === > > === Download script wrapper === > > === Control downloaded files === > > gradle/wrapper/gradle-wrapper.jar: OK > > gradle/wrapper/gradle-wrapper.properties: OK > > gradlew: OK > > root@b1d80d7d85ab:/usr/local/ofbiz# ls -l > > total 188 > > -rw-r--r-- 1 root staff 7136 Jul 11 2016 APACHE2_HEADER > > -rw-r--r-- 1 root staff 13794 Oct 5 2016 LICENSE > > -rw-r--r-- 1 root staff 166 Jun 19 2019 NOTICE > > -rw-r--r-- 1 root staff 1747 Sep 23 2016 OPTIONAL_LIBRARIES > > -rw-r--r-- 1 root staff 20560 Aug 23 08:12 README.md > > -rw-r--r-- 1 root staff 26396 Aug 23 08:12 README.md.html > > drwxr-sr-x 14 root staff 4096 Aug 27 09:30 applications > > -rw-r--r-- 1 root staff 42437 Aug 9 13:02 build.gradle > > -rw-r--r-- 1 root staff 1929 Sep 22 2016 common.gradle > > drwxr-sr-x 19 root staff 4096 Aug 27 09:30 framework > > drwxr-sr-x 3 root staff 4096 Aug 27 09:31 gradle > > -rwxr--r-- 1 root staff 5875 Jan 23 12:26 gradlew > > drwxr-sr-x 2 root staff 4096 Aug 27 09:30 hot-deploy > > -rwxr-xr-x 1 root staff 1180 Aug 18 15:06 init-gradle-wrapper.bat > > drwxr-sr-x 2 root staff 4096 Aug 27 09:30 lib > > -rw-r--r-- 1 root staff 7 Aug 27 09:31 revision.txt > > drwxr-sr-x 10 root staff 4096 Aug 27 09:30 runtime > > -rw-r--r-- 1 root staff 1150 Jul 30 2016 settings.gradle > > drwxr-sr-x 20 root staff 4096 Aug 27 09:31 specialpurpose > > drwxr-sr-x 7 root staff 4096 Aug 27 09:30 themes > > drwxr-sr-x 5 root staff 4096 Aug 27 09:30 tools > > > > > > Windows Terminal > > root@b1d80d7d85ab:/usr/local/ofbiz# ./gradlew cleanAll loadDefault > > Downloading > https://services.gradle.org/distributions/gradle-2.13-bin.zip > > > ................................................................................................................................................................................................................. > > > ................................................................................................................................................................................................................. > > > ................................................................................................................................................................................................................. > > > ................................................................................................................................................................................................................. > > > ................................................................................................................................................................................................................. > > > ................................................................................................................................................................................................................. > > > ................................................................................................................................................................................................................. > > > ................................................................................................................................................................................................................. > > > ................................................................................................................................................................................................................. > > > ................................................................................................................................................................................................................. > > > ................................................................................................................................................................................................................. > > ....................................................... > > Unzipping > > > /root/.gradle/wrapper/dists/gradle-2.13-bin/4xsgxlfjcxvrea7akf941nvc7/gradle-2.13-bin.zip > > to /root/.gradle/wrapper/dists/gradle-2.13-bin/4xsgxlfjcxvrea7akf941nvc7 > > Set executable permissions for: > > > /root/.gradle/wrapper/dists/gradle-2.13-bin/4xsgxlfjcxvrea7akf941nvc7/gradle-2.13/bin/gradle > > > > > > Attempts to run gradlew don't appear to do anything: > > root@b1d80d7d85ab:/usr/local/ofbiz# ./gradlew build > > root@b1d80d7d85ab:/usr/local/ofbiz# ./gradlew help > > root@b1d80d7d85ab:/usr/local/ofbiz# ./gradlew tasks > > root@b1d80d7d85ab:/usr/local/ofbiz# > > > > > > As far as I can tell the gradlew script is in place. Attempts to redirect > > stdout to other files still resulted in 0-bytes of output, therefore I > > assume there is nothing odd going on with the terminal. > > > > > > > > > > > > On Thu, 23 Jan 2020 at 11:38, L <[hidden email]> wrote: > > > >> ./gradlew loadAll doesn't do anything and supplies no output. It just > >> returns to the CLI instantly: > >> > >> [root@localhost ofbiz]# ./gradlew loadAll > >> [root@localhost ofbiz]# > >> > >> On 1/22/20 9:08 AM, Parminder S. Lehal wrote: > >>> The problem lies with the download files. Some of the zip files *even > >>> the latest 16.11 zip) does not have gradlew file included in them. It > >>> is pathetic that the final package file served from the mirrors is > >>> incomplete(May be.... someone will pay some attention to this decline > >>> in quality). I also found this after wasting some time. Easier > >>> solution may be to use svn for downloading whatever version you are > >>> looking for. > >>> On Wed, 2020-01-22 at 10:32 +0100, Gil Portenseigne wrote: > >>>> On Wed, Jan 22, 2020 at 10:30:14AM +0100, Gil Portenseigne wrote: > >>>>> Hello, > >>>>> > >>>> Typo :And you should be able to : $ ./gradlew loadAll > >> > >> > -- Daniel Watford |
In reply to this post by Michael Brohl-3
I would be happy to tackle that one, but I am still waiting on somebody
willing to help me get some other contributions in. Op do 23 jan. 2020 13:08 schreef Michael Brohl <[hidden email]>: > Feel free to improve them if you see room for optimization, Pierre. > > Thanks, > > Michael Brohl > > ecomify GmbH - www.ecomify.de > > > Am 23.01.20 um 13:00 schrieb Pierre Smits: > > Perhaps the instructions are not as clesr as they could be... > > > > Op do 23 jan. 2020 12:38 schreef L <[hidden email]>: > > > >> ./gradlew loadAll doesn't do anything and supplies no output. It just > >> returns to the CLI instantly: > >> > >> [root@localhost ofbiz]# ./gradlew loadAll > >> [root@localhost ofbiz]# > >> > >> On 1/22/20 9:08 AM, Parminder S. Lehal wrote: > >>> The problem lies with the download files. Some of the zip files *even > >>> the latest 16.11 zip) does not have gradlew file included in them. It > >>> is pathetic that the final package file served from the mirrors is > >>> incomplete(May be.... someone will pay some attention to this decline > >>> in quality). I also found this after wasting some time. Easier > >>> solution may be to use svn for downloading whatever version you are > >>> looking for. > >>> On Wed, 2020-01-22 at 10:32 +0100, Gil Portenseigne wrote: > >>>> On Wed, Jan 22, 2020 at 10:30:14AM +0100, Gil Portenseigne wrote: > >>>>> Hello, > >>>>> > >>>> Typo :And you should be able to : $ ./gradlew loadAll > >> > >> > > |
In reply to this post by L
Java version, that was it!
I installed jdk-1.8.0 and as soon as I defined JAVA_HOME it works. I am able to list the tasks and run the app. It works beautifully so far albeit a little complicated for a very small operation. The "Demo and Test Setup Guide" could use some updating as it's pretty inaccurate and differs alot from the README. (I should know better adn to thoroughly read the README's) I read the Release notes and was surprised no mention of the README updates. i.e. website says: Download and install Java 1.8 or higher JDK/J2SDK README says: Java Development Kit (JDK) version 8 (specifically) website says: run ./gradlew loadAll README says ./gradlew loadDefault etc., etc. Thank you all for your help, suggestions, and putting up with all my newbie questions. I'm just a sysadmin, not much of a developer so I don't know the ins & outs of development environments all that well. I realize the differences in JDK 11 from JDK 8 are HUGE and it will take significant effort to support the new java versions, especially since the new barriers Oracle put in place on the official JDK's. Regards, Larry R And yes, my email handle is 20 years old and predates DJ Trump. It refers to Euchre the card game. |
Administrator
|
Le 26/01/2020 à 04:02, L a écrit :
> Java version, that was it! > > I installed jdk-1.8.0 and as soon as I defined JAVA_HOME it works. > > I am able to list the tasks and run the app. It works beautifully so far albeit a little complicated for a very small operation. > > The "Demo and Test Setup Guide" could use some updating as it's pretty inaccurate and differs alot from the README. (I should know better adn to > thoroughly read the README's) > I read the Release notes and was surprised no mention of the README updates. > > i.e. website says: Download and install Java 1.8 or higher JDK/J2SDK > README says: Java Development Kit (JDK) version 8 (specifically) > > website says: run ./gradlew loadAll > README says ./gradlew loadDefault > > etc., etc. > > Thank you all for your help, suggestions, and putting up with all my newbie questions. I'm just a sysadmin, not much of a developer so I don't know > the ins & outs > of development environments all that well. > > I realize the differences in JDK 11 from JDK 8 are HUGE and it will take significant effort to support the new java versions, especially since the > new barriers Oracle put in place on the > official JDK's. > > Regards, > Larry R > > And yes, my email handle is 20 years old and predates DJ Trump. It refers to Euchre the card game. > Happy you finally got through, and thanks for the feedback. I'll have a look and will get back to you if necessary (notably about the "etc., etc." ;) ) Jacques |
Free forum by Nabble | Edit this page |