IntelliJ Idea Installation | Lecture 2 | Java and DSA Foundation Course

College Wallah
23 Oct 202207:56

Summary

TLDRIn this video, Maanvi walks viewers through the process of setting up a Java development environment on both Windows and macOS systems. She explains how to install the Java Development Kit (JDK) and IntelliJ IDEA, a popular integrated development environment (IDE) for writing and running Java code. The tutorial includes step-by-step instructions for downloading, installing, and configuring these tools, followed by running a simple 'Hello World' Java program. This video provides a comprehensive guide for beginners looking to start coding in Java on their computers.

Takeaways

  • 😀 The video is about setting up a Java environment on a system.
  • 💻 Two essential installations are needed: JDK (Java Development Kit) and IntelliJ IDEA.
  • 🔧 The speaker demonstrates how to set up Java on both Windows and Mac OS.
  • 📥 For Windows, the process involves downloading the JDK and IntelliJ IDEA from their official websites.
  • ⚙️ During installation, it's recommended to use default settings and ensure Java is properly installed.
  • 🚀 After installing JDK, IntelliJ IDEA is installed, with a focus on the free Community version.
  • 🔍 IntelliJ IDEA automatically detects the JDK, so no extra configuration is needed.
  • 👩‍💻 A basic Java program (Hello World) is demonstrated in IntelliJ IDEA, showing how to run Java code.
  • 🔄 Mac OS users need to download the appropriate version of JDK and IntelliJ IDEA based on their processor (Intel or M1/M2).
  • 🎉 After completing the installations, the first Java program is successfully run on both Windows and Mac OS.

Q & A

  • What is the purpose of this video?

    -The video aims to guide viewers through setting up the environment to run Java code, including installing JDK (Java Development Kit) and IntelliJ IDEA on both Windows and macOS.

  • What are the two main tools required to run Java in this video?

    -The two main tools required are JDK (Java Development Kit) and IntelliJ IDEA, an Integrated Development Environment (IDE) for writing and running Java code.

  • How does the video suggest installing JDK on a Windows system?

    -The video suggests downloading the latest version of JDK from the official Oracle website, running the installer, and following the default settings without any changes.

  • What version of IntelliJ IDEA is recommended in the video, and why?

    -The video recommends downloading the Community version of IntelliJ IDEA because it is free and sufficient for the tasks in the course, eliminating the need for the paid Ultimate version.

  • What steps are involved in installing IntelliJ IDEA on Windows?

    -The steps include downloading the installer from the IntelliJ IDEA website, selecting options like creating a desktop shortcut, and installing the software. After installation, the system must be restarted.

  • What should users do after installing IntelliJ IDEA for the first time?

    -Users should not import any settings and click 'New Project'. IntelliJ IDEA will automatically detect the installed JDK, so no additional configuration is needed.

  • What is the first Java program created in the video, and how is it structured?

    -The first Java program created is called 'First Java Program'. The basic structure includes a template with a public class and the 'public static void main' method, which serves as an entry point for running Java code.

  • What is the purpose of the 'Run' button in IntelliJ IDEA?

    -The 'Run' button allows the user to execute the Java program. When clicked for the first time, it may take longer to run, but subsequent runs will be quicker.

  • What output is expected after running the first Java program?

    -The expected output after running the first Java program is 'Hello World', which confirms that the setup and code execution were successful.

  • How is the process of setting up Java on macOS different from Windows?

    -On macOS, users need to download the JDK suitable for their processor (Intel or M1/M2) and follow similar steps as in Windows. The installation process for IntelliJ IDEA also involves downloading the Community version and creating the first Java project.

Outlines

00:00

🖥️ Setting up Java Development Environment on Windows

In this paragraph, the presenter introduces the process of setting up a Java development environment on a system. This involves installing two essential components: the Java Development Kit (JDK) and IntelliJ IDEA (an Integrated Development Environment or IDE). The video demonstrates the installation on both Windows and macOS, starting with Windows. The presenter explains the step-by-step process of downloading the JDK from the official website, installing it with default settings, and skipping unnecessary documentation steps. The JDK installation is completed, and next, the presenter moves on to installing IntelliJ IDEA. The community version of IntelliJ IDEA is recommended as it's sufficient for the tasks in this course. The paragraph emphasizes the ease of writing and running Java code using IntelliJ IDEA.

