As stated, I have Windows 7; gradle-2.0-all.zip was unzipped to:
C:\Programs Unzipped\Gradle\gradle-2.0\
I’m using this guide: http://gradleware.com/registered/books/building-and-testing/index.html In chapter 1, “Hello Gradle”, I followed 1.3.3. Windows Installation.
To verify correct Path, I start Command Prompt. C:\Users\George> is initial directory path.
I enter gradle -v
C:\Users\George>gradle -v
------------------------------------------------------------ Gradle 2.0 ------------------------------------------------------------
Build time:
2014-07-01 07:45:34 UTC Build number: none Revision:
b6ead6fa452dfdadec484059191eb641d817226c
Groovy:
2.3.3 Ant:
Apache Ant™ version 1.9.3 compiled on December 23 2013 JVM:
1.7.0_51 (Oracle Corporation 24.51-b03) OS:
Windows 7 6.1 amd64
.1 The Path is apparently OK; it found gradle.bat. .2 Does the information look OK?
The very next step is: 1.4 The Hello World Build File Now that we have Gradle installed, we can start using it. Let’s build the simplest build file that we possibly can to get an idea of the basics.
Create a file called build.gradle that looks like Example 1.1. task helloWorld << {
println ‘hello, world’ }
I have no idea where this file should be located; there is no suggestion.
My initial attempt was to include it in the installation bin folder. You say it cannot be located there.
So I made a new folder C:DATA\Gradle\ and placed the build.gradle file there. Change directory so the file will be found, try again: C:\DATA\Gradle> gradle -q helloWorld FAILURE: Build failed with an exception.
- What went wrong: A problem occurred configuring root project ‘Gradle’. > Could not open buildscript class cache for build file ‘C:\DATA\Gradle\build.gradle’ (C:\Users\George.gradle\caches\2.0\ scripts\build_5jvridq7k28qgmlao7pte82rfs\ProjectScript\buildscript).
java.net.SocketException: Unrecognized Windows Sockets error: 87: Socket creation failed
Does this shed any light, before I send stacktrace info (which is totally Greek to me)?