Java learning from getting started to mastering (1)

Source: Internet
Author: User
Tags ibm developerworks
Java learning from the beginning to the proficient (1)-General Linux technology-Linux programming and kernel information, the following is a detailed description. Java Learning Path (1), tools
I. JDK (Java Development Kit)

JDK is the core of the entire Java, including the Java Runtime Environment (Java Runtime Envirnment), a bunch of Java tools and the Basic Java class library (rt. jar ). No matter what Java application server is actually built into a certain version of JDK. Therefore, mastering JDK is the first step to learn Java well. The most popular JDK is the JDK released by Sun. In addition to Sun, many companies and organizations have developed their own JDK, such as JDK developed by IBM and Jrocket of BEA, and JDK developed by GNU. Among them, the JVM (Java Virtual Machine) Running Efficiency of ibm jdk is much higher than that of Sun JDK. The Jrocket running on the x86 platform is much more efficient on the server than Sun JDK. However, we still need to Master Sun JDK first.

1. Download and install JDK

JDK is also called J2SE (Java2 SDK Standard Edition), can be downloaded from Sun's Java website, http://java.sun.com/j2se/downloads.html, JDK is currently the latest version of J2SDK1.4.2, it is recommended to download this version of JDK, download Page: http: // java.sun.com/j2se/1.4.2/download.html.

The downloaded JDK is an executable installation Program. After the installation is completed by default, a set of JRE (for use by the browser) will be installed in the C: \ Program Files \ Java \ directory. In C: \ j2sdk1.4.2 install a set of JDK (including a set of JRE ). Then we need to add the java path c: \ j2sdk1.4.2 \ bin at the beginning of the Environment Variable PATH. In this way, JDK is installed.

2. JDK command tools

JDK's most important command line tool:

Java: Start JVM to execute class

Javac: Java compiler

Jar: Java packaging Tool

Javadoc: Java document Builder

These command lines must be very familiar with each parameter. JDK Documentation provides detailed documents on how to learn these commands.


Ii. JDK Documentation

Documentation is also available on the JDK download page. We recommend that you download Documentation at the same time. Documentation is the most important programming manual, covering the description of all aspects of Java. It can be said that the majority of the time spent learning Java programming is spent reading this Documentation. I carry it with me. When I write Java code, I can check it at any time.

3. App Server)

App Server is a platform for running Java Enterprise components and forms the main runtime environment of application software. Currently, the mainstream App Server is BEA's Weblogic Server, IBM's Websphere, and free Jboss. You can select one of them for learning. I personally recommend Weblogic, because of its clean architecture and convenient development and deployment, it is the preferred development platform for Java Enterprise software developers. The following describes several common App servers:

1. Tomcat

Tomcat is not a real App Server in a strict sense. It is just a Web container that supports running Serlvet/JSP. However, Tomcat also extends some App Server functions, such as JNDI, database Connection Pool, user transaction processing, and so on. Tomcat is widely used in small and medium-sized Java Web applications. Therefore, this article introduces how to download, install, and configure Tomcat:

Tomcat is a subproject under the Jakarta project under the Apache organization. Its main website is http: // jakarta.apache.org/tomcat/. The latest version of Tomcat is Tomcat 4.1.27. The connection to software download is http: // www.apache.org/dist/jakarta/tomcat-4/binaries /.

To download Tomcat, you can download both the zip package and the exe installation package (I suggest you clean the zip file). In either case, after the download and installation are complete (you can decompress the zip file directly ). You need to set two environment variables:

JAVA_HOME = C: \ j2sdk1.4.2

CATALINA_HOME = D: \ tomcat4 (your Tomcat installation directory)

After installation, start Tomcat to run CATALINA_HOME \ bin \ startup. bat, and close Tomcat to run the shutdown. bat script. After Tomcat is started, port 8080 is used by default. Therefore, you can use a browser to access http: // localhost: 8080 to test whether Tomcat is started properly.

Tomcat provides two management tools on the Web interface. The URLs are:

Http: // localhost: 8080/admin/index. jsp

Http: // localhost: 8080/manager/html

Before enabling these two management tools, you must manually configure the administrator user and password. Open the CATALINA_HOME \ conf \ tomcat-users.xml file with a text tool and add the following lines:





In this way, the user "robbin" has the super administrator permission. After you restart Tomcat, you can use the user to log on to the two management tools above and configure and manage Tomcat on the Web.

2. BEA Weblogic

Weblogic can download the latest Weblogic8.1 Enterprise Edition After free registration on the BEA website. License can be used for free for one year. In fact, this is enough. Weblogic download link: http://performance.bea.com/index.jsp, weblogic's on-line document: http://edocs.bea.com /.

3. IBM Webshpere

Websphere can also be downloaded to a free trial version. On the IBM developerWorks website, you can see the download of the Websphere trial product and related Websphere documents. The link to the developerWorks Chinese website is: http: // www-900.ibm.com/javasworks/cn/wsdd/, Websphere download connection: http: // www7b.software.ibm.com/wsdd/downloads/WASsupport.html.

4. Jboss

Jboss is a free and open-source App Server. It can be downloaded from the Jboss website for free: Ghost. There are several good Jboss configuration documents on Jdon for reference: http: // www.jdon.com/idea.html
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.