Options and more options for programming in Java

  • Slides: 25
Download presentation
Options, and more options, for programming in Java Your main options are: F Run

Options, and more options, for programming in Java Your main options are: F Run the necessary software on an NKU-provided Virtual Machine (VM) F Install the software on your own computer Liang, Introduction to Java Programming, Eleventh Edition, (c) 2017 Pearson Education, Inc. All rights reserved. 1

Using an NKU-provided VM If you want to use an NKU-provided Virtual Machine, then

Using an NKU-provided VM If you want to use an NKU-provided Virtual Machine, then you again have some options: Option 1. Use the computers in the GH 322 or GH 335 labs Option 2. Use a web browser from any computer Liang, Introduction to Java Programming, Eleventh Edition, (c) 2017 Pearson Education, Inc. All rights reserved. 2

Accessing the COI Labs VM from GH 322 and GH 335 F To use

Accessing the COI Labs VM from GH 322 and GH 335 F To use the computers in the GH 322 or GH 335, login with your NKU credentials (i. e. username and password). The computers are running Mac OS X, but you are going to use them to access a Windows 10 virtual machine. F Under the Finder (smiley face icon) go to Applications and run the VMWare Horizon Client program F Click on COI Labs. You will be presented with a Windows 10 desktop. F Go to Slide 5 “Running Intelli. J from the COI Labs VM” Liang, Introduction to Java Programming, Eleventh Edition, (c) 2017 Pearson Education, Inc. All rights reserved. 3

Accessing the COI Labs VM from a web browser F You can access the

Accessing the COI Labs VM from a web browser F You can access the COI VM from a web browser: F Feature highlights are discussed at https: //inside. nku. edu/it/servicecatalog/softwarecatalog/vmware. html F Visit https: //view. nku. edu/ F Click Vmware Horizon HTML Access. (Note that you could instead click Install Vmware Horizon Client if you want to run the client directly on your computer, rather than through a browser. ) F Login with your NKU credentials (username/password) F Click on COI Labs Liang, Introduction to Java Programming, Eleventh Edition, (c) 2017 Pearson Education, Inc. All rights reserved. 4

Running Intelli. J from the COI Labs VM F The COI Labs VM presents

Running Intelli. J from the COI Labs VM F The COI Labs VM presents a Windows 10 desktop. F Click the Start button (looks like four tiny windows in the lower left) F Scroll down to Jet. Brains and click Intelli. J IDEA Community Edition F Jump to slide 19: Running Intelli. J IDEA Liang, Introduction to Java Programming, Eleventh Edition, (c) 2017 Pearson Education, Inc. All rights reserved. 5

Installing a Java programming environment on your computer F Most CSC 260 students eventually

Installing a Java programming environment on your computer F Most CSC 260 students eventually install a development environment on their own computers. To do this you will need to download and install: (1) a Java Development Kit (JDK) (2) an Integrated Development Environment (IDE) Liang, Introduction to Java Programming, Eleventh Edition, (c) 2017 Pearson Education, Inc. All rights reserved. 6

Downloading a JDK F Go to http: //www. oracle. com/technetwork/javase /downloads/index. html F Do

Downloading a JDK F Go to http: //www. oracle. com/technetwork/javase /downloads/index. html F Do not download Java SE 12. 0. 2 (i. e. version 12) F Versions 8 through 11 are fine (e. g. Java SE 11. 0. 4 or Java SE 8 u 221) F Click the JDK DOWNLOAD button Liang, Introduction to Java Programming, Eleventh Edition, (c) 2017 Pearson Education, Inc. All rights reserved. 7

Downloading a JDK F Click that you accept the license F Download the Java

Downloading a JDK F Click that you accept the license F Download the Java SE Development Kit installation program that corresponds to your platform (Windows, Mac, Linux, etc). For example: jdk-11. 0. 4_windows-x 64_bin. exe F Oracle will ask you to sign in or create an Oracle account. (Their web site will step you through the account creation process. ) F Once you sign in, the installation program will download to your computer. Liang, Introduction to Java Programming, Eleventh Edition, (c) 2017 Pearson Education, Inc. All rights reserved. 8

