From 79af35a93e45eb69bbd5f33fdaad380f7b673f34 Mon Sep 17 00:00:00 2001 From: Stephen Enders Date: Tue, 31 Dec 2019 19:07:19 -0500 Subject: Wrote a guide for installing java and intellij on windows --- www/imgs/java-setup/ScreenShot-JavaInstall-1.PNG | Bin 0 -> 153153 bytes www/imgs/java-setup/ScreenShot-JavaInstall-10.PNG | Bin 0 -> 69937 bytes www/imgs/java-setup/ScreenShot-JavaInstall-11.PNG | Bin 0 -> 46871 bytes www/imgs/java-setup/ScreenShot-JavaInstall-12.PNG | Bin 0 -> 96614 bytes www/imgs/java-setup/ScreenShot-JavaInstall-13.PNG | Bin 0 -> 65055 bytes www/imgs/java-setup/ScreenShot-JavaInstall-2.PNG | Bin 0 -> 155053 bytes www/imgs/java-setup/ScreenShot-JavaInstall-3.PNG | Bin 0 -> 106191 bytes www/imgs/java-setup/ScreenShot-JavaInstall-4.PNG | Bin 0 -> 32649 bytes www/imgs/java-setup/ScreenShot-JavaInstall-5.PNG | Bin 0 -> 91010 bytes www/imgs/java-setup/ScreenShot-JavaInstall-6.PNG | Bin 0 -> 25640 bytes www/imgs/java-setup/ScreenShot-JavaInstall-7.PNG | Bin 0 -> 33367 bytes www/imgs/java-setup/ScreenShot-JavaInstall-8.PNG | Bin 0 -> 18749 bytes www/imgs/java-setup/ScreenShot-JavaInstall-9.PNG | Bin 0 -> 41544 bytes www/index.css | 14 ++++ www/java-setup.html | 92 ++++++++++++++++++++++ 15 files changed, 106 insertions(+) create mode 100644 www/imgs/java-setup/ScreenShot-JavaInstall-1.PNG create mode 100644 www/imgs/java-setup/ScreenShot-JavaInstall-10.PNG create mode 100644 www/imgs/java-setup/ScreenShot-JavaInstall-11.PNG create mode 100644 www/imgs/java-setup/ScreenShot-JavaInstall-12.PNG create mode 100644 www/imgs/java-setup/ScreenShot-JavaInstall-13.PNG create mode 100644 www/imgs/java-setup/ScreenShot-JavaInstall-2.PNG create mode 100644 www/imgs/java-setup/ScreenShot-JavaInstall-3.PNG create mode 100644 www/imgs/java-setup/ScreenShot-JavaInstall-4.PNG create mode 100644 www/imgs/java-setup/ScreenShot-JavaInstall-5.PNG create mode 100644 www/imgs/java-setup/ScreenShot-JavaInstall-6.PNG create mode 100644 www/imgs/java-setup/ScreenShot-JavaInstall-7.PNG create mode 100644 www/imgs/java-setup/ScreenShot-JavaInstall-8.PNG create mode 100644 www/imgs/java-setup/ScreenShot-JavaInstall-9.PNG create mode 100644 www/java-setup.html diff --git a/www/imgs/java-setup/ScreenShot-JavaInstall-1.PNG b/www/imgs/java-setup/ScreenShot-JavaInstall-1.PNG new file mode 100644 index 0000000..8f3b96e Binary files /dev/null and b/www/imgs/java-setup/ScreenShot-JavaInstall-1.PNG differ diff --git a/www/imgs/java-setup/ScreenShot-JavaInstall-10.PNG b/www/imgs/java-setup/ScreenShot-JavaInstall-10.PNG new file mode 100644 index 0000000..0b8d9fe Binary files /dev/null and b/www/imgs/java-setup/ScreenShot-JavaInstall-10.PNG differ diff --git a/www/imgs/java-setup/ScreenShot-JavaInstall-11.PNG b/www/imgs/java-setup/ScreenShot-JavaInstall-11.PNG new file mode 100644 index 0000000..468c8bc Binary files /dev/null and b/www/imgs/java-setup/ScreenShot-JavaInstall-11.PNG differ diff --git a/www/imgs/java-setup/ScreenShot-JavaInstall-12.PNG b/www/imgs/java-setup/ScreenShot-JavaInstall-12.PNG new file mode 100644 index 0000000..4753468 Binary files /dev/null and b/www/imgs/java-setup/ScreenShot-JavaInstall-12.PNG differ diff --git a/www/imgs/java-setup/ScreenShot-JavaInstall-13.PNG b/www/imgs/java-setup/ScreenShot-JavaInstall-13.PNG new file mode 100644 index 0000000..568f6d5 Binary files /dev/null and b/www/imgs/java-setup/ScreenShot-JavaInstall-13.PNG differ diff --git a/www/imgs/java-setup/ScreenShot-JavaInstall-2.PNG b/www/imgs/java-setup/ScreenShot-JavaInstall-2.PNG new file mode 100644 index 0000000..f0415b2 Binary files /dev/null and b/www/imgs/java-setup/ScreenShot-JavaInstall-2.PNG differ diff --git a/www/imgs/java-setup/ScreenShot-JavaInstall-3.PNG b/www/imgs/java-setup/ScreenShot-JavaInstall-3.PNG new file mode 100644 index 0000000..9892d22 Binary files /dev/null and b/www/imgs/java-setup/ScreenShot-JavaInstall-3.PNG differ diff --git a/www/imgs/java-setup/ScreenShot-JavaInstall-4.PNG b/www/imgs/java-setup/ScreenShot-JavaInstall-4.PNG new file mode 100644 index 0000000..f16d3c5 Binary files /dev/null and b/www/imgs/java-setup/ScreenShot-JavaInstall-4.PNG differ diff --git a/www/imgs/java-setup/ScreenShot-JavaInstall-5.PNG b/www/imgs/java-setup/ScreenShot-JavaInstall-5.PNG new file mode 100644 index 0000000..e481b6a Binary files /dev/null and b/www/imgs/java-setup/ScreenShot-JavaInstall-5.PNG differ diff --git a/www/imgs/java-setup/ScreenShot-JavaInstall-6.PNG b/www/imgs/java-setup/ScreenShot-JavaInstall-6.PNG new file mode 100644 index 0000000..e3cac92 Binary files /dev/null and b/www/imgs/java-setup/ScreenShot-JavaInstall-6.PNG differ diff --git a/www/imgs/java-setup/ScreenShot-JavaInstall-7.PNG b/www/imgs/java-setup/ScreenShot-JavaInstall-7.PNG new file mode 100644 index 0000000..5cc4d6e Binary files /dev/null and b/www/imgs/java-setup/ScreenShot-JavaInstall-7.PNG differ diff --git a/www/imgs/java-setup/ScreenShot-JavaInstall-8.PNG b/www/imgs/java-setup/ScreenShot-JavaInstall-8.PNG new file mode 100644 index 0000000..d18e75a Binary files /dev/null and b/www/imgs/java-setup/ScreenShot-JavaInstall-8.PNG differ diff --git a/www/imgs/java-setup/ScreenShot-JavaInstall-9.PNG b/www/imgs/java-setup/ScreenShot-JavaInstall-9.PNG new file mode 100644 index 0000000..05ae922 Binary files /dev/null and b/www/imgs/java-setup/ScreenShot-JavaInstall-9.PNG differ diff --git a/www/index.css b/www/index.css index e418ebb..b3fe33f 100644 --- a/www/index.css +++ b/www/index.css @@ -40,6 +40,20 @@ code.inline { padding: 2px 2px; } +.scaled-half { + display:inline; +} +.scaled-half > img { + width: 25%; + height: 25%; +} +.scaled-half:hover > img { + width: 125%; + height: 125%; +} + #wishlist { margin: 2% } #wishlist table thead td { border-bottom: 1px solid #aaa } #wishlist table tbody td { border-bottom: 2px dotted #aaa } + +#tutorial { margin: 2% } diff --git a/www/java-setup.html b/www/java-setup.html new file mode 100644 index 0000000..99ec942 --- /dev/null +++ b/www/java-setup.html @@ -0,0 +1,92 @@ + + + + + + + Java Setup for Windows + + +
+

