SoFunction
Updated on 2025-04-07

Shortcuts to Java learning

1. jdk is j2se. After jdk1.1.8 version, it will be changed to j2se.

Download address: /j2se/

2. jre is the Java runtime environment (jdk1.3 version includes jre after it) without downloading it separately

 3. Set environment variables

After installing jdk, you need to 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\;c:\jdk1.3\lib\;(.; cannot be missing because it represents the current path)

path = c:\jdk1.3\bin

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

 4. Simple test program

Code:

--------------------------------
public class Test{
 public static void main(String args[]){
("Hello world!");
}
}
-------------------------------------
javac
java Test
5. Introduction to common tools for Java, j2ee, xml development

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 go to /j2ee/download

 6. Build Tools

ant: Ant is a Java-based cross-platform build tool. The reason Ant can cross-platform is that Ant no longer requires you to write shell commands. Ant's configuration file is based on XML task tree, which allows you to run various tasks. The operation of tasks is done by objects that implement specific task interfaces.

Http:///ant

7. Development tools (IDE, integrated development environment)

1. Two preferred development tools

2. jbuilder--No need to say more

3. netBeans (download address, free), forte is similar to Sun EE and netbeans (it is probably rewritten using the original code of netbeans), but I think netbeans (version 3.4) is easier to use and can be integrated with tomcat and cvs, but the only disadvantage is that EJB cannot be developed. Forte is OK, but it cannot give the API we write ourselves (that is, the methods that appear later are systematic, but the methods we write ourselves cannot be produced, fail)

Other development tools

Eclipse: A master of IDE that can carry out any language development 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 to become an IDE environment that specializes in developing Java programs. According to the architecture of Eclipse, through the development plug-in, it can be extended to the development of any language, and even become a tool for image drawing.

At present, Eclipse has begun to provide functional plug-ins for C language development. What is even more commendable is that Eclipse is an open source project. Anyone can download the source code of Eclipse and develop their own functional plug-ins based on this. In other words, in the future, as long as someone needs it, development plug-ins for COBOL, Perl, Python and other languages ​​built on Eclipse will appear.

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

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

Http://

8. Professional XML editing tools

XMLSPY: supports SOAP; supports Oracle XML Schema extension; supports MSXML4, etc.; provides three XML document views: structure display and editing, original code view and preview supporting CSS and XSL. Support the latest schema standard, you can verify XML documents according to schema. You can convert different schema versions of schema documents into documents that comply with the latest schema specifications. You can convert DTDs, XML-Data, or BizTalk schemas to W3C XML.

Schema automatically generates XML from database connections (ADO, ODBC). Schema can directly access the database, providing conversion between database and XML. It provides a user interface similar to Office XP compatible. It provides a more convenient way to customize the user interface.

The editor supports WYSIWYG text editing, form-based data input, graphic elements, etc., and includes a graphical XSLT generator that can generate style documents for schema or DTD, and finally apply to the corresponding XML documents.

Can go to/download

  9、Framework

cocoon:XML Framework

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

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

The new Cocoon model can completely separate document content, style, and processing logic, allowing these three layers to be independently designed, created and managed, thereby reducing management overhead, strengthening work reusability, and reducing development time.

Source: /cocoon

9、struts:JSP Framework

Struts is an open source framework that uses Java Servlet/JavaServer Pages technology to develop web applications.

Struts can be used to develop an application architecture based on the MVC (Model-View-Controller) design model.

Struts has the following main functions:

?Contains a controller servlet that can send 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.

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

Source: /struts

10、turbine:Servlet Framework

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

With Turbine, you can create Screens that handle templates using specific services,

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

Source: /turbine

  11、Demo

Java Pet Store: j2ee application example

Java Pet Store is a sample j2ee enterprise application program for Java software blueprint planning.

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

You can get the latest information and learning materials from /blueprints/enterprise/. The current latest version is 1.3_01 based on j2ee1.3.

Source: /blueprints/enterprise/

12、database

pointbase: A new army entering the enterprise-level database market.

PointBase is the first certified 100% pure Java database that can be used on any platform that uses Java 2 Standard Virtual Machine (JVM).

source:/

  13、j2ee server

1. j2sdkee1.3.1 reference implementation (j2ee reference implementation), a good tool for learning j2ee. Remember, this is a learning tool, not a tool developed by an enterprise. Because of its efficiency, safety and other problems, it cannot be used to make projects or products.

Http:///j2ee/

2. Weblogic and websphere No need to say more!

3. Sun one Application Server (formerly it was artlanet)---Highly recommended

It is a relatively complete j2ee development platform

1. sun one studio 4 (formerly forte)

2、tomcat 4

3. sun one application server A better j2ee server

4. Integration with j2ee ri

5. Pointbase is the first certified 100% pure Java database

These tools can be enough for you to develop any Java product. The most important thing is that it is a free j2ee server and it is free. Compared to jboss, I don’t know how good it is. Haha, I deserve it now! ! !

Http:///software/download/app_servers.html

14. UML Tools

1. Rational Rose The big brother's UML design tool has very powerful functions.

2. Together can be considered the best java UML design tool, and can generate java code synchronously according to class diagrams. After the design is completed, the system framework is also released, which is great!

 15. Guidance books

1. I won't introduce the introductory books

Read some books like "From Beginner to Mastery", which are not recommended by beginners of "Java Programming Thoughts"

2. Java Programmer recommends reading "Java Programming Thoughts"

3. Java designer recommends reading "Java and Model" (new book, written by Chinese, not translated, it is rare for Chinese to write such meaningful IT books)