Installing the JDK F 1. Run the installation program. (On Windows this consists of

Installing the JDK F 1. Run the installation program. (On Windows this consists of double clicking jdk-11. 0. 4 windows-x 64_bin. exe. ) You will see the JDK Setup dialog displayed. F 2. Click Next to display the JDK Custom Setup dialog. F 3. You may install the JDK in a custom directory. For simplicity, don’t change the directory. Click Next to install the JDK. F 4. After the installation completes, click Close. Liang, Introduction to Java Programming, Eleventh Edition, (c) 2017 Pearson Education, Inc. All rights reserved. 9

Integrated Development Environments (IDEs) F An Integrated Development Environment is a program for developing

Integrated Development Environments (IDEs) F An Integrated Development Environment is a program for developing programs. F It is integrated in the sense that it allows you to perform multiple development tasks from a single program: - edit source files (code) - link multiple source files into a single project - compile a project - run a project - debug a project Liang, Introduction to Java Programming, Eleventh Edition, (c) 2017 Pearson Education, Inc. All rights reserved. 10

Intelli. J IDEA F The default IDE that we use in CSC 260 is

Intelli. J IDEA F The default IDE that we use in CSC 260 is Intelli. J IDEA – this is the IDE that I will use in class. F Intelli. J is a very popular IDE for Java development. F It works on Windows, Mac, and Linux. F It has two versions: For the purposes of this course, I would suggest the Community version. Liang, Introduction to Java Programming, Eleventh Edition, (c) 2017 Pearson Education, Inc. All rights reserved. 11

Jet. Brain Student License F If you decide to use the Ultimate version, you

Jet. Brain Student License F If you decide to use the Ultimate version, you need to request the student license from Jet. Brain. F If you are going to use the Community version, just skip the following 2 pages and start reading the installation instructions on slide 8. F To request the student license, fill out the application form at the following website: F https: //www. jetbrains. com/shop/eform/students Liang, Introduction to Java Programming, Eleventh Edition, (c) 2017 Pearson Education, Inc. All rights reserved. 12

Jet. Brain Student License F After sending the request, you will receive a confirmation

Jet. Brain Student License F After sending the request, you will receive a confirmation email in a day or so. F If you don’t receive the email, it is most likely that it is filtered as a spam and quarantined. In this case, go to https: //inside. nku. edu/it/webmail. html and click “Access Quarantine” to release the license email. F Be sure to remember your username and password. Liang, Introduction to Java Programming, Eleventh Edition, (c) 2017 Pearson Education, Inc. All rights reserved. 13

Installing Intelli. J IDEA F Go to https: //www. jetbrains. com/idea/download/#section =windows F Select

Installing Intelli. J IDEA F Go to https: //www. jetbrains. com/idea/download/#section =windows F Select your platform: Windows, mac. OS, or Linux. F Select your desired version of Intelli. J: Ultimate or Community. F Select you’re a file format: . exe or. zip for Windows and DOWNLOAD the file. F You will have the option of registering for meail from Jet. Brains, but doing so is optional. Liang, Introduction to Java Programming, Eleventh Edition, (c) 2017 Pearson Education, Inc. All rights reserved. 14

Installing Intelli. J IDEA F Once the installer is downloaded, double click to open

Installing Intelli. J IDEA F Once the installer is downloaded, double click to open it. You will see a pop-up window as follows. F Click “next”. Liang, Introduction to Java Programming, Eleventh Edition, (c) 2017 Pearson Education, Inc. All rights reserved. 15

Installing Intelli. J IDEA F Choose the folder to install Intelli. J. I recommend

Installing Intelli. J IDEA F Choose the folder to install Intelli. J. I recommend using the default folder. F Click “next”. Liang, Introduction to Java Programming, Eleventh Edition, (c) 2017 Pearson Education, Inc. All rights reserved. 16

Installing Intelli. J IDEA F Check the options based on your preferences. It is

Installing Intelli. J IDEA F Check the options based on your preferences. It is okay to leave them all unchecked. F Click “next”. Liang, Introduction to Java Programming, Eleventh Edition, (c) 2017 Pearson Education, Inc. All rights reserved. 17

Installing Intelli. J IDEA F Keep clicking on the “Install” buttons to install Intelli.

Installing Intelli. J IDEA F Keep clicking on the “Install” buttons to install Intelli. J until you see the following window. F Optionally, F Click select “Run Intelli. J IDEA”. “Finish”. Liang, Introduction to Java Programming, Eleventh Edition, (c) 2017 Pearson Education, Inc. All rights reserved. 18

Running Intelli. J IDEA F The first time you run Intelli. J, it will

Running Intelli. J IDEA F The first time you run Intelli. J, it will ask if you would like to import previous settings. Probably you don’t need to do that. F Click “OK” to run Intelli. J. Accept the terms of the User Agreement. F If you are using Ultimate, you will be asked to enter the username and password to activate the 19 license. Liang, Introduction to Java Programming, Eleventh Edition, (c) 2017 Pearson Education, Inc. All rights reserved.

Installing Intelli. J using Toolbox F If you want to use other tools such

Installing Intelli. J using Toolbox F If you want to use other tools such as Clion (C++) or Py. Charm (Python), you can download Jet. Brain’s Toolbox app. Toolbox makes it easier to install and update the full range of Jet. Brains IDEs. F If interested, go to https: //www. jetbrains. com/toolbox/app/ to download and install Toolbox. Liang, Introduction to Java Programming, Eleventh Edition, (c) 2017 Pearson Education, Inc. All rights reserved. 20

Installing Intelli. J using Toolbox F Select Intelli. J Community or Ultimate (when you

Installing Intelli. J using Toolbox F Select Intelli. J Community or Ultimate (when you need more advanced features). Liang, Introduction to Java Programming, Eleventh Edition, (c) 2017 Pearson Education, Inc. All rights reserved. 21

Configuring Intelli. J IDEA F Choose either the Dark theme or the Light theme,

Configuring Intelli. J IDEA F Choose either the Dark theme or the Light theme, as you prefer. F Click “Skip Remaining and Set Defaults”. Liang, Introduction to Java Programming, Eleventh Edition, (c) 2017 Pearson Education, Inc. All rights reserved. 22

Try the first assignment F You are now ready to commence with CSC 260

Try the first assignment F You are now ready to commence with CSC 260 L_Lab 01, which will ask you to click “Create New Project”. Liang, Introduction to Java Programming, Eleventh Edition, (c) 2017 Pearson Education, Inc. All rights reserved. 23

Try CSC 260 L Lab 1 will step you through the process of using

Try CSC 260 L Lab 1 will step you through the process of using Intelli. J IDEA to create and run a program. F When it comes time to submit your programs, do so by uploading them through Canvas. If you are using the COI Labs VM, you can still run a browser from there, so accessing Canvas is just as easy as in a non-VM environment. Your files will be wherever you saved your projects. By default that would be in: C: Users<your username>Idea. Projects. You need to submit only the relevant. java files, which will be in subfolders named src. F Liang, Introduction to Java Programming, Eleventh Edition, (c) 2017 Pearson Education, Inc. All rights reserved. 24

Supplemental help with Intelli. J IDEA F More detailed instructions on using Intelli. J

Supplemental help with Intelli. J IDEA F More detailed instructions on using Intelli. J IDEA, including video tutorials, can be found at: F https: //www. jetbrains. com/idea/documentation/ Liang, Introduction to Java Programming, Eleventh Edition, (c) 2017 Pearson Education, Inc. All rights reserved. 25