05:04

💻 Installing Java and IntelliJ IDEA on macOS

This paragraph focuses on setting up Java and IntelliJ IDEA on macOS. The presenter explains the importance of selecting the correct version of JDK based on the type of processor (M1, M2, or Intel) and how to download the appropriate package. The installation process is straightforward, requiring no changes to default settings. The presenter also walks through downloading and installing the community version of IntelliJ IDEA, stressing that there is no need for the paid ultimate version. After installation, the first Java program is written and run, showcasing a 'Hello World' example. The steps complete the setup of the Java development environment on macOS, mirroring the process followed for Windows.

Mindmap

Keywords

💡JDK (Java Development Kit)

The Java Development Kit (JDK) is a software development kit used to develop Java applications. In the video, it is the first tool the speaker installs to set up the environment for running Java code. JDK provides the essential components like the Java Runtime Environment (JRE) and compilers necessary for compiling and running Java programs.

💡IntelliJ IDEA

IntelliJ IDEA is an integrated development environment (IDE) used for writing, editing, and running Java code. The video focuses on the installation of the 'Community Version' of IntelliJ IDEA, which is free and sufficient for the tasks in the video. The speaker explains how IntelliJ IDEA simplifies writing and running Java programs with its user-friendly interface.

💡Windows Installation

This refers to the process of setting up the Java environment on a Windows operating system. The speaker begins with a step-by-step guide on downloading and installing JDK and IntelliJ IDEA on a Windows machine, emphasizing the importance of choosing default settings for a smooth installation process.

💡Mac OS Installation

Similar to the Windows installation, the video covers the setup process for Mac OS users. It includes instructions on downloading the correct version of JDK and IntelliJ IDEA, particularly advising users to download versions based on their processor type, such as M1, M2, or Intel processors.

💡Hello World Program

The 'Hello World' program is a simple Java program that prints 'Hello World' to the console, commonly used to introduce basic syntax and functionality. In the video, the speaker runs this program as the first example after setting up the environment to show that everything is working correctly.

💡Public Class

In Java, a 'public class' is a class that can be accessed by any other class. The video briefly touches on this concept when showing the basic structure of the first Java program, explaining that it is a core part of almost every Java program the viewer will encounter.

💡Static Void Main

‘Static void main’ is the entry point of any Java application, where the program starts executing. The speaker highlights its importance in the program template shown in the video, explaining that this method is required to run Java applications.

💡Source Folder

The source folder in a Java project is where the source code files are stored. The video demonstrates how to locate the source folder in IntelliJ IDEA and explains that this is where the user will write and manage their Java code files.

💡Run Button

The run button in IntelliJ IDEA is used to compile and execute the Java program. The speaker shows how to use this button to run the 'Hello World' program for the first time, explaining that it may take longer to run the first time but will be faster in subsequent runs.

💡Java Program Template

A Java program template is the pre-written basic structure of a Java program that includes necessary components like the main class and method. The video introduces this concept when explaining the initial code structure that appears in IntelliJ IDEA, calling it a template that users will often encounter in their Java coding journey.

Highlights

Introduction to setting up a Java environment on Windows and Mac OS.

Two main installations required: JDK (Java Development Kit) and IntelliJ IDEA.

Step-by-step guide to downloading and installing JDK on Windows.

Instructions on installing IntelliJ IDEA Community version and why it's preferred for this course.

Detailed walkthrough of configuring IntelliJ IDEA after installation, including setting default options.

Explanation of Java code templates and the basic structure of a Java program in IntelliJ IDEA.

Running the first Java program (Hello World) in IntelliJ IDEA, with an emphasis on the ease of running code.

Common troubleshooting steps, like restarting the computer after installing IntelliJ IDEA.

Instructions for setting up the Java environment on Mac OS, including the choice of versions based on processor type.

Steps to install JDK and IntelliJ IDEA on Mac OS, including handling system requirements.

Tips on configuring IntelliJ IDEA for the first time on Mac OS, including setting up a new Java project.

The process of writing and running the first Java program on Mac OS, highlighting common settings and default options.

Emphasis on using the Community version of IntelliJ IDEA for all coding practices in the course.

Importance of keeping the environment setup straightforward by not altering default settings during installations.

Final walkthrough on executing Java programs efficiently after initial setup, demonstrating the quick run feature in IntelliJ IDEA.

