Skip to content

Commit a5dc13e

Browse files
committed
bootstrap: add JAVA_HOME to ~/.bashrc
1 parent 66b7c0a commit a5dc13e

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

bootstrap/index.html

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,14 @@ <h3 id="Formatter">Formatter</h3>
147147
<h2 id="Tools_installation_on_Ubuntu">Tools installation on Ubuntu</h2>
148148
<p>The command blocks below should be run in a terminal, where each line is
149149
entered separately and followed by the Enter key.</p>
150-
<h3>Visual Studio Code</h3>Follow the installation guide from <a href=
150+
<h3>Visual Studio Code</h3>
151+
<p>Follow the installation guide from <a href=
151152
"https://docs.wpilib.org/en/latest/docs/zero-to-robot/step-2/wpilib-setup.html">
152-
WPILib Docs</a>.
153+
WPILib Docs</a>.</p>
154+
<p>To build robot projects in a terminal, run the following command to set
155+
JAVA_HOME in <code>~/.bashrc</code>:</p>
156+
<p><code>echo 'export JAVA_HOME=~/wpilib/2021/jdk' &gt;&gt;
157+
~/.bashrc</code></p>
153158
<h3>GCC</h3><code>sudo apt-get install gcc</code>
154159
<h3>Git</h3><code>sudo apt-get install git</code>
155160
<h3>Formatter</h3>
@@ -159,9 +164,13 @@ <h3>Formatter</h3>
159164
<h3>CMake</h3><code>sudo apt-get install cmake</code>
160165
<h2 id="Tools_installation_on_Arch_Linux">Tools installation on Arch
161166
Linux</h2>
162-
<h3>Visual Studio Code</h3>Follow the installation guide from <a href=
167+
<h3>Visual Studio Code</h3>
168+
<p>Follow the installation guide from <a href=
163169
"https://docs.wpilib.org/en/latest/docs/zero-to-robot/step-2/wpilib-setup.html">
164-
WPILib Docs</a>.
170+
WPILib Docs</a>.</p>
171+
<p>To build robot projects in a terminal, run the following command to set
172+
JAVA_HOME in <code>~/.bashrc</code>:</p><code>echo 'export
173+
JAVA_HOME=~/wpilib/2021/jdk' &gt;&gt; ~/.bashrc</code>
165174
<h3>GCC</h3><code>sudo pacman -S gcc</code>
166175
<h3>Git</h3><code>sudo pacman -S git</code>
167176
<h3>Formatter</h3>
@@ -174,11 +183,10 @@ <h3>Formatter</h3>
174183
makepkg -si</pre>
175184
<h3 id="CMake">CMake</h3><code>sudo pacman -S cmake</code>
176185
<h2 id="Tools_installation_on_Windows">Tools installation on Windows</h2>
177-
<h3>Visual Studio Code</h3>Follow the installation guide from <a href=
186+
<h3>Visual Studio Code</h3>
187+
<p>Follow the installation guide from <a href=
178188
"https://docs.wpilib.org/en/latest/docs/zero-to-robot/step-2/wpilib-setup.html">
179-
WPILib Docs</a>.
180-
<p>Make sure to have everything checked as it will download everything that
181-
you need to build and deploy the robot projects.</p>
189+
WPILib Docs</a>.</p>
182190
<h3>GCC Compiler</h3>
183191
<ol>
184192
<li>Download the MSYS2 installer from <a href=
@@ -209,9 +217,9 @@ <h3>Formatter</h3>
209217
Failed to find MSBuild toolsets directory.
210218
MSVC integration install failed.</pre>
211219
<p>MSYS2 keeps a separate PATH environment variable from the operating
212-
system. Run the following command to add the LLVM installation to
213-
it.</p><code>echo 'export PATH=$PATH:/c/Program\ Files/LLVM/bin' &gt;&gt;
214-
~/.bashrc</code>
220+
system. Run the following command to add the LLVM installation to it.</p>
221+
<p><code>echo 'export PATH=$PATH:/c/Program\ Files/LLVM/bin' &gt;&gt;
222+
~/.bashrc</code></p>
215223
<p>The following commands install Python and pip, then use pip to install
216224
wpiformat.</p>
217225
<pre>

0 commit comments

Comments
 (0)