Thanks.

Looked at init-gradle-wrapper.ps1 and there is no standalone wget.

Here is the full text:

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.

if ((Test-Path -Path ((Get-Item -Path ".\").FullName + "\gradle\wrapper\gradle-wrapper.jar")) -and (Test-Path -Path ((Get-Item -Path ".\").FullName + "\gradle\wrapper\gradle-wrapper.properties"))) {
    Write-Host "The Gradle Wrapper has been already downloaded.";
    exit
}

# This uses PowerShell Invoke-WebRequest command (aliased as wget here)
# HTTPS is not used because it gets complicated with Powershell and .Net framework versions depending on Windows versions
# Anyway I believe this should be only used in dev environment
wget -outf gradle\wrapper\gradle-wrapper.jar http://dl.bintray.com/apacheofbiz/GradleWrapper/v2.13/gradle-wrapper.jar wget -outf gradle\wrapper\gradle-wrapper.properties http://dl.bintray.com/apacheofbiz/GradleWrapper/v2.13/gradle-wrapper.properties wget -outf gradlew.bat http://dl.bintray.com/apacheofbiz/GradleWrapper/v2.13/gradlew.bat




Hi,

I guess your Windows is not up to date or for another reason the alias between Invoke-WebRequest command and wget does not exist on your system. You can workaround that:

1. Edit C:\Ofbiz\gradle\1 (use Notepad for instance)
2. Replace wget there by Invoke-WebRequest
3. Save the file and retry

Jacques

Le 04/10/2019 à 17:19, Ethan Vos a écrit :
Figured it out.

Here it is.

Thanks.

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Caleb>CD C:\Ofbiz

C:\Ofbiz>init-gradle-wrapper
The term 'wget' is not recognized as the name of a cmdlet, function, script fil e, or operable program. Check the spelling of the name, or if a path was includ
ed, verify that the path is correct and try again.
At C:\Ofbiz\gradle\init-gradle-wrapper.ps1:26 char:5
+ wget <<<<  -outf gradle\wrapper\gradle-wrapper.jar http://dl.bintray.com/apac
heofbiz/GradleWrapper/v2.13/gradle-wrapper.jar
    + CategoryInfo          : ObjectNotFound: (wget:String) [], CommandNotFoun
   dException
    + FullyQualifiedErrorId : CommandNotFoundException

The term 'wget' is not recognized as the name of a cmdlet, function, script fil e, or operable program. Check the spelling of the name, or if a path was includ
ed, verify that the path is correct and try again.
At C:\Ofbiz\gradle\init-gradle-wrapper.ps1:27 char:5
+ wget <<<<  -outf gradle\wrapper\gradle-wrapper.properties http://dl.bintray.c
om/apacheofbiz/GradleWrapper/v2.13/gradle-wrapper.properties
    + CategoryInfo          : ObjectNotFound: (wget:String) [], CommandNotFoun
   dException
    + FullyQualifiedErrorId : CommandNotFoundException

The term 'wget' is not recognized as the name of a cmdlet, function, script fil e, or operable program. Check the spelling of the name, or if a path was includ
ed, verify that the path is correct and try again.
At C:\Ofbiz\gradle\init-gradle-wrapper.ps1:28 char:5
+ wget <<<<  -outf gradlew.bat http://dl.bintray.com/apacheofbiz/GradleWrapper/
v2.13/gradlew.bat
    + CategoryInfo          : ObjectNotFound: (wget:String) [], CommandNotFoun
   dException
    + FullyQualifiedErrorId : CommandNotFoundException


C:\Ofbiz>

On 04/10/2019 10:54 a.m., Jacques Le Roux wrote:
Could you paste the text? It works perfectly well here, I also use Windows 7

Le 04/10/2019 à 15:54, Ethan Vos a écrit :
Good morning.

Ok, I read the README, installed JDK Hotspot (I did not reboot - was I supposed to?) and ran init-gradle-wrapper from the C:\Ofbiz> prompt.

Got lots of red text, which seems to suggest that the term wget is causing a problem.

Partial comment - C:\Ofbiz\gradle\init-gradle-wrapper.ps1:26 char:5

Also ps1:27 and ps1:28

If I could copy the text, I'd paste it all.

Any ideas?


On 04/10/2019 2:07 a.m., Jacques Le Roux wrote:
Morning,

I guess you are using 16.12.06, please read the README.md.html file using your browser. You need to use |init-gradle-wrapper 1st.|

HTH

Jacques

Le 03/10/2019 à 21:50, Ethan Vos a écrit :
Sorry, I thought I was on the list - I'm getting emails regularly.

In any case, I got where I needed to be.

I have a folder called Ofbiz. I downloaded the zip file and extracted it in the folder. A DIR command shows all the files are there.

I then copied and pasted gradlew loadDefault ofbiz (tried with and without quotation marks) from the install webpage and get an error "gradlew is not recognized...."

Version 16.11.06

Thanks.


On 03/10/2019 3:25 p.m., Jacques Le Roux wrote:
Hi Ethan,

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 , it's more fair to share with everybody  and people can answer you on the ML rather than directly to you
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

Try using a folder w/o space in its name.

If it does not work you will need to give us more details, like the version you tried, etc.


Jacques

Le 03/10/2019 à 20:19, Ethan Vos a écrit :
Hello everyone.

I'm having trouble installing this on Windows 7.

I put the zip file into a folder named Of biz but I can't seem to get there from the command prompt.

Any ideas?







--
Ethan Vos
Cutting Edge CNC
339 Fairway Garden
Newmarket, Ontario
L3X 1B4 

416-457-9119
www.cuttingedgecnc.weebly.com

Reply via email to