Transcripts

play00:00

हेलो एवरीवन दिस इस मानवी और आज के वीडियो

play00:02

में हम अपने सिस्टम में जावा रन करने का

play00:05

एनवायरनमेंट सेटअप करने वाले हैं और

play00:08

सपने सिस्टम में पहली बार जावा का कोड भी

play00:10

रन करके देखेंगे अब ये करने के लिए हमें

play00:14

दो चीज इंस्टॉल करनी है पहला जेडीके विच

play00:17

इस शॉर्ट फॉर जावा डेवलपमेंट किट एंड

play00:19

दूसरा इंटेलिजेंस आइडिया विच इस वेयर सी

play00:22

विल राइट आर जावा कोड

play00:25

और मैं ये दोनों ही चीज आपको विंडोज और

play00:27

मैक ओएस दोनों ऑपरेटिंग सिस्टम में करके

play00:29

दिखाने वाली हूं और आप अपने ऑपरेटिंग

play00:32

सिस्टम के अकॉर्डिंग वीडियो को फॉलो कर

play00:34

सकते हैं सो लेट्स गेट स्टार्टेड विथ

play00:36

विंडोज इंस्टॉलेशन

play00:38

यह डॉक्यूमेंट शेयर कर दिया

play00:43

इन चीजों को डाउनलोड करने के डायरेक्ट

play00:45

लिंक्स दिए गए हैं आप या तो इस लिंक पर

play00:48

डायरेक्टली क्लिक कर सकते हैं या फिर इस

play00:50

वेबसाइट पर जा सकते हैं ये और अकाल के

play00:53

ऑफिशल वेबसाइट है जहां से आप लेटेस्ट

play00:55

वर्जन और जेडीके डाउनलोड करेंगे दिस वैन

play00:57

एक्स 64 इंस्टॉल

play01:02

खोलने है और यस पे क्लिक करना है

play01:06

उसके बाद नेक्स्ट पे क्लिक करना है फिर से

play01:09

नेक्स्ट पे क्लिक करना है कोई डिफॉल्ट

play01:10

सेटिंग अभी तक हमने चेंज नहीं की है

play01:13

वेटिंग फॉर जावा तू गेट इंस्टॉल दैन यू

play01:17

विल गेट ऑन डी स्क्रीन यहां पर आकर आपको

play01:19

नेक्स्ट स्टेप्स पे क्लिक नहीं करना है इट

play01:21

विल जस्ट टेक यू तू रीड मोर डॉक्यूमेंटेशन

play01:23

एंड ऑल डेट स्टफ सो यू जस्ट क्लोस इट तो

play01:26

पहला स्टेप हमारा हो चुका है जेडीके हमने

play01:29

इंस्टॉल कर लिया है सिस्टम में दूसरी चीज

play01:31

हमें डाउनलोड करनी है इंटेलिजेंट आइडिया

play01:33

इस लिंक पे क्लिक करेंगे तो आप पहुंच

play01:36

जाएंगे इंटेलिजेंस आइडिया डाउनलोड के पेज

play01:38

पे हमको कम्युनिटी वर्जन डाउनलोड करना है

play01:41

सी जो जितना भी हम इस कोर्स में करना है

play01:43

वो कम्युनिटी वर्जन में हो सकता है तो

play01:45

आपको पेड़ लेने की कोई जरूरत नहीं है यू

play01:47

कैन जस्ट डायरेक्टली डाउनलोड दी कम्युनिटी

play01:49

वर्षण

play01:50

अब यह इंटेलिजेंस आइडिया है क्या

play01:52

इंटेलिजेंस आइडिया नहीं एक्चुअली

play01:53

इंटीग्रेटेड डेवलपमेंट एनवायरनमेंट है

play01:56

जिसे आईडी ए भी कहा जाता है

play01:59

अब उसे कर सकते हैं परफेक्ट जावा आय ऑलवेज

play02:02

प्रेफर यूजिंग इंटेलिजेंस आइडिया इट रियली

play02:05

मेक इट वेरी इजी तू राइट एंड रन जावा कोड

play02:11

अब जैसे ही ये फाइल डाउनलोड

play02:23

इंस्टॉलेशन ऑप्शंस में आपको कुछ ये क्रिएट

play02:26

