JDK1.6 installation configuration under the LINUX

2010-03-25  来源:本站原创  分类:OS  人气:276 

http://developer.51cto.com/art/200907/134477.htm
DK1.6 under the LINUX install and configure Java for beginners is a must to start Java programming, how JDK1.6 installation and configuration under the LINUX became the primary issue, then this article will introduce you to JDK1.6 in installation configuration issues under LINUX.
JDK1.6 installed under the LINUX is how to do, let us begin our presentation:

Ubuntu Linux installation and configuration under the jdk

1.JDK1.6 Installation Preparation

Www.sun.com from the sun website to download linux version of the jdk, I downloaded version is JDK 6 Update 7,

Address http://java.sun.com/javase/downloads/index.jsp

jdk-6u7-linux-i586.bin, open a terminal, use cd command into the jdk directory, do the copy command

sudo cp jdk-6u7-linux-i586.bin / usr

About jdk copied to / usr directory, and then into the / usr directory cd / usr

Executive authority

chmod + x jdk-6u7-linux-i586.bin

The installation command

./jdk-6u7-linux-i586.bin

In case of error, may first switch to root user under, su root, and then perform the installation command

Successfully installed in the / usr directory generated jdk1.6.0_07 directory is the installation directory of jdk

Restart the computer, open a terminal, type java-version

As if it shows java version information, then the installation was successful,

2.JDK1.6 configuration after installation

After successful installation, environment variables need to configure jdk

With the cd command into the / etc directory sudo vi profile is executive editor of the profile command file

In umas k022 added before the following:

export JAVA_HOME = / usr/jdk1.6.0_07

export JRE_HOME = / usr/jdk1.6.0_07/jre

export PATH = $ PATH: / usr/jdk1.6.0_07/bin

export CLASSPATH =./:/ usr/jdk1.6.0_07/lib: / usr/jdk1.6.0_07/jre/lib

Save exit and restart the computer

3.JDK1.6 installation configuration test

New Test.java

public class Test (
public static void main (String [] args) (
System.out.println ("Hello, Welcome to Linux World!");
)
)
With a cd command into the terminal Test.java directory, then enter

javac Test.java

java Test

If the output

Hello, Welcome to Linux World!

Indicates that the configuration was successful!

If can not compile, try to restart the system by

4.JDK1.6 installation configuration Precautions

In using vi command editing profile file, Linux beginners may also unfamiliar with

sudo vi profile file into the editor if there

Press ENTER or type command to continue

According to a carriage return and then press the arrow keys to "down" until the former line umas k022

O enter the edit mode in alphabetical

Enter the contents of environment variable

Enter, press the ESC key several times, until you hear the "tick" sound, input

: X then Enter

That is stored out of

So far, Linux JDK1.6 environment variables configured, is not simple Why? Start your road to programming it.

