Java-with-Intellij-IDE
Steps to install Intellij
Step 0 - Install JDK from the given link: https://www.oracle.com/java/technologies/downloads/#jdk18-windows
Step 1 - Download the IntelliJ Idea Community version from this link: https://www.jetbrains.com/idea/download/?section=windows
Step 2: Run the .exe file and click on next to install.
Step 3: You can change the path of the folder by clicking on change and selecting the desired location.
Step 4: Now select these options click on next and then click on install.
Step 5: You can select reboot now or do that later as you wish.
Step 6: Now you can click on the shortcut icon for IntelliJ Idea on the desktop to start the application.
First Program in Intellij
- Click on the new project and enter the details as given below.
- Click on Create and the FirstProgram project will be created as shown below.
- Now, open the src folder and right-click on main, then click on new class then on java and enter your class name to create the class.
- Now write the below code
class Example
{
public static void main (String args[])
{
System.out.println("Welcome to QuipoIn");
}
}
- This will display the text " Welcome to QuipoIn on clicking on the run button on the top right-hand part. We have discussed about the syntax of the code in detail in further tutorials.
Two-min Drills
Install JDK: Download and install the latest JDK from the official website. Set JAVA_HOME: Set the JAVA_HOME environment variable to point to the JDK installation path. Install IntelliJ IDE: Download and install IntelliJ IDEA from the official website. Configure it for Java development. Test Setup: Create and run a "Hello, World!" program in IntelliJ to ensure the setup is working correctly.