डेस्कटॉप शॉप शॉर्टकट अपडेट पथ वेरिएबल

play02:29

कॉन्टैक्ट्स में न्यू अपडेट डॉट जावा इन

play02:32

सारे चेकबॉक्स पे टिक करना है एंड दें यू

play02:35

जस्ट हैव तू प्रेस नेक्स्ट एंड क्लिक

play02:37

इंस्टॉल

play02:39

वंस डिसोल्वड सी विल राइट एंड आर फर्स्ट

play02:45

इंटेलिजेंट आइडिया इंस्टॉल हो चुका है बट

play02:48

अब प्रॉब्लम क्या है प्रॉब्लम नहीं

play02:50

एक्चुअली एक स्टेप है आपको अपने कंप्यूटर

play02:52

को रीस्टार्ट करना पड़ेगा बिफोर यू कैन रन

play02:54

इंटेलिजेंस आइडिया सो आई एम गोना क्लिक ऑन

play02:57

रिबूट नौ एंड आई विल सी यू आफ्टर रिबूटिंग

play02:59

माय सिस्टम सो इंटेलिजेंट आइडिया

play03:02

आई मेक के बाद

play03:04

ये स्क्रीन दिखेगी विच विल आस्क यू तू

play03:06

इंपॉर्टेंट टेली आइडिया सेटिंग्स तो आप डू

play03:08

नॉट इंपोर्ट सेटिंग्स पे क्लिक कर सकते

play03:10

हैं

play03:12

यहां ए के आपको न्यू प्रोजेक्ट पे क्लिक

play03:16

करना है दिस इस दी फर्स्ट वेलकम इन पेज ऑफ

play03:18

इंटेलिजेंस आइडिया एंड व्हेन यू क्लिक ऑन

play03:20

न्यू प्रोजेक्ट इसमें दी जो हमने जेडी के

play03:23

डाउनलोड किया इट हज बिन ऑलरेडी ऑटोमेटेकली

play03:26

डिटेक्टेड बाय इंटेलिजेंस आइडिया तो हमें

play03:28

अलग से कोई कॉन्फ़िगरेशन उसके लिए नहीं

play03:30

करनी पड़ी तो अब हम पहला अपना जावा

play03:33

प्रोग्राम लिखने जा रहे हैं इसका नाम चलिए

play03:35

लिखते हैं फर्स्ट

play03:37

जावा प्रोग्राम

play03:47

साइड में देखिए प्रोजेक्ट

play03:51

आपको दिख रहे हैं और प्रोजेक्ट में आपको

play03:54

एक फोल्डर दिखेगा सोर्स आपने उसे सोर्स

play03:56

फोल्डर पे क्लिक करना है और ये में फाइल

play03:58

खोलने है अब इस में फाइल में देखिए

play04:01

कुछ-कुछ लिखा हुआ है आप यह समझिए की ये

play04:03

जावा कोड का टेंप्लेट है और ये कुछ-कुछ

play04:05

आने वाले वीडियो में आपको समझ आएगा की ये

play04:07

क्या लिखा है बट समझ लीजिए की एक बात जावा

play04:10

का सबसे बेसिक प्रोग्राम लिखा हुआ है यह

play04:13

काइंड ऑफ एक टेंप्लेट भी आप समझ सकते हैं

play04:14

की ये पब्लिक क्लास में पब्लिक स्टैटिक

play04:17

वाइड में

play04:18

तो चलिए क्लास का नाम है ये पब्लिक

play04:21

स्टैटिक वाइड मिन इस तरह की चीज आपको हर

play04:23

जगह प्रोग्राम में देखने के लिए मिलेगी अब

play04:25

हम इसको रन करते हैं

play04:28

यहां पर यह एक छोटा सा बटन है जिस पर आप

play04:31

करेंगे तो रन मिंट और जावा लिखा आएगा आपने

play04:33

बस इस पे क्लिक करना है और जावा का

play04:35

प्रोग्राम रन होना शुरू हो गया है जब आप

play04:38

पहली बार रन करेंगे तो इस प्रक्रिया में

play04:40

थोड़ा टाइम लगेगा एक बार यह हो जाएगा तो

play04:43

आप दूसरी बार रन करेंगे तो इसमें टाइम

play04:46

नहीं लगेगा जैसे अब ये रन हो गया है और

play04:49

