Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Linux installation JDK1.6 rpm.bin assembly     - Debian installation (Linux)

- Linux data redirection (Linux)

- Linux - use chroot command (Linux)

- Oracle rebuild index script (Database)

- ld.so.conf.d profile (Linux)

- How to configure security services under Linux (Linux)

- Java concurrent programming combat (using synchronized synchronization method) (Programming)

- Git build a team development environment operating drills (Linux)

- How to ensure that the Internet will not be attacked (Linux)

- CentOS 6.5 install Firefox (Linux)

- Fedora 20 installation source Xen4.3.0 (Linux)

- Android development environment to build under Fedora 13 (Linux)

- N1QL bring SQL-like query NoSQL database experience (Database)

- Spring inject a type of object to enumerate (Programming)

- View and modify Linux machine name (Linux)

- Gentoo: existing preserved libs problem solving (Linux)

- Linux system security configuration (Linux)

- Using Java to build micro-services (Server)

- Java keyword final, static (Programming)

- Linux LVM Logical Volume Management to resize partitions (Linux)

  Linux installation JDK1.6 rpm.bin assembly
  Add Date : 2018-11-21      
  Linux 1. Install JDK start downloading jdk (jdk-1_5_0_02-linux-i586.rpm), recommended SUN's official website www.sun.com, download on the / home directory, of course, elsewhere row.

Enter the installation directory

#cd / home

#cp jdk-1_5_0_02-linux-i586.rpm / usr / local

#cd / usr / local

For all users to add executable permissions

#chmod + x jdk-1_5_0_02-linux-i586.rpm.bin

#. / Jdk-1_5_0_02-linux-i586.rpm.bin

Permissions will be generated, the file jdk-1_5_0_02-linux-i586.rpm, the same for all users to add an executable

#chmod + x jdk-1_5_0_02-linux-i586.rpm


#rpm -ivh jdk-1_5_0_02-linux-i586.rpm

Installation protocol appears, press to accept.

Linux install JDK Step 2. Set the environment variable.

#vi / etc / profile

In the last plane to join

#set java environment

JAVA_HOME = / usr / java / jdk-1_5_0_02

CLASSPATH =:. $ JAVA_HOME / lib.tools.jar

PATH = $ JAVA_HOME / bin: $ PATH


Save and exit.

For JDK all users use, it can be:

vi /etc/profile.d/java.sh

Enter the following in a new java.sh in:

#set java environment

JAVA_HOME = / usr / java / jdk-1_5_0_02

CLASSPATH =:. $ JAVA_HOME / lib / tools.jar

PATH = $ JAVA_HOME / bin: $ PATH


Save and exit, and then assign permissions to java.sh: chmod 755 /etc/profile.d/java.sh

Linux install JDK Step 3. Use the echo command to check the situation in the terminal environment variable settings.

#echo $ JAVA_HOME


#echo $ PATH

4. Check the JDK is installed successfully.

#java -version

If you see JVM version and related information, that the installation was successful!
- Graphical interface for the CentOS 6.4 installed and connected by remote VNC (Linux)
- How to use the Linux kill command to kill the process / program is not responding (Linux)
- Linux, how to filter, split, and merge pcap file (Linux)
- Vim useful plugin: YouCompleteMe (Linux)
- Archive log file size and redo log file size relationship (Database)
- Android custom ViewPager create kaleidoscopic image transition effects (Programming)
- Remove old kernel on Ubuntu (Linux)
- Understand the profound discussion of some of the options for wireless encryption (Linux)
- Simple to use multi-threaded programming under Linux mutex and condition variable (Programming)
- Eight sorting algorithm implemented in Python (Programming)
- Binary Tree Traversal (Linux)
- Oracle Shared Server Configuration (Database)
- 10 useful Linux command line tips (Linux)
- C ++ Const breaking rules (Programming)
- Nginx-1.9.7 TCP reverse proxy (Server)
- sed command (Linux)
- 32-bit and 64-bit integer in PHP and MySQL range (Database)
- How to use Android Studio to play more package names APK (Programming)
- printf PHP string operations () built-in function usage (Programming)
- MySQL Data Types (Database)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.