JDK is the core of the entire Java, including the Java Runtime Environment (Java Runtime Envirnment), a bunch of Java tools and the basic Java class library (rt.jar). No matter what Java application server is, it essentially has a certain version of JDK built-in. Therefore, mastering JDK is the first step to learn Java well. The most mainstream JDK is the JDK released by Sun. In addition to Sun, there are many companies and organizations that have developed their own JDK, such as JDK developed by IBM, Jrocket by BEA, and JDK developed by the GNU organization, etc. . Among them, the JVM (Java Virtual Machine) included in IBM's JDK runs much more efficiently than the JVM included in Sun JDK. Jrocket, which specifically runs on the x86 platform, is much more efficient on the server side than Sun JDK. But no matter what, we still need to master Sun JDK first.
1. Download and installation of JDK
1), JDK is also called J2SE (Java2 SDK Standard Edition), which can be downloaded from Sun's Java website. Download A good JDK is an executable installer (foolproof installation).
2), after the default installation is completed, a set of JRE (for browser use) will be installed in the C:/Program Files/Java/ directory, in C:/ Install a set of JDK (also including a set of JRE) under j2sdk1.4.2. Then we add environment variables: PATH (C:\Program Files (x86)\Java\jdk1.7.0_01\bin), CLASSPATH (.) and JAVA_HOME (not necessary, mainly used for the use of tomcat in the web stage. C:\Program Files (x86)\Java\jdk1.7.0_01).
#3) After the environment variables are configured, we need to search for cmd in the start menu and run it.
Enter Java in the black window and press Enter. When this appears, the JDK is installed.
2. JDK command tool
The most important command line tool of JDK:
java: Start JVM to execute class (Java package name. Class name)
javac: Java compiler (java -d. Class name.java)
javadoc: Java document generator (javadoc -d doc file name)
You must be very, very familiar with these command lines and be proficient in each parameter. For learning these commands, there are detailed documents on the JDK Documentation.
3. Uninstalling JDK
Taking win7 as an example, after installing Java jdk, there will be two programs that need to be completely uninstalled. Control Panel-->Uninstall a program-->Programs and Features:
java 7 update
Java(TM) SE Development Kit7
right click, delete OK!
The above is the content of JDK (Java Development Kit), the JAVA development tool. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!

Javadevelopmentisnotentirelyplatform-independentduetoseveralfactors.1)JVMvariationsaffectperformanceandbehavioracrossdifferentOS.2)NativelibrariesviaJNIintroduceplatform-specificissues.3)Filepathsandsystempropertiesdifferbetweenplatforms.4)GUIapplica

Java code will have performance differences when running on different platforms. 1) The implementation and optimization strategies of JVM are different, such as OracleJDK and OpenJDK. 2) The characteristics of the operating system, such as memory management and thread scheduling, will also affect performance. 3) Performance can be improved by selecting the appropriate JVM, adjusting JVM parameters and code optimization.

Java'splatformindependencehaslimitationsincludingperformanceoverhead,versioncompatibilityissues,challengeswithnativelibraryintegration,platform-specificfeatures,andJVMinstallation/maintenance.Thesefactorscomplicatethe"writeonce,runanywhere"

Platformindependenceallowsprogramstorunonanyplatformwithoutmodification,whilecross-platformdevelopmentrequiressomeplatform-specificadjustments.Platformindependence,exemplifiedbyJava,enablesuniversalexecutionbutmaycompromiseperformance.Cross-platformd

JITcompilationinJavaenhancesperformancewhilemaintainingplatformindependence.1)Itdynamicallytranslatesbytecodeintonativemachinecodeatruntime,optimizingfrequentlyusedcode.2)TheJVMremainsplatform-independent,allowingthesameJavaapplicationtorunondifferen

Javaispopularforcross-platformdesktopapplicationsduetoits"WriteOnce,RunAnywhere"philosophy.1)ItusesbytecodethatrunsonanyJVM-equippedplatform.2)LibrarieslikeSwingandJavaFXhelpcreatenative-lookingUIs.3)Itsextensivestandardlibrarysupportscompr

Reasons for writing platform-specific code in Java include access to specific operating system features, interacting with specific hardware, and optimizing performance. 1) Use JNA or JNI to access the Windows registry; 2) Interact with Linux-specific hardware drivers through JNI; 3) Use Metal to optimize gaming performance on macOS through JNI. Nevertheless, writing platform-specific code can affect the portability of the code, increase complexity, and potentially pose performance overhead and security risks.

Java will further enhance platform independence through cloud-native applications, multi-platform deployment and cross-language interoperability. 1) Cloud native applications will use GraalVM and Quarkus to increase startup speed. 2) Java will be extended to embedded devices, mobile devices and quantum computers. 3) Through GraalVM, Java will seamlessly integrate with languages such as Python and JavaScript to enhance cross-language interoperability.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Atom editor mac version download
The most popular open source editor

Notepad++7.3.1
Easy-to-use and free code editor

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),
