Recently, I have Integrated Java applications and systematically learned java. I will share some of my experiences in this series.
JAVA
Java is a virtual machine.
JRE: runtime environment, including necessary runtime libraries for system deployment
JDK: development kit, including compilers and tools, which are generally used during development.
Key: JAVA_HOME CLASSPATH
JAVA_HOME: the java program has a virtual layer, so an interpretation environment is required to load the compiled java library and perform corresponding operations. At this time, the role of JAVA_HOME is reflected.
CLASSPATH: similar to the normal dll loading, the operating system supports the search layers of local directories and System directories by default. When a java program uses a third-party library, you need to tell it where to find these libraries, and CLASSPATH will do this, which is similar to the environment variables in Windows.
JDK demo and sample
Take jdk1.6 update23 as an Example
The example in the jdk installation directory is a good resource that is familiar with languages and contains projects that can be opened directly by Netbeans. In this way, you can view and track related concepts under IDE, through IDE settings, you can know the relationship between the project organization and reference library. (Download netbeans from the netbeans.org website. Although eclipse is popular, it is easier for beginners to use netbeans)
C: Program Files (x86) Javajdk1.6.0 _ 23 demo
Applets.html: view the small plug-in appletsscripting in the browser
Jfc management scripting can be opened and used in Netbeans
C: Program Files (x8620.javajdk1.6.0_23demojvmtiindex.html JavaTM Virtual Machine Tools Interface (jvm ti)
Java Platform Debugger Architecture (JPDA) Jpda
Where, when Netbeans is opened and jconsole-plugin is run
C: Program Files (x86) Javajdk1.6.0 _ 23 sample
Scripting Scriptpad: JavaScript calls a Notepad program compiled by JDK and can execute scripts.
Webservices: use ebay WebService
Nioserver: A Simple NIO-based HTTP/HTTPS Server Example. You can compile and run it using the command line or introduce the tracing in Netbeans (A demonstration of NIO)
How to introduce Netbeans: first, select the correct project template. This is a Java program. When creating a project, create a new project from the existing source code (for projects without netbeans, you can introduce it in IDE)
Document
Jdk_api_rj6_zh_cn.chm
Jdk-6u23-docs.zip
Thinking in Java 4th Edition
References
The following are two well-summarized posts for beginners.
Http://www.bkjia.com/kf/200609/13594.html
For the syntax differences between JAVA and C #, refer to an interesting website:
Http://www.harding.edu/fmccown/java_csharp_comparison.html