Mercurial Hosting > reactionary
comparison src/learn.html.luan @ 102:21dce019b8bb
java on MSYS2
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 28 Jun 2025 13:10:57 -0600 |
parents | b4ac64cb4bd2 |
children |
comparison
equal
deleted
inserted
replaced
101:b4ac64cb4bd2 | 102:21dce019b8bb |
---|---|
214 Java(TM) SE Runtime Environment (build 1.8.0_241-b07) | 214 Java(TM) SE Runtime Environment (build 1.8.0_241-b07) |
215 Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode) | 215 Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode) |
216 ~ $ | 216 ~ $ |
217 </code> | 217 </code> |
218 | 218 |
219 <p>On <a href="https://www.msys2.org/">MSYS2</a>, this won't work initially because <code>java</code> isn't in your path. So from MSYS2: | |
220 | |
221 <code block> | |
222 ~ $ cd '/c/Program Files/Java' | |
223 /c/Program Files/Java $ ls | |
224 jdk1.8.0_202 jre1.8.0_202 | |
225 /c/Program Files/Java $ cd jdk1.8.0_202/ | |
226 /c/Program Files/Java/jdk1.8.0_202 $ ls | |
227 bin javafx-src.zip LICENSE src.zip | |
228 COPYRIGHT jre README.html THIRDPARTYLICENSEREADME.txt | |
229 include lib release THIRDPARTYLICENSEREADME-JAVAFX.txt | |
230 /c/Program Files/Java/jdk1.8.0_202 $ | |
231 </code> | |
232 | |
233 <p>In <code>~/.bash_profile</code>: | |
234 | |
235 <code block> | |
236 export JAVA_HOME="/c/Program Files/Java/jdk1.8.0_202" | |
237 PATH="$JAVA_HOME/bin:$PATH" | |
238 export PATH | |
239 </code> | |
240 | |
241 <p>Now open a new MSYS2 shell and Java should work.</p> | |
242 | |
219 <h3>Learn BeanShell</h3> | 243 <h3>Learn BeanShell</h3> |
220 | 244 |
221 <p>As with Bash, I will write my own <a href="beanshell.html">BeanShell tutorial</a>. Read it.</p> | 245 <p>As with Bash, I wrote my own <a href="beanshell.html">BeanShell tutorial</a>. Read it.</p> |
222 | 246 |
223 <h3>Learn Java</h3> | 247 <h3>Learn Java</h3> |
224 | 248 |
225 <p>Now it's time to read your Java book for beginners and try writing some Java programs. Refer to <a href="https://www.amazon.com/Java-Programming-Language-4th/dp/0321349806/">The Java Programming Language</a> for details and ask ChatGPT for explanations. You do not need to become a Java expert, so don't spend too much time on this. You just need to get the basic idea of Java.</p> | 249 <p>Now it's time to read your Java book for beginners and try writing some Java programs. Refer to <a href="https://www.amazon.com/Java-Programming-Language-4th/dp/0321349806/">The Java Programming Language</a> for details and ask ChatGPT for explanations. You do not need to become a Java expert, so don't spend too much time on this. You just need to get the basic idea of Java.</p> |
226 | 250 |