Java Fundamentals 1: Setting Up Your Development Environment
Starting our journey in Java. Beyond Coding, A Thriving Community
Welcome to the journey of Programming in Java. We together going on an exciting journey of learning Java from scratch. As we learn to write code that not only works but also shines with elegance and logic.
Before we start this journey, I want to let you know that in learning of Java I face lots of challenges like inconsistency, loose interest and so on. I am still learning and that's why I started to write blogs and create this awesome community of Java Developers. I am telling this because you may also face this kind of challenges, but we'll overcome it one by one. So, let's get started...
What is Java?
Java is High-Level, Object-oriented programming language that allows you to build amazing things like games, apps, and websites.
too technical right? Let's breakdown the definition.
- High-level: - High-level Languages means that are closer to human readable. HLL (High Level Languages) are easier for human to read, write and understandable.
- Object-oriented programming: - Object oriented means Java heavily utilizes Classes and Objects. for now, considered: -
- Classes: - They define the properties (data) and methods (functions) that objects of that class will have.
- Objects: - objects are instances of a class. They represent real-world entities and hold specific values for the properties defined in the class.
Why Java?
Setting Environment for Java
- JDK is a collection of software tools for anyone who wants to write, test, and fix (debug) Java programs.
- Similar to a toolbox including a hammer, saw, nails, etc., the JDK has tools for turning your code into a runnable program.
- It's designed for people who just want to run already built Java programs.
- JVM: The magic machine that makes your Java code run on any device.
- IDE is a software in which you write you Java code. IDE provides some extra features: -
- Code Editor: A special text editor with extra features like:
- Syntax highlighting: Colors your code to make it easier to read.
- Auto-completion: Suggests code as you type, saving time.
- Error-checking: Spots mistakes as you write.
- Compiler or Interpreter: Turns your code into something the computer understands.
- Debugger: Helps you find and fix problems (bugs) in your code.
- Project Management Tools: Keeps all your code files organized.
- And more: Many IDEs offer extra goodies like version control, testing tools, and even visual design tools.
- Visit the Oracle website: Go to https://www.oracle.com/java/technologies/downloads/
- Find the right version: Select the latest JDK version that's compatible with your operating system (Windows, macOS, Linux).
- Download: Click the download button and accept the license agreement.
- Run the installer: Double-click the downloaded file and follow the on-screen instructions.
- Search for "environment variables": Open the Start menu and search for "Edit the system environment variables".
- "Environment Variables" window: Click on the "Environment Variables..." button.
- Create "JAVA_HOME": Under "System variables", click "New".
- Variable name: JAVA_HOME
- Variable value: The path to your JDK installation (e.g., C:\Program Files\Java\jdk1.8.0_361)
- Edit "Path": Find the "Path" variable under "System variables". Click "Edit..." then "New". Add the path to your JDK's "bin" folder (e.g., C:\Program Files\Java\jdk1.8.0_361\bin)
- Open a command prompt or terminal: Search for "cmd" (Windows) or "Terminal" (macOS, Linux).
- Type: java -version and press Enter. You should see the installed Java version.
- Visit the JetBrains website: Go to https://www.jetbrains.com/idea/download/
- Choose the edition: Select "Community" (free and open-source) or "Ultimate" (paid, with more features). Click "Download."
- Run the installer: Double-click the downloaded file and follow the on-screen instructions.
Comments
Post a Comment