Java newcomer must read (from http:www.java-cn.com)

zhaozj2021-02-16  53

From http://www.java-cn.com/bbs-jsp/show.jsp?id=124465&Forum=base

Java newcomer must read, some entry knowledge, please see again (thank you), doll will organize Snakeskin http://www.dvbbs.net/dispbbs.asp?boardid=4&id=169589 1, JDK is J2SE, JDK1. 1.8 version is changed to J2SE, download address: http://java.sun.com/j2se/downloads.html 2, JRE is a Java runtime environment (JDK1.3 version contains JREs) No download 3, set the environment After the variable is installed, you want to configure the environment variable My Computer -> Properties -> Advanced -> Environment Variable Add the following environment variable (assuming your Java installation 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 newly open a DOS window, type Java and Javac test 4, simple test program 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 to 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. Development tools preferred two types 1, jbuilder - don't have to say 2, netbeans (download address www.netbeans.org , Free), Forte is similar to Sun EE and NetBeans (it is estimated to be rewritten using NetBeans), but NetBeans (3.4 version) I feel more useful, you can integrate with Tomcat and CVS, but the only shortcomings are Can't develop EJB, Forte is ok, but you can't give our own API (that is, the method of the following method is the system, and the method we write is not coming, FAINT) Other development tools Eclipse: Name the future The IDE set of IDEs developed in any language. 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 SOAP; support Oracle XML Schema extension; support MSXML4, etc., provide three XML document views: structure display and editing, original code view, support CSS, Preview of XSL. Supports the latest Schema standard, you can convert Different Schema versions of the SCHEMA document into a document that meets the latest Schema specification according to the SCHEMA Version XML documentation. Automatically generate XML Schema can directly access the database, providing a transition between database and XML to provide a user interface similar to Office XP Compatible provides a more convenient user interface customization method. The editor supports the text editing of the you get the text, based on FORM Data Enter, graphic element, etc., including a graphical XSLT generator, can generate a style document for Schema or DTD, and is finally applied to the corresponding XML document. You can go to http://www.xmlspy.com/download.html to download 9, framework cocoon: XML Framework Cocoon is a content publishing 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 a Framework for 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 to 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, making experienced Java developers to build web applications.

转载请注明原文地址:https://www.9cbs.com/read-19119.html

New Post(0)