Today is Monday, 4th July 2022

Archive for September, 2014

Java JDBC Tutorial – Part 12.6: Connect Java Swing GUI to a MySQL Database

In this video we will learn how to to connect a Java GUI to a MySQL database. We will create a form to add data into the database.

Please SUBSCRIBE to this channel

Download Java Source Code

How To Install Java JDK 8 on Windows 8

In this video you will learn how to install Java JDK 8 on Windows 8.

Please SUBSCRIBE to this channel

Time – 00:00
Hi, this is Chad (Shod) with In this video you will learn how to install Java JDK Version 8 on a Microsoft Windows 8. The Java development kit is used to compile and run Java programs. Okay, let’s get started.

Time – 00:15
The first thing we need to do is download the Java development kit. Open up a browser, go into Google, and we’ll type in download jdk 8. This should give us some good search links. We’ll select the link here at the top. That’ll take us to Oracle’s website. Once we’re here … we’re at the download page … first thing I’ll do is accept the license agreement, then I’ll go and down the version of the JDK for my operating system. I’m using Windows 8, so I’ll use the 64 bit download. It’ll go through prompt me to save the download. I’ll hit save. This will take a while, so I’ll come back once it’s complete.

Time – 00:48
The download’s complete. I’ll move into my Downloads folder, and there’s the JDK that’s been downloaded. I’ll double click it, and this will start the actual install wizard. I’ll hit next to start the installation. I’ll accept the default program installation directory. Hit next, and the development process will start. Again, this will take a bit. I’ll come back once we finish this first part of it.

Time – 01:16
When you finish the first part, then you have to install the Java runtime environment, the JRE. Again I’ll hit next and let that install. That’s it. The JDK’s installed. What I need to do is setup the actual system path so I can use the Java C command from the command line. I’ll get the actual installation directory of where the Java development kit was installed, and I’ll just copy this directory path because I’m going to need it to set up my system control panel. I’ll just copy this entry here. I’ll move over to my start window, and I will bring up the actual control panel for my operating system.

Time – 01:52
I’ll just go into the top right. I’ll hit the magnifying glass. I’ll type in control panel. Select the first link there to launch the control panel. Now that the control panel’s up, I’ll go to system and security. I will choose system, and then I’ll choose advanced system settings, and then I will click environment variables. Once I have the environment variables, I’m going to look for the path system variable and I’ll click edit. Now what I’ll do at the beginning of this value I’ll drop in or paste the actual JDK installation directory that I had. Make sure you include the slash bin on there with a semicolon. Hit okay, and then finally hit the final okay.

Time – 02:46
Now I can verify my installation. What I need to do now is open up a DOS window or a command prompt and test it out. Here I’ll just type in cmd. My command prompt opened. At this point I’m going to check for Java. Say Java – version and then Javac- version, and I should get 1.8 for both of them, which correlates to Java 8. This looks really good. We were successful installing Java 8 on Windows 8.

Time – 03:14
This wraps up our discussion on installing Java 8. What I’d like for you to do is go ahead and subscribe to our channel to view more videos on Java, click the thumbs up to like our video, also visit our website, to keep up with Java video tutorials.

Java JDBC Tutorial – Part 13: Reading Database Connection Info from a Properties file with MySQL

In this video tutorial, we will learn how to connect to a database using a configuration file. In particular, we will read database configuration information from a properties file using java.util.Properties

Please SUBSCRIBE to this channel

Download Java Source Code