Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 17 jdk.jpackage.jmod - JPackage Tool
JDK 17 jdk.jpackage.jmod is the JMOD file for JDK 17 JPackage tool, which can be invoked by the "jpackage" command.
JDK 17 JPackage tool compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.jpackage.jmod.
JDK 17 JPackage tool compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 JPackage tool source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.jpackage.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/jpackage/internal/Platform.java
/* * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.jpackage.internal; import java.util.regex.Pattern; /** * Platform * * Use <code>Platform</code> to detect the operating system * that is currently running. * * Example: * * Platform platform = Platform.getPlatform(); * * switch(platform) { * case Platform.MAC: { * // Do something * break; * } * case Platform.WINDOWS: * case Platform.LINUX: { * // Do something else * } * } * */ enum Platform {UNKNOWN, WINDOWS, LINUX, MAC; private static final Platform platform; private static final int majorVersion; private static final int minorVersion; static { String os = System.getProperty("os.name").toLowerCase(); if (os.indexOf("win") >= 0) { platform = Platform.WINDOWS; } else if (os.indexOf("nix") >= 0 || os.indexOf("nux") >= 0) { platform = Platform.LINUX; } else if (os.indexOf("mac") >= 0) { platform = Platform.MAC; } else { platform = Platform.UNKNOWN; } String version = System.getProperty("os.version").toString(); String[] parts = version.split(Pattern.quote(".")); if (parts.length > 0) { majorVersion = Integer.parseInt(parts[0]); if (parts.length > 1) { minorVersion = Integer.parseInt(parts[1]); } else { minorVersion = -1; } } else { majorVersion = -1; minorVersion = -1; } } private Platform() {} static Platform getPlatform() { return platform; } static int getMajorVersion() { return majorVersion; } static int getMinorVersion() { return minorVersion; } static boolean isWindows() { return getPlatform() == WINDOWS; } static boolean isMac() { return getPlatform() == MAC; } static boolean isArmMac() { return (isMac() && "aarch64".equals(System.getProperty("os.arch"))); } static boolean isLinux() { return getPlatform() == LINUX; } static RuntimeException throwUnknownPlatformError() { throw new IllegalArgumentException("Unknown platform"); } }
⏎ jdk/jpackage/internal/Platform.java
Or download all of them as a single archive file:
File name: jdk.jpackage-17.0.5-src.zip File size: 92069 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.jshell.jmod - JShell Tool
2023-08-03, 2147👍, 0💬
Popular Posts:
What Is poi-ooxml-3.5.jar? poi-ooxml-3.5.jar is one of the JAR files for Apache POI 3.5, which provi...
JDK 11 jdk.xml.dom.jmod is the JMOD file for JDK 11 XML DOM module. JDK 11 XML DOM module compiled c...
Java Architecture for XML Binding (JAXB) is a Java API that allows Java developers to map Java class...
JLayer is a library that decodes/plays/converts MPEG 1/2/2.5 Layer 1/2/3 (i.e. MP3) in real time for...
XStream is a simple library to serialize objects to XML and back again. JAR File Size and Download L...