हेलो वर्ड आउटपुट हमारी स्क्रीन पर ए गया

play04:51

है सो हेलो वर्ल्ड तू प्रोग्रामिंग दिस

play04:54

इसे तू आर फर्स्ट टावर प्रोग्राम सो

play04:57

इंस्टॉलेशन हज बिन कंप्लीट फॉर विंडोज

play04:59

मशीन नौ लेट्स गेट तू मैक ओएस सो नौ सी

play05:03

विल डाउनलोड डी से तू थिंग्स

play05:06

यू जस्ट हैव तू क्लिक ऑन दिस लिंक और यू

play05:09

कैन गो दी वेबसाइट एंड डाउनलोड दी लेटेस्ट

play05:12

वर्जन ऑफ जावा मेक सर इफ यू हैव n1

play05:14

प्रोसेसर और M2 वर्जन डाउनलोड

play05:18

एंड इफ यू हैव इंटेल प्रोसेसर यू मस्ट

play05:21

डाउनलोड

play05:24

सॉइल गो हर एंड आई विल डाउनलोड

play05:28

माय सिस्टम रिक्वायरमेंट्स

play05:35

थिस इस डाउनलोडेड क्लिक ऑन इट ओपन इट एंड

play05:38

क्लिक ऑन द पैकेज एंड जस्ट कंटिंग डोंट

play05:41

चेंज अन्य डिफॉल्ट सेटिंग्स

play05:44

तो योर पासवर्ड यू जस्ट नीड तू इंटर

play05:51

[संगीत]

play05:55

क्योंकि इंस्टालर और ऑलरेडी बिन इंस्टॉल

play05:59

नौ सी विल इंस्टॉल डाउनलोड इंटेलिजेंस

play06:03

आइडिया

play06:06

तू डी जेनरेशन ऑफिशल वेबसाइट डाउनलोड दी

play06:10

कम्युनिटी वर्जन एंड नॉट दी अल्टीमेट

play06:12

वर्जन एंड मेक सर डेट यू सिलेक्ट डी राइट

play06:15

प्रोसेसर इफ यू हैव एन इंटेल वैन चूज दिस

play06:19

इफ यू आर एप्पल सी यू कैन चूज दिस वैन

play06:24

सो इट हज बिन डाउनलोडेड नौ लेट्स क्लिक ऑन

play06:27

इट

play06:28

एंड मूव तू आर एप्लीकेशन

play06:51

स्टेटस

play06:55

न्यू प्रोजेक्ट

play07:03

इंटेलिजेंट आइडिया सो सी डोंट नीड तू तू

play07:05

डेट नौ सी आर गोइंग तू राइट डी फर्स्ट

play07:07

जावा प्रोग्राम

play07:09

लेट्स नाम इट फर्स्ट जावा प्रोग्राम

play07:15

क्रिएट

play07:20

ऑन सोर्स वे हैव दिस प्रोग्राम ऑलरेडी

play07:23

रिटेन फॉर अस जस्ट कंसीडर दिस आगे अन

play07:26

टेंप्लेट फॉर जावा यू विल फाइंड दिस काइंड

play07:29

ऑफ कोड रिटेन इन ऑल ओवर प्रोग्राम्स एंड

play07:32

यू विल अंडरस्टैंड इट व्हाट इट इस इन दी

play07:34

कमिंग लेक्चरर्स सो नौ जस्ट क्लिक ऑन रन

play07:37

मी नोट जावा फॉर द फर्स्ट टाइम इट टेक सैम

play07:40

टाइम दो इट वाज वेरी क्विक एंड फ्रॉम

play07:43

सेकंड टाइम इट विल बी एवं क्विकर

play07:45

सो सी हैव रन अवर फर्स्ट हेलो वर्ड

play07:47

प्रोग्रामिंग जावा एंड विथ दिस बी

play07:50

इंस्टॉलेशन ऑफ जेडीके एंड इंटेलिजेंस

play07:53

आइडिया इन अन मेकस हस बिन कंप्लीटेड थैंक

play07:56

यू

Rate This

5.0 / 5 (0 votes)

Étiquettes Connexes
Java setupJDK installationIntelliJ IDEAWindows tutorialMac OS guideBeginner JavaJava programmingIDE setupFirst Java programCoding tutorial
Besoin d'un résumé en anglais ?