Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
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 (322)
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, ≈15🔥, 0💬
Popular Posts:
What Is commons-io-2.11.jar? commons-io-2.11.jar is the JAR file for Commons IO 2.5, which is a libr...
What Is fop.jar? I got it from the fop-2.7-bin.zip. fop.jar in fop-2.7-bin.zip is the JAR file for F...
JDK 17 java.naming.jmod is the JMOD file for JDK 17 Naming module. JDK 17 Naming module compiled cla...
JDK 11 jdk.jcmd.jmod is the JMOD file for JDK 11 JCmd tool, which can be invoked by the "jcmd" comma...
maven-core-3.5.4.jar is the JAR file for Apache Maven 3.5.4 Core module. Apache Maven is a software ...