Installing Java

+

To install Java you need to install the Java Development Kit (JDK). It can be downloaded from here: https://jdk.java.net/13

+

You will want to select the zip download for Windows. +
+ +
Hover to zoom +

+

+ After downloading the zip you will want to unzip it (into a folder, should by default) and then copy that folder into C:\Program Files\Java\

+
+ +
Hover to zoom +

+ When I did this myself, it unzipped into a folder jdk-13.0.1. By the end you should have the following folder structure: C:\Program Files\Java\jdk-13.0.1 +

+

Setting up your environment

+

+ In order to make the JDK discoverable by your programs you need to add the JDK folder to your PATH environment varible. This is best done by first setting up a varible for the java directory JAVA_HOME that points directly to the directory you copied the unzipped files into.

+
+ +
Hover to zoom +

+ Once you've setup the JAVA_HOME variable you can add that varible to your PATH point to the subdirectory /bin. This can be confusing if you haven't done this before. Here is a StackOverflow article how to add environments variables in Java 10. +

+
+ +
Hover to zoom +

Optionally, if you want to test that this worked, you can open up the command prompt (or powershell) by opening the start menu and typing/looking for cmd.exe. Then you can type java -version which will output the version and some additional information. You should see java version 13.0.1.

+

IntelliJ Community Edition

