Ad Code

Responsive Advertisement

Basic Java Program - 01

Question 01: Install and Setup a Java programming development environment.
Download Java Setup, by clicking following link: Java Setup (drive.google.com)
Write installation directory path of your directory ?
The installation directory for the JDK on your computer would depend on the version of the JDK you've installed and your operating system. By default, the JDK is often installed in a directory like:
  • Windows: C:\Program Files\Java\jdk
  • macOS: /Library/Java/JavaVirtualMachines/jdk.jdk/Contents/Home
  • Linux: /usr/lib/jvm/jdk
The part would be replaced with the specific version number you've installed.

Write value of path environment variable ?
The PATH environment variable is a list of directories separated by colons (on Unix-like systems) or semicolons (on Windows). It specifies the directories where the system looks for executable files. Each directory in the PATH variable is searched when you try to run a command.

Windows:
  • To view the PATH variable in a Windows command prompt, you can run the following command:
    echo %PATH%
  • Alternatively, you can view and edit the PATH variable through the System Properties:
  • Press Win + Pause/Break to open the System Properties.
  • Click on "Advanced system settings" on the left.
  • Click the "Environment Variables" button.
  • In the "System Variables" section, find and select the "Path" variable, then click "Edit."
Linux and macOS:
  • To view the PATH variable in a terminal, you can use the echo command:
    echo $PATH
  • You can also view it in your shell configuration file, which is typically ~/.bashrc, ~/.bash_profile, or ~/.zshrc. For example:
    cat ~/.bashrc
Please note that the specific contents of the PATH variable will vary depending on your system and any custom configurations you or your system administrator have made.

List folders created after installation ?
Installation Directory: The main directory where the JDK is installed, for example:
C:\Program Files\Java\jdk (for Windows)
  • bin Directory: Contains executable files and command-line tools, such as java.exe, javac.exe, and more. These tools are used for compiling and running Java applications.
  • lib Directory: Contains Java libraries and JAR files that are part of the JDK.
  • include Directory: Contains header files for native interface support (JNI).
  • jre Directory: Inside the JDK installation, there might be a jre directory, which contains a reduced version of the Java Runtime Environment (JRE). It includes the Java runtime and libraries.
  • src Directory: Some JDK distributions include the source code for the JDK itself. You may find a src.zip file or a src directory containing the source code.
  • demo Directory: Contains demonstration code and examples.
  • sample Directory: Contains additional sample code and applications.
  • conf Directory: Contains configuration files for the JDK.
  • db Directory: Contains Java DB (Derby) files, which is a relational database included with some JDK distributions.
Please note that the exact folder structure and contents may vary between JDK versions and distributions. The folder names and locations can also differ on non-Windows operating systems.
Installation Procedure:
Video Reference:

Post a Comment

0 Comments

Ad Code

Responsive Advertisement