Curso Java desde cero  #1 | Introducción e instalación de JDK

Curso Java desde cero #1 | Introducción e instalación de JDK

Introduction to Java Programming Course

Overview of the Course

  • The course is designed for beginners, those wanting to learn Java, and individuals with prior knowledge seeking to strengthen their skills.
  • It will focus primarily on practical programming without theoretical explanations, allowing concepts to emerge through practice.

What is Java?

  • Java is defined as an object-oriented, multi-platform programming language that allows developers to write code once and run it anywhere.

Requirements for Programming in Java

  • To program in Java, three essentials are needed:
  • Downloading the JDK (Java Development Kit), which provides necessary tools and libraries.
  • A computer (PC or laptop), which does not require high resources; even Windows XP can be used.
  • Familiarity with Notepad and Command Prompt for writing and executing code.

Why Use Notepad Instead of IDE?

Benefits of Using Notepad

  • Working in Notepad helps develop essential programming skills by requiring users to identify errors independently without assistance from Integrated Development Environments (IDEs).
  • IDEs like NetBeans or Eclipse provide features such as code autocompletion and error highlighting, which can hinder learning foundational coding skills.

Alternatives to Notepad

  • Text editors like Sublime Text or Notepad++ offer similar functionalities as IDEs but still assist with error marking and autocompletion.

Applications Developed in Java

Popular Software Written in Java

  • Minecraft was initially programmed entirely in Java, showcasing its capabilities in game development.
  • OpenOffice serves as a free alternative to Microsoft Office, largely developed using Java.
  • Android's foundation is built on Java; many libraries used for Android development are direct copies of those from Java. Knowledge of Java is often required for Android programming.

Getting Started with JDK Installation

Steps to Download JDK

  • The JDK can be downloaded from Oracle's official website. A link will be provided in the video description for easy access.
  • To find the JDK download page:
  • Search "JDK" on Google.
  • Click on the first link labeled "Java Downloads."

Understanding System Requirements for Java Programming

Identifying Your Operating System

  • The instructor emphasizes the importance of knowing your operating system version, stating that the course will focus on Windows 7, a still-popular OS despite newer versions being available.
  • To determine your system's architecture (32-bit or 64-bit), navigate to "My Computer," right-click, and select "Properties." This method is applicable across various Windows versions.
  • Regardless of the Windows version (XP, Vista, 7, or 10), users can access system properties through similar steps to identify their OS type.

Checking System Resources

  • The instructor notes that high-end resources are not necessary for this course; even a system with 2 GB RAM and a 3 GHz processor suffices for Java programming.
  • Users should confirm whether they have a 32-bit or 64-bit operating system as it affects which Java Development Kit (JDK) version to download.

Downloading the JDK

  • For a 32-bit OS, look for JDK labeled as "x86" when visiting Oracle's official site. A 64-bit OS will require downloading the "x64" version instead.
  • After identifying the correct JDK version based on your OS architecture, accept the license agreement before proceeding with the download.

Installing the JDK

  • Once downloaded, users should execute the installer by double-clicking it or running it as an administrator. The installation process involves clicking "Next" repeatedly without changing any default settings.
  • Upon completion of installation, users may see either a confirmation window or simply an option to finish. The process is straightforward and does not require advanced configuration.

Configuring Environment Variables

  • After installation, navigate to Local Disk C > Program Files > Java to find folders named 'jre' and 'jdk.' Focus on opening the 'jdk' folder to access essential libraries and tools for programming.
  • Copying the path from within the 'bin' directory is crucial for configuring environment variables later in order to set up Java correctly on your machine.

Setting Up System Variables

  • Access Control Panel > System and Security > System. From there, you can reach advanced settings where environment variables can be configured.

How to Configure Java on Your System

Step-by-Step Configuration Process

  • Begin by clicking "Edit" and carefully navigate to the end of the line without deleting any existing text. Add a semicolon and paste the path of the folder you just copied, indicating that your system will check elements within this folder (Bin).
  • After pasting the path, click "Accept" three times to finalize the configuration. This step ensures that your system is set up correctly for Java usage.
  • To verify if Java is configured properly, access the command prompt. You can either search for "Command Prompt" or find it under Start > All Programs > Accessories.
  • In the command prompt window, type "Java" and press Enter. If you see a response with details about Java, it confirms that your installation was successful.

Conclusion of Initial Setup

Video description

Curso JAVA #1. Primera parte del curso JAVA donde solo utilizaremos Bloc de notas para desarrollar nuestros programas. En este vídeo realizamos la introducción al curso además realizar la instalación y configuración de JAVA en nuestro ordenador. Este curso comienza con Windows 7 y finaliza utilizando Windows 10. Si tienes WIndows10 y quieres instalar el JDK puedes ver el siguiente vídeo: https://www.youtube.com/watch?v=kPWezAZGPks ¡¡Ayúdame a seguir creciendo, te invito a suscribirte!! La Geekipedia de Ernesto ➞ Facebook https://www.facebook.com/LaGeekipediaDeErnesto/ ➞ Instagram https://www.instagram.com/lageekipedia/ ➞ Twitter https://twitter.com/LaGeekipedia ═════════════════════════════════════════ Link del sitio para descargar el JDK: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html?ssSourceSiteId=otnes ═════════════════════════════════════════ Música: 1. Kasger - Reflections [NCS Release] https://www.youtube.com/watch?v=M4_ivwYfWFo Kasger • https://soundcloud.com/kaspergerlif • https://www.youtube.com/c/kasger • https://www.facebook.com/Kasger • https://twitter.com/Kasger ═════════════════════════════════════════ Vídeo Final: 1. Mount Bromo HD Timelapse Movie by Justin Ng https://www.youtube.com/watch?v=UNs7TkFvK-4 Follow Facebook: justinngphoto.com/facebook Follow Twitter: twitter.com/justinngphoto Follow Google+: plus.google.com/116998818067074636759 To join my photography community: mopsg.com