Thursday, 18 June 2015

Java Tutorial : JDK8 Installation (Linux Operating System)

🔥 Want to Master Java & Linux?

Subscribe to Ram N Java for the best coding tutorials on the web!

CLICK TO SUBSCRIBE

Step-by-Step: Installing JDK 8 on Linux

Linux is the preferred operating system for many developers due to its stability and performance. If you're building enterprise Java applications, having JDK 8 correctly installed is essential. This beginner-friendly guide will get you up and running in minutes.

Step 1: Download the JDK Package

First, visit the official Oracle website or use your Linux terminal to download the JDK 8 tarball. Make sure you select the correct version for your system architecture (usually x64 for modern machines).

Step 2: Extract the Files

Once downloaded, navigate to your download directory in the terminal. Use the tar -xvf command to extract the contents. It's a good practice to move these files to a central location like /usr/lib/jvm/.

Step 3: Update System Alternatives

Linux uses a system called "alternatives" to manage different versions of software. Use the update-alternatives command to tell your system where the new Java and Javac executables are located.

Step 4: Configure Environment Variables

To ensure applications can find Java, you need to set the JAVA_HOME variable. Edit your .bashrc or /etc/profile file and add the path to your JDK installation. This makes Java available every time you open a terminal.

Step 5: Verify the Setup

Finally, type java -version and javac -version in your terminal. If you see "1.8" in the output, congratulations! You are ready to start coding in Java on Linux.

Click here to watch in Youtube :
https://www.youtube.com/watch?v=ioUEU3MoxX0&list=UUhwKlOVR041tngjerWxVccw

To Download JDK click here:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
http://docs.oracle.com/javase/8/docs/technotes/guides/install/linux_jdk.html

Click the below Image to Enlarge
Java Tutorial : JDK8 Installation (Linux Operating System) 
Java Tutorial : JDK8 Installation (Linux Operating System) 
Java Tutorial : JDK8 Installation (Linux Operating System) 
Java Tutorial : JDK8 Installation (Linux Operating System) 
Java Tutorial : JDK8 Installation (Linux Operating System) 
Java Tutorial : JDK8 Installation (Linux Operating System) 
Java Tutorial : JDK8 Installation (Linux Operating System) 
Java Tutorial : JDK8 Installation (Linux Operating System) 
Java Tutorial : JDK8 Installation (Linux Operating System) 
Java Tutorial : JDK8 Installation (Linux Operating System) 
Java Tutorial : JDK8 Installation (Linux Operating System) 
Java Tutorial : JDK8 Installation (Linux Operating System) 
Java Tutorial : JDK8 Installation (Linux Operating System) 
Java Tutorial : JDK8 Installation (Linux Operating System) 

Linux Commands:


#Which java

#java –version

#rpm -ivh jdk-8u45-linux-x64.rpm

#rpm

Set Path:

JAVA_HOME=/usr/java/jdk1.8.0_45
PATH=$JAVA_HOME/bin:$PATH

To Download HelloWorld_JDK_Install Project Click the below link:
https://sites.google.com/site/javaee4321/jdbc/HelloWorld_JDK_Install.zip?attredirects=0&d=1

See also:

  • All JavaEE Viedos Playlist
  • All JavaEE Viedos
  • All JAVA EE Links
  • Servlets Tutorial
  • All Design Patterns Links
  • JDBC Tutorial
  • Java Collection Framework Tutorial
  • JAVA Tutorial
  • No comments:

    Post a Comment

    Tutorials