Some Java entry knowledge
1. JDK is J2SE, and the JDK1.1.8 version is changed to J2SE.
Download address: http://java.sun.com/j2se/downloads.html
2, JRE is the Java runtime environment (JDK1.3 version contains JRE) without downloading
3, set environment variables
After installing JDK, configure environment variables
My Computer -> Properties -> Advanced -> Environmental Variables
Add the following environment variables (assuming your Java installed in C: /JDK1.3)
Java_Home = C: /JDK1.3
Classpath = .; c: /jdk1.3/lib/dt.jar; c: /jdk1.3/lib/tools.jar; (.; noble, because it represents the current path)
PATH = C: /JDK1.3/bin
New open a DOS window, type Java and Javac 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, Java, J2EE, XML development common tool introduction
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
Can go to http://java.sun.com/j2ee/download.html download
6, Build Tool
ANT: Ant is a Java-based cross-platform build tool. The reason that Ant can cross the platform because Ant no longer needs you to write shell commands, Ant's profile is XML-based task tree, which allows you to run a variety of tasks, the task run is the implementation of a specific task interface Objects are completed.
Http://jakarta.apache.org/ant
7, development tool (IDE, integrated development environment)
1. Two kinds of development tools preferred
1, jbuilder - don't have to say more
2, NetBeans (Download address www.netbeans.org, free), and Forte is similar to Sun EE and NetBeans (it is estimated to be rewritten using NetBeans), but NetBeans (3.4 version) I think it is better, you can Tomcat and CVS are integrated, but the only shortcomings cannot develop EJB, Forte is could, but can't give our own API (i.e.. The method of the following is the system, and we write it own way , Faint)
Other development tools
Eclipse: Names the future IDE set of language developed in the future.
Eclipse is the next-generation IDE development environment that replaces IBM Visual Age for Java (hereinafter referred to as Ivj), but its future goal is not only a IDE environment specializing in developing Java programs, but it can expand according to the eclipse architecture, it can expand To any language, it can even be a tool drawn.
Currently, Eclipse has begun to provide a function plugin for C language development. It's more difficult to expensive, Eclipse is an open source project, anyone can download the source code of Eclipse, and develop its own function plugin on this basis. That is to say, as long as someone needs it, there will be a development plugin that is built in languages such as COBOL, Perl, Python, Eclipse.
At the same time, you can extend the functionality of the existing plug-in by developing new plugins, such as adding Tomcat server plugins in an existing Java development environment.
You can expand unlimited, and there is a unified look, operation, and system resource management, which is also the potential of Eclipse.
Http://www.eclipse.org
8, professional XML editing tool
Xmlspy: Support for SOAP; supports Oracle XML Schema extensions; support MSXML4, etc., provides three XML document views: structure display and editing, original code view, and preview supporting CSS, XSL. Supports the latest Schema standard, you can convert Different Schema versions to documents that meet the latest Schema specification according to the SCHEMA Version XML documentation can convert DTDS, XML-DATA, or BizTalk Schemas to W3C XML.
SCHEMA automatically generates XML Schema from the Database Connection (ADO, ODBC) to directly access the database, providing a transition between database and XML to provide a more convenient user interface customization.
The editor supports the text editing of the desired, based on FORM-based data input, graphical element, etc., including a graphical XSLT generator, which can generate a style document for Schema or DTD, and finally applied to the corresponding XML document.
Can go http://www.xmlspy.com/download.html to download
9, Framework
COCOON: XML Framework
CoCoon is a content release framework written in 100% pure Java.
CoCoon allows you to provide web content with the latest technology (DOM, XML, XSL) of W3C.
The new Cocoon mode fully separated document content, style, processing logic, allowing these three layers to be independently designed, created and managed, thereby reducing management overhead, strengthening the reuse of work, reducing development time.
Source: http://xml.apache.org/cocoon
9, Struts: JSP Framework
Struts is an open source of the open source of the web application using Java Servlet / JavaServer Pages technology.
The Struts can develop an application architecture based on MODEL-View-Controller design mode.
Struts has the following main features:
• Contains a Controller Servlet that can send the user's request to the corresponding Action object.
• JSP free Tag library, and provides association support in the Controller Servlet to help developers create interactive form applications.
• Provide a series of practical objects: XML processing, automatically handle JavaBeans property, international tips, and messages through Java Reflection APIs.
Source: http://jakarta.apache.org/struts
10, Turbine: Servlet Framework
Turbine is a servlet-based Framework that enables experienced Java developers to quickly build web applications.
Using Turbine, you can process the template's Screen, you can process the template by creating a specific service.
To integrate existing template techniques (such as Velocity, Webmacro, Java Server Pages (JSP), FreeMarker, Cocoon).
Source: http://jakarta.apache.org/turbine
11, Demo
Java Pet Store: J2EE Application Sample
Java Pet Store is a J2EE enterprise application sample for Java Software Blueprint Planning. It demonstrates how to apply the power of J2EE platform to build a flexible, stretchable cross-platform business application.
You can get the latest information and learning materials from java.sun.com/blueprints/enterprise/, the latest version is based on J2EE 1.3 1.3_01.
Source: http://java.sun.com/blueprints/enterprise/
12, Database
PointBase: A new army into the enterprise-class database market.
PointBase is the first 100% pure Java database that can be used for any platform for any Java 2 Standard Edition Virtual Machine (JVM).
Source: http://www.pointbase.com/
13, J2EE Server
1, J2SDKEE1.3.1 Referrence Implement (J2EE Reference Implementation), a good learning J2EE tool, remember, this is a learning tool, because of its efficiency, security, etc. So you can't use it to do projects or products.
Http://java.sun.com/j2ee/download.html
2, WebLogic and WebSphere don't have to say more!
3, Sun ONE Application Server (formerly IPlanet) --- Highly recommended
It is a comparative completed J2EE development platform
1, Sun One Studio 4 (predecessor FORTE)
2, Tomcat 4
3, Sun ONE Application Server A better J2EE Server
4, and J2EE RI integration
5, PointBase is the first authenticated 100% pure Java database
These tools can develop any Java products, the most important thing is that it is a free J2EE server and is free, compared to jboss, I don't know where to go, I have sent it. ! ! !
Http://wwws.sun.com/software/download/app_servers.html
14, UML tool
1. Rational Rose Big Brother's large-level UML design tools are very powerful.
2, together can think that it is the best Java UML design tool, can generate Java code according to the class diagram, after the design is complete, the system
The frame is also coming out, cool!
15, guide books
1, don't introduce the books.
Look at some books such as "from entry to proficiency", "Java Programming Thoughts" beginners do not recommend
2, Java Programmer recommended to see "Java Programming Thoughts"
3, Java Designer recommended to see "Java and Mode" (new book, Chinese writing, not translation, Chinese people can write such a deep IT book, very rare)