|
|
@@ -24,23 +24,24 @@ Open an administrative command prompt. (If you need assistance opening an admin
|
|
24
|
24
|
|
|
25
|
25
|
1. If you have not installed Chocolatey, do so now:
|
|
26
|
26
|
|
|
27
|
|
- ```batchfile
|
|
28
|
|
- C:\Windows\system32> @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
|
|
29
|
|
- ```
|
|
|
27
|
+ ```batchfile
|
|
|
28
|
+ C:\Windows\system32> @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
|
|
|
29
|
+ ```
|
|
|
30
|
+
|
|
30
|
31
|
2. Install the JDK:
|
|
31
|
32
|
|
|
32
|
|
- ```batchfile
|
|
33
|
|
- C:\Windows\system32> choco install jdk8
|
|
34
|
|
- ...
|
|
35
|
|
- C:\Windows\system32> refreshenv
|
|
36
|
|
- ...
|
|
37
|
|
- ```
|
|
|
33
|
+ ```batchfile
|
|
|
34
|
+ C:\Windows\system32> choco install jdk8
|
|
|
35
|
+ ...
|
|
|
36
|
+ C:\Windows\system32> refreshenv
|
|
|
37
|
+ ...
|
|
|
38
|
+ ```
|
|
38
|
39
|
3. Install Gradle:
|
|
39
|
40
|
|
|
40
|
|
- ```batchfile
|
|
41
|
|
- C:\Windows\system32>choco install gradle
|
|
42
|
|
- ...
|
|
43
|
|
- ```
|
|
|
41
|
+ ```batchfile
|
|
|
42
|
+ C:\Windows\system32>choco install gradle
|
|
|
43
|
+ ...
|
|
|
44
|
+ ```
|
|
44
|
45
|
|
|
45
|
46
|
We recommend closing the administrative command prompt and opening a new command prompt -- you do not require administrator privileges to practice Exercism exercises.
|
|
46
|
47
|
|
|
|
@@ -58,24 +59,27 @@ Below are instructions for install using the most common method - using Homebrew
|
|
58
|
59
|
|
|
59
|
60
|
1. If you haven't installed [Homebrew](http://brew.sh), yet, do so now:
|
|
60
|
61
|
|
|
61
|
|
- ```sh
|
|
62
|
|
- $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
|
63
|
|
- ```
|
|
|
62
|
+ ```sh
|
|
|
63
|
+ $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
|
|
64
|
+ ```
|
|
|
65
|
+
|
|
64
|
66
|
2. Tap the [Homebrew Cask](https://caskroom.github.io/) — this allows us to install pre-built binaries like the JDK.
|
|
65
|
67
|
|
|
66
|
|
- ```
|
|
67
|
|
- $ brew tap caskroom/cask
|
|
68
|
|
- ```
|
|
|
68
|
+ ```
|
|
|
69
|
+ $ brew tap caskroom/cask
|
|
|
70
|
+ ```
|
|
|
71
|
+
|
|
69
|
72
|
3. Install the JDK:
|
|
70
|
73
|
|
|
71
|
|
- ```
|
|
72
|
|
- $ brew cask install java
|
|
73
|
|
- ```
|
|
|
74
|
+ ```
|
|
|
75
|
+ $ brew cask install java
|
|
|
76
|
+ ```
|
|
|
77
|
+
|
|
74
|
78
|
4. Install Gradle:
|
|
75
|
79
|
|
|
76
|
|
- ```
|
|
77
|
|
- $ brew install gradle
|
|
78
|
|
- ```
|
|
|
80
|
+ ```
|
|
|
81
|
+ $ brew install gradle
|
|
|
82
|
+ ```
|
|
79
|
83
|
|
|
80
|
84
|
You now are ready to get started with the Java track of Exercism!
|
|
81
|
85
|
|
|
|
@@ -98,21 +102,22 @@ If you are using Debian or its derivatives (like Ubuntu or Linux Mint), use APT:
|
|
98
|
102
|
|
|
99
|
103
|
1. Install the JDK:
|
|
100
|
104
|
|
|
101
|
|
- ```sh
|
|
102
|
|
- $ sudo apt-get update
|
|
103
|
|
- $ sudo apt-get install python-software-properties
|
|
104
|
|
- $ sudo add-apt-repository ppa:webupd8team/java
|
|
105
|
|
- $ sudo apt-get update
|
|
106
|
|
- $ sudo apt-get install oracle-java8-installer
|
|
107
|
|
- $ sudo apt install oracle-java8-set-default
|
|
108
|
|
- ```
|
|
|
105
|
+ ```sh
|
|
|
106
|
+ $ sudo apt-get update
|
|
|
107
|
+ $ sudo apt-get install python-software-properties
|
|
|
108
|
+ $ sudo add-apt-repository ppa:webupd8team/java
|
|
|
109
|
+ $ sudo apt-get update
|
|
|
110
|
+ $ sudo apt-get install oracle-java8-installer
|
|
|
111
|
+ $ sudo apt install oracle-java8-set-default
|
|
|
112
|
+ ```
|
|
|
113
|
+
|
|
109
|
114
|
2. Install Gradle:
|
|
110
|
115
|
|
|
111
|
|
- ```sh
|
|
112
|
|
- $ sudo add-apt-repository ppa:cwchien/gradle
|
|
113
|
|
- $ sudo apt-get update
|
|
114
|
|
- $ sudo apt-get install gradle
|
|
115
|
|
- ```
|
|
|
116
|
+ ```sh
|
|
|
117
|
+ $ sudo add-apt-repository ppa:cwchien/gradle
|
|
|
118
|
+ $ sudo apt-get update
|
|
|
119
|
+ $ sudo apt-get install gradle
|
|
|
120
|
+ ```
|
|
116
|
121
|
|
|
117
|
122
|
You now are ready to get started with the Java track of Exercism!
|
|
118
|
123
|
|
|
|
@@ -128,14 +133,15 @@ If you are using Fedora or its derivatives, use DNF:
|
|
128
|
133
|
|
|
129
|
134
|
1. Install the JDK:
|
|
130
|
135
|
|
|
131
|
|
- ```sh
|
|
132
|
|
- $ sudo dnf install java-1.8.0-openjdk-devel
|
|
133
|
|
- ```
|
|
|
136
|
+ ```sh
|
|
|
137
|
+ $ sudo dnf install java-1.8.0-openjdk-devel
|
|
|
138
|
+ ```
|
|
|
139
|
+
|
|
134
|
140
|
2. Install Gradle:
|
|
135
|
141
|
|
|
136
|
|
- ```sh
|
|
137
|
|
- $ sudo dnf install gradle
|
|
138
|
|
- ```
|
|
|
142
|
+ ```sh
|
|
|
143
|
+ $ sudo dnf install gradle
|
|
|
144
|
+ ```
|
|
139
|
145
|
|
|
140
|
146
|
|
|
141
|
147
|
You now are ready to get started with the Java track of Exercism!
|
|
|
@@ -183,20 +189,21 @@ To get started, see "[Running the Tests](http://exercism.io/languages/java/tests
|
|
183
|
189
|
1. Download "**Binary only distribution**" from the [Gradle download page](https://gradle.org/gradle-download/).
|
|
184
|
190
|
2. Unpack Gradle:
|
|
185
|
191
|
|
|
186
|
|
- ```sh
|
|
187
|
|
- $ mkdir ~/tools
|
|
188
|
|
- $ cd ~/tools
|
|
189
|
|
- $ unzip ~/Downloads/gradle-*-bin.zip
|
|
190
|
|
- $ cd gradle*
|
|
191
|
|
- ```
|
|
|
192
|
+ ```sh
|
|
|
193
|
+ $ mkdir ~/tools
|
|
|
194
|
+ $ cd ~/tools
|
|
|
195
|
+ $ unzip ~/Downloads/gradle-*-bin.zip
|
|
|
196
|
+ $ cd gradle*
|
|
|
197
|
+ ```
|
|
|
198
|
+
|
|
192
|
199
|
3. Configure Gradle and add it to the path:
|
|
193
|
200
|
|
|
194
|
|
- ```sh
|
|
195
|
|
- $ cat << DONE >> ~/.bashrc
|
|
196
|
|
- export GRADLE_HOME=`pwd`
|
|
197
|
|
- export PATH=\$PATH:\$GRADLE_HOME/bin
|
|
198
|
|
- DONE
|
|
199
|
|
- ```
|
|
|
201
|
+ ```sh
|
|
|
202
|
+ $ cat << DONE >> ~/.bashrc
|
|
|
203
|
+ export GRADLE_HOME=`pwd`
|
|
|
204
|
+ export PATH=\$PATH:\$GRADLE_HOME/bin
|
|
|
205
|
+ DONE
|
|
|
206
|
+ ```
|
|
200
|
207
|
|
|
201
|
208
|
|
|
202
|
209
|
You now are ready to get started with the Java track of Exercism!
|
|
|
@@ -216,20 +223,21 @@ To get started, see "[Running the Tests](http://exercism.io/languages/java/tests
|
|
216
|
223
|
1. Download "**Binary only distribution**" from the [Gradle download page](https://gradle.org/gradle-download/).
|
|
217
|
224
|
2. Unpack Gradle:
|
|
218
|
225
|
|
|
219
|
|
- ```sh
|
|
220
|
|
- $ mkdir ~/tools
|
|
221
|
|
- $ cd ~/tools
|
|
222
|
|
- $ unzip ~/Downloads/gradle-*-bin.zip
|
|
223
|
|
- $ cd gradle*
|
|
224
|
|
- ```
|
|
|
226
|
+ ```sh
|
|
|
227
|
+ $ mkdir ~/tools
|
|
|
228
|
+ $ cd ~/tools
|
|
|
229
|
+ $ unzip ~/Downloads/gradle-*-bin.zip
|
|
|
230
|
+ $ cd gradle*
|
|
|
231
|
+ ```
|
|
|
232
|
+
|
|
225
|
233
|
3. Configure Gradle and add it to the path:
|
|
226
|
234
|
|
|
227
|
|
- ```sh
|
|
228
|
|
- $ cat << DONE >> ~/.bashrc
|
|
229
|
|
- export GRADLE_HOME=`pwd`
|
|
230
|
|
- export PATH=\$PATH:\$GRADLE_HOME/bin
|
|
231
|
|
- DONE
|
|
232
|
|
- ```
|
|
|
235
|
+ ```sh
|
|
|
236
|
+ $ cat << DONE >> ~/.bashrc
|
|
|
237
|
+ export GRADLE_HOME=`pwd`
|
|
|
238
|
+ export PATH=\$PATH:\$GRADLE_HOME/bin
|
|
|
239
|
+ DONE
|
|
|
240
|
+ ```
|
|
233
|
241
|
|
|
234
|
242
|
You now are ready to get started with the Java track of Exercism!
|
|
235
|
243
|
|