相关文章
  • JDK1.6 installation configuration under the LINUX 2010-03-25

    http://developer.51cto.com/art/200907/134477.htm DK1.6 under the LINUX install and configure Java for beginners is a must to start Java programming, how JDK1.6 installation and configuration under the LINUX became the primary issue, then this article

  • Linux vsftpd installation configuration to use (more) 2010-02-26

    Linux vsftpd installation configuration to use (more) In this paper, a number of previous articles written on many occasions with their own installation and configuration experience, written in more detail, the article finally ftp command set with al

  • oracle - Linux - Unix under the ODBC installation. Configuration and Programming 2010-04-12

    Transfer from: http://linux.sheup.com/linux/linux3962.htm Linux / Unix under the ODBC installation, configuration and programming 2004-04-23 15:18 pm From: Linux documents are shown: Www.8s8s.coM Address: unknown Content: ODBC principle Linux / Unix

  • linux iscsi initiator installation configuration 2010-06-24

    To achieve environmental: vmware workstation, netapp simulator, windows 2003, redhat linux enterprise; First, install and configure the iSCSI Initiator software 1. From the CD to install iscsi initiator [Root @ pe03 Server] # cd / mnt / Server / [Roo

  • JDK installation configuration 2010-03-27

    JDK installation configuration Description: JDK installation is divided into windows and linux operating systems such as Alto, the other server or installation. Side of the article involves JAVA-based learning to learn. If you want to install the tom

  • centos zendce red5 ffmpeg installation configuration 2010-05-25

    This is mainly spoke of the centos server, how to quickly set up AMP environment and the streaming media servers. As for performance testing and tuning shelving. First, assume that the server is already installed centos system. Recommend a small soft

  • Detailed steps to install Hadoop cluster | Hadoop installation configuration 2010-07-06

    Hadoop Cluster Installation First we look at the definition of unity, referred to here is Hadoop Hadoop Common, the main provider of DFS (distributed file storage) and Map / Reduce the core functions. Hadoop under the windows not been a good test, so

  • nutch installation configuration operation 2010-11-11

    1. Installing jdk Jdk version 1.6, download address: http://www.sun.com/download/ Installation path: C: \ Program Files \ Java \ jdk1.6.0_05 \ (installation path makes a mandatory requirement) Configure PATH environment variable;% JAVA_HOME% \ bin;%

  • nutch installation configuration runs 2010-11-11

    1 install jdk Jdk version 1.6, download address: http://www.sun.com/download/ Installation path: C: \ Program Files \ Java \ jdk1.6.0_05 \ (installation path not do a mandatory requirement) Configure the PATH environment variable;% JAVA_HOME% \ bin;%

  • Notes from office server installation - installation configuration chapter 2010-04-06

    Host Configuration: Single Intel Xeon E5405 2.0G Quad-Core CPU, 4 A 500G Seagate SATA II hard disk server, 4G memory. OS: CentOS 5.3 Installation: CentOS 5.3 raid5 array + LVM logical volume of soft First, install the operating system Install the ope

  • Ubuntu under jdk, mysql, tomcat installation configuration 2010-11-14

    A, jdk installation 1 Download and install sun jdk First, at http://java.sun.com download jdk-6u20-linux-i586.bin (2) authorization to download the file and move to the specified folder Code: $ Sudo chmod u + x jdk-6u20-linux-i586.bin 3 executable in

  • Webalizer installation configuration 2011-07-13

    Webalizer is a useful Web Server log file analysis software, in addition to its ability to analyze Apache web server log files generated by the log, but also to analyze the FTP Log file to output HTML pages quite beautiful, quite a number of sites cu

  • ubuntu installation configuration under svn + apache2 2011-06-14

    ubuntu installation configuration under svn + apache2 1 installed (using apt-get install installation) sudo apt-get install subversion sudo apt-get install libapache2-svn sudo apt-get install Apache2 2 Create the parent directory repository sudo mkdi

  • WebLogic 10.3 installation. Configuration and Management Manual (rpm) 2011-07-27

    WebLogic 10.3 installation, configuration and management Chapter 4 for WebLogic 10.3 for SUSE linux § 2.1 Installation Preparation  download WebLogic10.3 for x86 linux installation file;  Installing Suse Linux enterprise Server 11.0;  Check the Su

  • CentOS 6.0 server installation. Configuration. Optimization (Beginners) 2011-09-07

    Let me know about the recent head, Linux CentOS under the server installation, configuration, natural means in the linux solution may be batch start. Previously, the college to find out about the operation even less, now had to study step by step fro

  • Learning Notes Series ROR a Windows XP installation configuration of the environment (2) 2009-07-09

    Recently concluded a project , Idle boredom , So prepare yourself to learn about ROR charge your energy , ROR in JavaEye see above for a long time , But the comparison has been busy as a Java project , So no more attention to , Robbin is inadvertentl

  • Tuxedo8.0 in xp installation configuration under 2010-02-04

    Tuxedo8.0 in xp installation configuration under Lobular 2010-2-4 First, prepare the file before installation Download Tuxedo For Windows versions, and License files, this machine is Tuxedo8.0 windows version. Specific Windows installation process sl

  • phpeclispe + xampp + zenddebuger installation configuration to debug 2010-03-05

    1phpeclise to the corresponding address http://www.eclipse.org/downloads/ download Eclipse for PHP Developers (eclipse-php-galileo-SR2-win32.zip), you can unzip or open eclipse3.2, Help -> Software Updates -> Find and Install -> Search for new fe

  • Win7 in IIS7 installation configuration 2010-03-26

    <script type="text/javascript"> </ script> Win7 in IIS7 installation configuration This article describes how to install in Windows7 IIS7, Yi Ji IIS7 in the installation process that need attention settings, as well as ASP in IIS7 co

  • myeclipse cvs installation configuration 2010-04-16

    Today, I have played under the CVS, version CVSNT2.5.03 (annex to download) Create a new folder on CVS, in which the empty building your project directory MyProject After the successful installation <! - StartFragment -> Choose Repository, can be de