Install Java under Linux

xiaoxiao2021-03-06  95

At the beginning, I felt a bit difficult, but I was still very simple. First, go to http://www.sun.com to download the JDK installation, but I downloaded NetBean bundled JDK to install, JDK-1_5_0-NB-4_0-beta2- Bin-Linux.bin file (99.4m) Directly run installation If my user name is ZD and I put NetBean in the installation completion of the zd / netbean, there is a jdk1.5.0 in the zd directory. This JDK folder Configuring a Java environment $ vi .bash_profile joining java_home = / home / zd / jdk1.5.0 path = $ PATH: $ java_home / bin export path java_home For the network about classpath = ..., it is not necessary. Here, the Windows operating system is the same as the Java environmental configuration, adding classpath, but I don't know why. After configuring it, you have canceled the terminal to type Java, Java, etc. If there is a display java Information is OK writes a small program $ vi hello.java import java.io. *; class hello {system.out.println ("Hello Linux and java");} Esc: q $ javac hello.java $ java hello if Show hello linux and java.

转载请注明原文地址:https://www.9cbs.com/read-104463.html

New Post(0)