### Install Autoconf on Windows (Cygwin) Source: https://github.com/openjdk/jdk25u-dev/blob/master/doc/building.html Installs Autoconf on Windows using Cygwin's setup utility. ```bash /setup-x86_64 -q -P autoconf ``` -------------------------------- ### Install Cygwin Packages Source: https://github.com/openjdk/jdk25u-dev/blob/master/doc/building.html Installs essential packages for building the JDK using Cygwin. Ensure the correct path to the Cygwin setup executable is used. ```bash /setup-x86_64 -q -P autoconf -P make -P unzip -P zip ``` -------------------------------- ### Install SLEEF from Source Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/jdk.incubator.vector/unix/native/libsleef/upstream/README.md Install the built SLEEF library and headers to a specified prefix directory using CMake's install command. ```bash cmake --install build --prefix= ``` -------------------------------- ### LLVM Home Example Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/utils/hsdis/README.md Example of specifying the LLVM home directory when llvm-config is located in a custom path. ```bash --with-llvm=~/my-llvm ``` -------------------------------- ### Install SLEEF Quad Precision Library Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/jdk.incubator.vector/unix/native/libsleef/upstream/src/quad/CMakeLists.txt Configures the installation of the SLEEF quad-precision library, including headers, libraries, and runtime components. Specifies installation directories and components for development and runtime. ```cmake # Install libsleef and sleef.h install( TARGETS sleefquad EXPORT sleefTargets PUBLIC_HEADER # DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" COMPONENT sleef_Development LIBRARY # DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT sleef_Runtime NAMELINK_COMPONENT sleef_Development ARCHIVE # DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT sleef_Development RUNTIME # DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT sleef_Runtime INCLUDES # DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" ) ``` -------------------------------- ### Install libdft Library and Headers Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/jdk.incubator.vector/unix/native/libsleef/upstream/src/dft/CMakeLists.txt This snippet defines the installation rules for the libdft library, including its runtime components, development files, and headers. It specifies destinations and components for installation. ```cmake install( TARGETS ${TARGET_LIBDFT} EXPORT sleefTargets PUBLIC_HEADER # DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" COMPONENT sleef_Development LIBRARY # DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT sleef_Runtime NAMELINK_COMPONENT sleef_Development ARCHIVE # DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT sleef_Development RUNTIME # DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT sleef_Runtime INCLUDES # DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" ) ``` -------------------------------- ### Get All Configure Arguments Source: https://github.com/openjdk/jdk25u-dev/blob/master/doc/building.html Run this command to get up-to-date information on all available configure arguments. ```bash bash configure --help ``` -------------------------------- ### Example jmod Options File Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/jdk.jlink/share/man/jmod.md This example demonstrates how to use an options file with the jmod command to specify various parameters for creating a JMOD archive. ```bash #Wed Dec 07 00:40:19 EST 2016 create --class-path mods/com.greetings --module-path mlib --cmds commands --config configfiles --header-files src/h --libs lib --main-class com.greetings.Main --man-pages man --module-version 1.0 --os-arch "x86_x64" --os-name "macOS" --os-version "10.10.5" greetingsmod ``` -------------------------------- ### Install SLEEF using Spack Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/jdk.incubator.vector/unix/native/libsleef/upstream/README.md Install the SLEEF library using the Spack package manager. This command installs the master branch of SLEEF. ```bash spack install sleef@master ``` -------------------------------- ### javac -Xlint:path Example (Windows) Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/jdk.compiler/share/man/javac.md Example command to trigger path warnings for invalid or nonexistent directories on Windows. ```bash javac -Xlint:path -classpath C:\nonexistentpath Example.java ``` -------------------------------- ### Install X11 Libraries on Alpine Linux Source: https://github.com/openjdk/jdk25u-dev/blob/master/doc/building.html Installs essential X11 development libraries on Alpine Linux using apk. ```bash sudo apk add libx11-dev libxext-dev libxrender-dev libxrandr-dev libxtst-dev libxt-dev ``` -------------------------------- ### javac -Xlint:path Example (Linux/macOS) Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/jdk.compiler/share/man/javac.md Example command to trigger path warnings for invalid or nonexistent directories on Linux and macOS. ```bash javac -Xlint:path -classpath /nonexistentpath Example.java ``` -------------------------------- ### Install X11 Libraries on apt-based Linux Source: https://github.com/openjdk/jdk25u-dev/blob/master/doc/building.html Installs essential X11 development libraries on Debian-based systems using apt-get. ```bash sudo apt-get install libx11-dev libxext-dev libxrender-dev libxrandr-dev libxtst-dev libxt-dev ``` -------------------------------- ### Install libffi on Alpine Linux Source: https://github.com/openjdk/jdk25u-dev/blob/master/doc/building.html Installs the libffi development library on Alpine Linux using apk. ```bash sudo apk add libffi-dev ``` -------------------------------- ### Start JDB Debugging a New JVM Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/jdk.jdi/share/man/jdb.md Launches a new JVM and starts JDB debugging with the specified main class. The JVM stops before executing the first instruction. ```bash jdb MyClass ``` -------------------------------- ### jlink Options File Example Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/jdk.jlink/share/man/jlink.md An example of an options file for the jlink command, used to specify various jlink options in a text file. ```shell #Wed Dec 07 00:40:19 EST 2016 --module-path mlib --add-modules com.greetings --output greetingsapp ``` -------------------------------- ### Running Database-Connected JTable Examples Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/demo/share/jfc/TableExample/README.txt This command demonstrates how to run JTable examples that require database connectivity. Ensure the JDBC driver is in your classpath and JDBCHOME is set. ```bash java -classpath $(JDBCHOME):TableExample.jar TableExample ``` -------------------------------- ### Pre-configured options file example Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/java.base/share/man/keytool.md Demonstrates how a pre-configured options file can simplify keytool commands by setting default options. The example shows how options from the command line override those in the configuration file. ```properties # A tiny pre-configured options file keytool.all = -keystore ${user.home}/ks keytool.list = -v keytool.genkeypair = -keyalg rsa ``` ```shell keytool -conf preconfig -list ``` ```shell keytool -keystore ~/ks -v -list ``` ```shell keytool -conf preconfig -genkeypair -alias me ``` ```shell keytool -keystore ~/ks -keyalg rsa -genkeypair -alias me ``` ```shell keytool -conf preconfig -genkeypair -alias you -keyalg ec ``` ```shell keytool -keystore ~/ks -genkeypair -alias you -keyalg ec ``` -------------------------------- ### Create and Build Multiple Configurations Source: https://github.com/openjdk/jdk25u-dev/blob/master/doc/building.md Demonstrates how to create named build configurations using `configure --with-conf-name` or by creating subdirectories within the `build` directory. Shows how to build specific or multiple configurations using `make CONF=`. ```bash mkdir build/ && cd build/ && bash ../../configure ``` ```bash make CONF= ``` ```bash make CONF_NAME= ``` ```bash cd build/ && make ``` -------------------------------- ### Building from Configuration Directory Source: https://github.com/openjdk/jdk25u-dev/blob/master/doc/building.html Navigate to the configuration's build directory and run make to build that specific configuration. ```bash cd build/ && make ``` -------------------------------- ### Start PCSC daemon Source: https://github.com/openjdk/jdk25u-dev/blob/master/test/jdk/sun/security/smartcardio/README.txt Run the PCSC daemon in the foreground after installation. ```shell As root, go to /usr/local/sbin Run ./pcscd --foreground ``` -------------------------------- ### AWT Frame Display Example Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/java.desktop/share/classes/java/awt/doc-files/AWTThreadIssues.html This example demonstrates creating and displaying an AWT Frame. It highlights that AWT's event dispatch machinery can start non-daemon helper threads, preventing the JVM from exiting immediately after 'main' terminates. ```java public static void main(String[] args) { Frame frame = new Frame(); frame.setVisible(true); } ``` -------------------------------- ### Keytool -printcert Command Example Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/java.base/share/man/keytool.md Illustrates the syntax for the -printcert command, showing how to replace placeholder values with actual file names. ```bash keytool -printcert -file VScert.cer ``` -------------------------------- ### StartElement Event Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/jdk.compiler/share/data/symbols/java.xml-8.sym.txt Represents the start of an XML element. Provides methods to get the element's name, attributes, namespaces, and to query namespace information. ```APIDOC ## StartElement Event ### Description Represents the start of an XML element. Provides methods to get the element's name, attributes, namespaces, and to query namespace information. ### Methods - `getName()`: Returns the QName of the element. - `getAttributes()`: Returns an Iterator of attributes for the element. - `getNamespaces()`: Returns an Iterator of namespaces for the element. - `getAttributeByName(QName)`: Returns the attribute with the specified QName. - `getNamespaceContext()`: Returns the NamespaceContext for the element. - `getNamespaceURI(String prefix)`: Returns the namespace URI for the given prefix. ``` -------------------------------- ### Cross-compile libffi for RISC-V Source: https://github.com/openjdk/jdk25u-dev/blob/master/doc/building.html Example of cross-compiling the libffi library for RISC-V. This involves cloning the repository, configuring with the correct host and prefix, and then building and installing. ```bash # An example for libffi git clone https://github.com/libffi/libffi cd libffi ./configure --host=riscv64-unknown-linux-gnu --prefix=/sysroot/usr make make install ``` -------------------------------- ### Custom Command on Irrecoverable Error (Non-Windows) Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/java.base/share/man/java.md Sets a custom command to run when an irrecoverable error occurs. This example runs 'gcore' and starts 'gdb' on non-Windows systems. ```bash -XX:OnError="gcore %p;gdb -p %p" ``` -------------------------------- ### javax.swing.SpinnerDateModel Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/jdk.compiler/share/data/symbols/java.desktop-9.sym.txt Represents a model for a JSpinner that allows the user to edit a Date. It provides methods to set and get the start and end bounds of the editable date range, as well as the step size. ```APIDOC ## javax.swing.SpinnerDateModel ### Description Provides a model for a JSpinner to edit a Date, with support for start and end bounds and a step size. ### Methods - **``**: Constructs a SpinnerDateModel. - Signature: `(java.util.Date start, java.lang.Comparable end, java.lang.Comparable value, int step)` - **`setStart`**: Sets the start boundary for the date. - Signature: `(java.lang.Comparable start)` - **`getStart`**: Gets the start boundary for the date. - Signature: `()Ljava/lang/Comparable;` - **`setEnd`**: Sets the end boundary for the date. - Signature: `(java.lang.Comparable end)` - **`getEnd`**: Gets the end boundary for the date. - Signature: `()Ljava/lang/Comparable;` ``` -------------------------------- ### Show Version (Continue Execution) Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/java.base/share/man/java.md Prints the product version to the standard output stream and continues execution. ```bash java --show-version ``` -------------------------------- ### Enable Icecc for Distributed Compilation Source: https://github.com/openjdk/jdk25u-dev/blob/master/doc/building.md Utilize Icecc/Icecream for distributed compilation across multiple machines to significantly reduce individual build times. Requires an Icecc network setup and installation on the build machine. ```bash ./configure --enable-icecc ``` -------------------------------- ### Configure for 32-bit Windows Build with FreeType2 Source: https://github.com/openjdk/jdk25u-dev/blob/master/doc/building.html Example of creating a 32-bit build for Windows, specifying the FreeType2 path and target bits. ```bash bash configure --with-freetype=/cygdrive/c/freetype-i586 --with-target-bits=32 ``` -------------------------------- ### Example Test Case Generation Source: https://github.com/openjdk/jdk25u-dev/blob/master/test/langtools/tools/javac/classfiles/attributes/annotations/README.txt Demonstrates how to use the TestCase class to build a test case, including adding annotations to a class, a method, and a local class within that method. This setup is used to generate source code for testing annotation attributes. ```java TestCase test = new TestCase(ClassType.CLASS, "Test", "public"); test.clazz.addAnnotation(annotations); TestCase.TestMethodInfo classMethod = test.clazz.addMethod("classMethod()"); classMethod.addAnnotation(annotation); TestCase.TestClassInfo localClassInClassMethod = classMethod.addLocalClass("Local"); localClassInClassMethod.addAnnotation(annotations); ``` -------------------------------- ### Build Output Structure Example Source: https://github.com/openjdk/jdk25u-dev/blob/master/doc/building.md The `$BUILD` directory contains important subdirectories for build artifacts and tools. Key directories include `images` for generated images, `jdk` for the exploded image, and `support` for intermediate files. ```text buildtools/ configure-support/ hotspot/ images/ jdk/ make-support/ support/ test-results/ test-support/ ``` -------------------------------- ### Start jstatd with External RMI Registry Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/jdk.jstatd/share/man/jstatd.md Starts a jstatd session with an external RMI registry. Requires 'rmiregistry' to be started separately. ```shell rmiregistry& jstatd ``` -------------------------------- ### Example Build Failure Summary Source: https://github.com/openjdk/jdk25u-dev/blob/master/doc/building.html This is a typical summary printed at the end of a failed build, highlighting the failing target, command output, and make targets. ```text ERROR: Build failed for target 'hotspot' in configuration 'linux-x64' (exit code 2) === Output from failing command(s) repeated here === * For target hotspot_variant-server_libjvm_objs_psMemoryPool.o: /src/jdk/hotspot/src/share/vm/services/psMemoryPool.cpp:1:1: error: 'failhere' does not name a type ... (rest of output omitted) * All command lines available in /src/jdk/build/linux-x64/make-support/failure-logs. === End of repeated output === === Make failed targets repeated here === lib/CompileJvm.gmk:207: recipe for target '/src/jdk/build/linux-x64/hotspot/variant-server/libjvm/objs/psMemoryPool.o' failed make/Main.gmk:263: recipe for target 'hotspot-server-libs' failed === End of repeated output === HELP: Try searching the build log for the name of the first failed target. HELP: Run 'make doctor' to diagnose build problems. ``` -------------------------------- ### Installing Interface Library Target Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/jdk.incubator.vector/unix/native/libsleef/upstream/src/libm/CMakeLists.txt This command installs the interface library target for the inline headers, making it available for export. It specifies the include destination for the installed headers. ```cmake install( TARGETS "${TARGET_INLINE_HEADERS}" EXPORT sleefTargets INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" ) ``` -------------------------------- ### Anchor: Start of String Source: https://github.com/openjdk/jdk25u-dev/blob/master/test/jdk/java/util/regex/BMPTestCases.txt Tests the caret (^) anchor for the start of the string. ```regex ^\u3042\u3043\u3044 \u3042\u3043\u3044\u3045\u3046\u3047 true \u3042\u3043\u3044 0 ``` ```regex ^\u3042\u3043\u3044 \u3043\u3044\u3045\u3042\u3043\u3044 false 0 ``` -------------------------------- ### Install Autoconf on macOS Source: https://github.com/openjdk/jdk25u-dev/blob/master/doc/building.html Installs Autoconf on macOS using Homebrew. ```bash brew install autoconf ``` -------------------------------- ### Javac Command-Line Argument Examples Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/jdk.compiler/share/man/javac.md Illustrates different ways to specify arguments with options, including quoted arguments with spaces and various separators for double-dash options. ```shell -Aname="J. Duke" -proc:only -d myDirectory --module-version 3 --module-version=3 ``` -------------------------------- ### Building All Configurations Source: https://github.com/openjdk/jdk25u-dev/blob/master/doc/building.html Build all available configurations by leaving the CONF variable empty. ```bash make CONF= ``` -------------------------------- ### Javac Class Path Options Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/jdk.compiler/share/man/javac.md Demonstrates the usage of options to specify the location of user class files and annotation processors. ```shell --class-path *path* -classpath *path* -cp *path* ``` -------------------------------- ### Enable Build Time Summary Source: https://github.com/openjdk/jdk25u-dev/blob/master/doc/building.html Run the make command with LOG=info to display a build time summary at the end of the build process. This helps in analyzing and optimizing build performance. ```bash make LOG=info ``` -------------------------------- ### Check libusb installation Source: https://github.com/openjdk/jdk25u-dev/blob/master/test/jdk/sun/security/smartcardio/README.txt Verify if the libusb library is installed and accessible in the /usr/lib directory. ```shell ls -l /usr/lib/libusb.so ``` -------------------------------- ### Install Autoconf on Alpine Linux Source: https://github.com/openjdk/jdk25u-dev/blob/master/doc/building.html Installs Autoconf on Alpine Linux using apk. ```bash sudo apk add autoconf ``` -------------------------------- ### Install Autoconf on apt-based Linux Source: https://github.com/openjdk/jdk25u-dev/blob/master/doc/building.html Installs Autoconf on Debian-based systems using apt-get. ```bash sudo apt-get install autoconf ``` -------------------------------- ### Configure Build Jobs and Boot JDK JVM Arguments Source: https://github.com/openjdk/jdk25u-dev/blob/master/doc/building.html Specify the number of build jobs directly using --with-jobs=N for configure or JOBS=N for make. Also, override default JVM arguments for the Boot JDK with --with-boot-jdk-jvmargs. ```bash --with-jobs=N JOBS=N --with-boot-jdk-jvmargs="-Xmx8G" ``` -------------------------------- ### com.sun.jdi.event.ThreadStartEvent Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/jdk.compiler/share/data/symbols/jdk.jdi-9.sym.txt Represents a thread start event. It extends Event and provides access to the thread that was started. ```APIDOC ## Class: com.sun.jdi.event.ThreadStartEvent ### Description Represents a thread start event. It extends `Event` and provides access to the thread that was started. ### Methods - **thread()**: Returns the thread that was started. ``` -------------------------------- ### View J2D Demo Command Line Options Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/demo/share/jfc/J2Ddemo/README.txt Displays all available command-line options for customizing demo runs. This is useful for exploring different ways to configure and execute the demos. ```shell java -jar J2Ddemo.jar -help ``` -------------------------------- ### Install Autoconf on rpm-based Linux Source: https://github.com/openjdk/jdk25u-dev/blob/master/doc/building.html Installs Autoconf on Red Hat-based systems using yum. ```bash sudo yum install autoconf ``` -------------------------------- ### Basic jwebserver Usage Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/jdk.httpserver/share/man/jwebserver.md Launches the Simple Web Server with default settings. It binds to the loopback address and port 8000, serving files from the current directory. ```bash jwebserver ``` -------------------------------- ### Example of JDK_JAVA_OPTIONS usage Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/java.base/share/man/java.md This example demonstrates how to set the JDK_JAVA_OPTIONS environment variable with various arguments, including quoted strings and @-files, and shows its equivalent command line execution. ```shell $ export JDK_JAVA_OPTIONS='-g @file1 -Dprop=value @file2 -Dws.prop="white spaces"' $ java -Xint @file3 ``` ```shell java -g @file1 -Dprop=value @file2 -Dws.prop="white spaces" -Xint @file3 ``` -------------------------------- ### Caret Metacharacter for Start of String Source: https://github.com/openjdk/jdk25u-dev/blob/master/test/jdk/java/util/regex/TestCases.txt Demonstrates the use of the caret `^` metacharacter to assert the position at the start of a string. ```regex ^abc ``` -------------------------------- ### Run Stylepad Demo Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/demo/share/jfc/Stylepad/README.txt Execute the Stylepad demo application using the Java Runtime Environment. Ensure the 'java' command is in your system's PATH. ```bash java -jar Stylepad.jar ``` -------------------------------- ### javax.naming.ldap.StartTlsResponse Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/jdk.compiler/share/data/symbols/java.naming-8.sym.txt Represents an LDAP Start TLS Extended Response, received after initiating a Start TLS request. ```APIDOC ## Class: javax.naming.ldap.StartTlsResponse ### Description Represents an LDAP Start TLS Extended Response. This response is received from the LDAP server after a StartTlsRequest has been sent, indicating the status of the TLS negotiation. ### Fields * **`OID`**: The Object Identifier for the Start TLS Extended Response. ### Methods * **``**: Constructor for creating a StartTlsResponse. * `()`: Creates a new StartTlsResponse. * **`getID()`**: Returns the OID of the extended response. * **`getEncodedValue()`**: Returns the encoded value of the extended response. * **`setEnabledCipherSuites(String[])`**: Sets the enabled cipher suites for the TLS session. * **`setHostnameVerifier(HostnameVerifier)`**: Sets the hostname verifier for the TLS session. * **`negotiate()`**: Negotiates the TLS session using default settings. * **`negotiate(SSLSocketFactory)`**: Negotiates the TLS session using a provided SSLSocketFactory. * **`close()`**: Closes the TLS session. ``` -------------------------------- ### Create a basic runtime image Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/jdk.jlink/share/man/jlink.md Creates a runtime image named 'greetingsapp' by linking the 'com.greetings' module from the 'mlib' directory. ```bash jlink --module-path mlib --add-modules com.greetings --output greetingsapp ``` -------------------------------- ### java.awt.image.FilteredImageSource.startProduction Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/jdk.compiler/share/data/symbols/java.desktop-A.sym.txt Starts the production of the image data. This method is called by an `ImageProducer` to start the image production process. ```APIDOC ## java.awt.image.FilteredImageSource.startProduction (java.awt.image.ImageConsumer ic) ### Description Starts the production of the image data. This method is called by an `ImageProducer` to start the image production process. ### Method void ### Parameters - **ic** (java.awt.image.ImageConsumer) - Required - The `ImageConsumer` to receive the image data. ``` -------------------------------- ### Run Configure Script Source: https://github.com/openjdk/jdk25u-dev/blob/master/doc/building.html Execute the configure script to set up the build environment. This script checks for dependencies and prepares the build system. ```bash bash configure ``` -------------------------------- ### Install libffi on apt-based Linux Source: https://github.com/openjdk/jdk25u-dev/blob/master/doc/building.html Installs the libffi development library on Debian-based systems using apt-get. ```bash sudo apt-get install libffi-dev ``` -------------------------------- ### Creating a Named Configuration in a Subdirectory Source: https://github.com/openjdk/jdk25u-dev/blob/master/doc/building.html Alternatively, create a configuration by navigating to a subdirectory within the build directory and running configure. ```bash mkdir build/ && cd build/ && bash ../../configure ``` -------------------------------- ### Building a 32-bit Target on a 64-bit Machine Source: https://github.com/openjdk/jdk25u-dev/blob/master/doc/building.html Configure the build process to create a 32-bit target executable while using a 64-bit build machine. This is recommended even for 32-bit builds. ```bash configure --with-target-bits=32 ``` -------------------------------- ### Print Product Version (Output Stream, Exit) Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/java.base/share/man/java.md Prints the product version to the standard output stream and then exits. ```bash java --version ``` -------------------------------- ### Example Log Message with Decorations Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/java.base/share/man/java.md An example of a log message showing uptime, level, and tags as decorations. ```text [6.567s][info][gc,old] Old collection complete ``` -------------------------------- ### Install Visual Studio Build Tools for Windows AArch64 Source: https://github.com/openjdk/jdk25u-dev/blob/master/doc/building.html Command to silently install Visual Studio 2022 Build Tools with specific components for Windows AArch64 native builds. This avoids a full Visual Studio installation. ```batch vs_buildtools.exe --quiet --wait --norestart --nocache ^ --installPath "%ProgramFiles(x86)%\Microsoft Visual Studio\2022\BuildTools" ^ --add Microsoft.VisualStudio.Component.VC.CoreBuildTools ^ --add Microsoft.VisualStudio.Component.VC.Tools.ARM64 ^ --add Microsoft.VisualStudio.Component.Windows11SDK.22621 ``` -------------------------------- ### Install libffi on rpm-based Linux Source: https://github.com/openjdk/jdk25u-dev/blob/master/doc/building.html Installs the libffi development library on Red Hat-based systems using yum. ```bash sudo yum install libffi-devel ``` -------------------------------- ### Setting up SLEEF Quad Library Paths Source: https://github.com/openjdk/jdk25u-dev/blob/master/src/jdk.incubator.vector/unix/native/libsleef/upstream/src/quad-tester/CMakeLists.txt Configures linker and include paths for the SLEEF quad-precision library and its common components. Ensures necessary headers and libraries are found during the build process. ```cmake link_directories(${sleef_BINARY_DIR}/lib) # libsleefquad link_directories(${sleef_BINARY_DIR}/src/common) # common.a include_directories(${sleef_BINARY_DIR}/include) # sleef.h, sleefquad.h include_directories(${sleef_SOURCE_DIR}/src/quad) # qrename.h include_directories(${sleef_BINARY_DIR}/src/quad/include) # rename headers ```