+

I recommend using IntelliJ Community Edition instead of Eclipse. They're both open source but I use IntelliJ at my job daily and its a fantastic, out of the box editor. Where Eclipse requires a lot more setup steps and plugins to get it to be "complete". + Feature wise they do the same things, so everything they do in Udemy via Eclipse should work in IntelliJ.

+

Downloading

+

To Download go to www.jetbrians.com/idea/download and click the Exe download for community edition.

+
+ +
Hover to zoom +

Once the download is complete you can run the installer. You should select your theme, then just use the "Install defaults" option at the bottom, or just Next through the rest of setup, as you shouldn't need any additional plugins. And if you do they all can be installed later

+

You're Done! You can start Udemy now just ignoring their install/setup instructions. I have some additional steps below to help verify everything works and do some basic operatoins in IntelliJ (Create a Project, Create a class, Run/Debug) but you can refer back to here once you get there in Udemy

+

Using IntelliJ

+

Jetbrains actually has a whole FAQ/Tutorial section that can help you with any questions too. But here is a brief overview of the core functions of IntelliJ

+

Creating a project

+

When you first open IntelliJ it shows a splash screen where you can open an existing project or create a new one. You will at first want to create a new project.

+
+ +
Hover to zoom +

You want to choose a java (the default) and select the version of the JDK (should default to 13.0.1, if not click browse and navigate to the folder you copied it to from the first step: C:\Program Files\Java\jdk-13.0.1. +

+
+ +
Hover to zoom +

Then you can name the project and choose the directory you want to files in.

+
+ +
Hover to zoom +

Now you should have a project setup that you can create your program in!

+
+ +
Hover to zoom +

Creating a class

+

To create a class in IntelliJ you should expand the projects menu on th left side and right click the src folder. You then select "create class". This will add it directly into your src folder.

+
+ +
Hover to zoom +

From here you can start writing code!

+
+ +
Hover to zoom +

Running a Program

+

Java code is executed from the main method public static void main(String[] args). You can run your main method by either right clicking within it and selecting run. Or when the file containing your main method is open using the Run button at the top right of the editor.

+
+ +
Hover to zoom +

Debugging a Program

+

To debug you can set breakpoints in your code by selecting the left hand side by the line numbers. This will add a red dot which tells the program to pause executing when it reaches the code at that line. To do this you need to run in debug mode (rather than plain run mode) by right clicking your main method and choosing Debug, or by using the debug icon at the top right of the editor window.

+
+ +
Hover to zoom +

Additional Help

+

If you need any help at all feel free to text or email. If its a code issue, either a screenshot of the code or the code itself will help!

+
+ + -- cgit v1.2.3-54-g00ecf