Beginner in java: a shortcut to Java Learning

Source: Internet
Author: User
Tags xsl netbeans
For beginners of java, you must read: a shortcut to Java learning-general Linux technology-Linux programming and kernel information. For details, see the following. [Introduction] This article provides a lot of learning resources for beginners in java. It can be said that it is a shortcut to Java learning! Let's take a look :)


1, jdk is j2se, jdk1.1.8 version later changed to j2se,: http://java.sun.com/j2se/downloads.html

2. jre is a java Runtime Environment (jre is included after jdk1.3) and does not need to be downloaded separately.

3. Set Environment Variables

After jdk is installed, you must configure environment variables.

My computer-> properties-> advanced-> Environment Variables

Add the following environment variables (assuming your java is installed in c: \ jdk1.3)

Java_home = c: \ jdk1.3

Classpath =.; c: \ jdk1.3 \ lib \ dt. jar; c: \ jdk1.3 \ lib \ tools. jar; (..; no less, because it represents the current path)

Path = c: \ jdk1.3 \ bin

Open a new dos window, type java and javac to test

4. Simple Test Procedure

Code:

--------------------------------

Public class Test {

Public static void main (String args []) {

System. out. println ("Hello world! ");

}

}

-------------------------------------

Javac Test. java

Java Test

5. Introduction to common java, j2ee, and xml development tools

J2sdk installer and Java API Doc

J2sdk-1_4_0 for win

J2sdk-1_4_0 for linux

J2sdk-1_4_0-doc

J2sdkee-1.3-doc

You can download it at http://java.sun.com/j2ee/download.html.

6. build Tool

Ant: Ant is a java-based cross-platform build tool. The reason why Ant can be cross-platform is that Ant no longer requires you to write shell commands. The Ant configuration file is an XML-based task tree that allows you to run various tasks, tasks are executed by objects that implement specific task interfaces.

Http: // jakarta.apache.org/ant

7. Development Tools (IDE, integrated development environment)

1. Two preferred development tools

2. jbuilder -- no need to talk about it.

3. netBeans (www.netbeans.org, free of charge), forte is similar to Sun EE and netbeans (it is estimated that the original code of netbeans is rewritten), but netbeans (version 3.4) is easy to use, it can be integrated with tomcat and cvs, but the only drawback is that it cannot be used to develop ejbs. forte can be used, but it cannot provide our own APIs (that is. the methods that appear later are all system-specific, and the methods we write are writable, faint)

Other development tools

Eclipse: an IDE integrator that can be developed in any language in the future.

Eclipse is a next-generation IDE development environment that replaces IBM Visual Age for Java (IVJ), but its future goal is not only to become an IDE environment dedicated to Java program development, according to the architecture of Eclipse, through the Development plug-in, it can be extended to development in any language, or even become a tool for image rendering.

Currently, Eclipse has begun to provide functional plug-ins for C language development. What's even more valuable is that Eclipse is an open-source project. Anyone can download the Eclipse source code and develop their own function plug-ins. That is to say, as long as someone needs it, there will be development plug-ins built on top of Eclipse in languages such as COBOL, Perl, and Python.

At the same time, you can develop new plug-ins to expand the functions of existing plug-ins, such as adding Tomcat server plug-ins to the existing Java development environment.

It can be expanded infinitely and has a uniform appearance, operation and system resource management, which is exactly the potential of Eclipse.

Http: // www.eclipse.org

8. Professional XML editing tools

XMLSPY: supports SOAP, Oracle XML Schema extension, MSXML4, and so on. It provides three XML document views: structure display and editing, source code view, and CSS and XSL preview. Supports the latest schema standards. You can verify XML documents based on the schema to convert schema documents of different schema versions into documents that comply with the latest schema specifications. You can convert DTDs, XML-Data, or convert BizTalk schemas to W3C XML.

The Schema automatically generates an XML Schema from the database connection (ADO, ODBC) and can directly access the database, provides conversions between databases and XML. Provides a user interface similar to Office XP compatible, providing a more convenient user interface customization method.

This Editor supports WYSIWYG text editing. Based on form-based data input and graphic elements, it includes a graphical XSLT generator that can generate style documents for schema or DTD, finally, it is applied to the corresponding XML document.

Go to http://www.xmlspy.com/download.html download

9. Framework

Cocoon: XML Framework

Cocoon is a content publishing framework written in Java 100%.

Cocoon allows you to use W3C latest technologies (DOM, XML, and XSL) to provide Web content.

The new Cocoon mode completely separates document content, styles, and processing logic, allowing these three layers to be independently designed, created, and managed, reducing management overhead, this enhances the reusability of work and reduces the development time.

Source: http://xml.apache.org/cocoon

10. struts: JSP Framework

Struts is an open source framework for developing Web applications using Java Servlet/JavaServer Pages technology.

Struts can be used to develop an application architecture based on the Model-View-Controller design pattern.

Struts has the following main functions:

? Contains a controller servlet that can send user requests to corresponding Action objects.

? The JSP free tag Library provides Association support in the controller servlet to help developers create interactive form applications.

? Provides a series of practical objects: XML processing, automatic processing of JavaBeans attributes through Java reflection APIs, and International prompts and messages.

Source: http://jakarta.apache.org/struts

11. turbine: Servlet Framework

Turbine is a servlet-based framework that enables experienced Java developers to quickly build web applications.

Using Turbine, you can create a Screen that uses a specific service to process the template,

To integrate existing template technologies (such as Velocity, Webmacro, Java Server Pages (JSP), FreeMarker, and cocoon ).

Source: http://jakarta.apache.org/turbine

12. Demo

Java Pet Store: j2ee application example

Java Pet Store is a j2ee enterprise application sample planned by the Java software blueprint.

It demonstrates how to use the power of the j2ee platform to build a flexible and scalable cross-platform enterprise application.

You can.

Source: http://java.sun.com/blueprints/enterprise/

13. database

Pointbase: a new army to enter the enterprise database market.

PointBase is the first authenticated 100% pure Java database and can be used on any platform using Java 2 Standard Edition Virtual Machine (JVM.

Source: http://www.pointbase.com/

14. j2ee server

1. j2sdkee1.3.1 referrence implement (j2ee reference implementation). sun is a good tool for learning j2ee. Remember, this is a learning tool and not a tool developed by an enterprise, because of its efficiency and security, it cannot be used as a project or product.

Http: // java.sun.com/j2ee/download.html

2. weblogic and websphere do not need to be mentioned!

3. sun one Application Server (formerly iplanet) --- strongly recommended

It is a relatively complete j2ee development platform

1. sun one studio 4 (formerly forte)

2. tomcat 4

3. sun one application server is a great j2ee server.

4. Integration with j2ee ri

5. pointbase is the first authenticated 100% pure Java database.

These tools can be used to develop any java product. Most importantly, they are a free j2ee server and free of charge. Compared with jboss, I don't know where to go. Haha, I should have sent it !!!

Http: // wwws.sun.com/software/download/app_servers.html

15. UML tools

1. The Rational Rose high-level UML design tool has powerful functions.

2. Together can be considered as the best java UML design tool. You can generate java code synchronously based on the class diagram. After the design is complete, the system framework will also come out!

16. guiding books

1. There are not many introductory books.

Reading books such as "Getting started to proficient" is not recommended for beginners of "java programming ideas"

2. Read java programming ideas for java programmer

3. java designer recommends reading "java and mode" (a new book written by the Chinese, not a translator. IT is rare for the Chinese to write such a profound IT book)
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.