Installing Java on a Computer

Installing Java in Windows

This process requires you to download an executable file that includes all the files needed for the complete installation. You do not need to remain connected to the Internet during the installation. The file can also be copied to a computer that is not connected to the Internet.

  • Go to the Manual download page
  • Click on Windows Offline.
  • The File Download dialog box appears prompting you to run or save the download file
    Click Save to download the file to your local system.
    Tip: Save the file to a known location on your computer, for example, to your desktop.
  • Close all applications including the browser.
  • Double-click on the saved file to start the installation process.

  • The installation process starts. Click the Install button to accept the license terms and to continue with the installation.
     

    • Oracle has partnered with companies that offer various products. The installer may present you with option to install these programs when you install Java. After ensuring that the desired programs are selected, click the Next button to continue the installation.
    • A few brief dialogs confirm the last steps of the installation process; click Close on the last dialog. This will complete Java installation process.

    •  


      •  Restart the computer
      • Open Command Prompt and type javax and enter
      • if it shows javax not installed then reinstall the java jdk
      • In Environmental Variables put a path to java->jdk->bin folder then apply
      • Write your code using any text editor and save it with .java extension
      • For Compiling it type javax filename.java
      • for Executing it type java filename
      • Happy Coding! 

      -----------------------------

      Installing Java in Ubuntu

       

       

      Follow these steps to download and install 32- bit Java for Linux.
      1. Download
      2. Install
      3. Enable and Configure

      Download

      1. Go to http://java.com and click on the Download button
      2. There are two types of installation packages.
        • Java on Linux Platforms
          This installs the Java Runtime Environment (JRE) for 32-bit Linux, using an archive binary file (.tar.gz) that can be installed by anyone (not only the root users), in any location that you can write to. However, only the root user can install Java into the system location.
        • Java on RPM-based Linux Platforms
          This installs the Java Runtime Environment (JRE) for 32-bit RPM-based Linux platforms, such as Red Hat and SuSE, using an RPM binary file (.rpm) in the system location. You must be root to perform this installation.

        Download the package that best suits your needs. You can download the file to any of the directories on your system.
      3. Before the file can be downloaded, you must accept the license agreement.
      4. Download and check the download file size to ensure that you have downloaded the full, uncorrupted software bundle. Before you download the file, notice its byte size provided on the download page on the web site. Once the download has completed, compare that file size to the size of the downloaded file to make sure they are equal.


      Install

      The instructions below are for installing version Java 8 Update 73 (8u73). If you are installing another version, make sure you change the version number appropriately when you type the commands at the terminal. Example: For Java 8u79 replace 8u73 with 8u79. Note that, as in the preceding example, the version number is sometimes preceded with the letter u, and sometimes it is preceded with an underbar, for example, jre1.8.0_73.

      Note about root access: To install Java in a system-wide location such as /usr/local, you must login as the root user to gain the necessary permissions. If you do not have root access, install the Java in your home directory or a sub directory for which you have write permissions
      Java for Linux Platforms
      1. Change to the directory in which you want to install. Type:
        cd directory_path_name
        For example, to install the software in the /usr/java/ directory, Type:
        cd /usr/java/

      2. Move the .tar.gz archive binary to the current directory.
      3. Unpack the tarball and install Java
        tar zxvf jre-8u73-linux-i586.tar.gz

        The Java files are installed in a directory called jre1.8.0_73 in the current directory.
        In this example, it is installed in the /usr/java/jre1.8.0_73 directory.
      4. Delete the .tar.gz file if you want to save disk space.

      Java for RPM based Linux Platforms
      1. Become root by running su and entering the super-user password.
      2. Uninstall any earlier installations of the Java packages.
        rpm -e package_name
      3. Change to the directory in which you want to install. Type:
        cd directory_path_name
        For example, to install the software in the /usr/java/ directory, Type:
        cd /usr/java

      4. Install the package.
        rpm -ivh jre-8u73-linux-i586.rpm

        To upgrade a package,
        rpm -Uvh jre-8u73-linux-i586.rpm

      5. Exit the root shell. No need to reboot.
      6. Delete the .rpm file if you want to save disk space.
      The installation is now complete. Go to the Enable and Configure section.


       








Comments

Popular posts from this blog

Introduction to C++ Programming Language

The Assembly Process Of 8086 Microprocessor-Two Pass Assembling Steps

Installing 8086 Assembler on a Computer