Amity School of Engineering & Technology Java Installation Guide

Slide Note
Embed
Share

In this detailed guide provided by Amity School of Engineering & Technology, learn how to install and set up Java on your system effectively. The step-by-step instructions cover downloading the Java installer, configuring the installation wizard, setting environmental variables, and more to ensure a smooth Java installation process.


Uploaded on Aug 03, 2024 | 1 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

E N D

Presentation Transcript


  1. Amity School of Engineering & Technology Java Installation and Path Setting 1

  2. Amity School of Engineering & Technology Download Java Installer 2

  3. Amity School of Engineering & Technology Step 1: Run the Downloaded File Double-click the downloaded file to start the installation. 3

  4. Amity School of Engineering & Technology Step 2: Configure the Installation Wizard 4

  5. Amity School of Engineering & Technology Cont.. 5

  6. Amity School of Engineering & Technology Cont.. 6

  7. Amity School of Engineering & Technology Set Environmental Variables in Java 1. Open the Start menu and search for environment variables. 2. Select the Edit the system environment variables result. 7

  8. Amity School of Engineering & Technology Cont.. 8

  9. Amity School of Engineering & Technology Cont.. 3. In the System Properties window, under the Advanced tab, click Environment Variables 9

  10. Amity School of Engineering & Technology Cont.. 4. Under the System variables category, select the Path variable and click Edit 10

  11. Amity School of Engineering & Technology Cont.. 5. Click the New button and enter the path to the Java bin directory 11

  12. Amity School of Engineering & Technology Add JAVA_HOME Variable 1. In the Environment Variables window, under the System variables category, click the New button to create a new variable. 12

  13. Amity School of Engineering & Technology 2. Name the variable as JAVA_HOME 13

  14. Amity School of Engineering & Technology Test the Java Installation Run the Java version in the command prompt to make sure java installed correctly 14

  15. Amity School of Engineering & Technology Write a Test Java Script Open a text editor such as Notepad++ and create a new file class HelloWorld{ public static void main(String args[]){ System.out.println("Hello world!"); } } 15

  16. Amity School of Engineering & Technology Cont.. 16

  17. Amity School of Engineering & Technology 3. Name the file and save it as a Java source file (*.java). 17

  18. Amity School of Engineering & Technology Compile the Test Java Script In the command prompt, change the directory to the file's location and use the following syntax to compile the program: Javac [Filename] 18

  19. Amity School of Engineering & Technology Run the program with the following syntax 19

Related


More Related Content