java system类_Java System类mapLibraryName()方法及示例
java system类
系统类mapLibraryName()方法 (System class mapLibraryName() method)
mapLibraryName() method is available in java.lang package.
mapLibraryName()方法在java.lang包中可用。
mapLibraryName() method is used to map a given library name into a platform-dependent native library name. This is a universal method for mapping a library name into the platform-specific name.
mapLibraryName()方法用于将给定的库名称映射到依赖于平台的本机库名称。 这是将库名称映射到特定于平台的名称的通用方法。
mapLibraryName() method is static a method, it is accessible with the class name too.
mapLibraryName()方法是静态方法,也可以使用类名进行访问。
mapLibraryName() method may throw an exception at the time of library name mapping: NullPointerException: In this exception if the mapped library name is null.
在库名映射时, mapLibraryName()方法可能会引发异常:NullPointerException:如果映射的库名为null,则在此异常中。
Syntax:
句法:
public static String mapLibraryName(String library_name);
Parameter(s):
参数:
String library_name – represents the name of the library.
字符串library_name –代表库的名称。
Return value:
返回值:
The return type of this method is String, it returns the mapped the given the library name.
该方法的返回类型为String ,它返回给定库名称的映射。
Example:
例:
// Java program to demonstrate the example of
// mapLibraryName() method of System Class
public class MapLibraryNameMethod {public static void main(String[] args) {// Display the version of operating system
System.out.println(System.getProperty("os.version"));
// Here, we are calling the mapLibraryName() method
// that will be used to map a library name (os.version)
// into a platform-specific string representing a native library
String s = System.mapLibraryName("os.version");
System.out.println(s);
}
}
Output
输出量
E:\Programs>javac MapLibraryNameMethod.java
E:\Programs>java MapLibraryNameMethod
4.8.0-41-generic
libos.version.so
翻译自: https://www.includehelp.com/java/system-class-maplibraryname-method-with-example.aspx
java system类
java system类_Java System类mapLibraryName()方法及示例相关推荐
- java math.sin()_Java Math sin() 使用方法及示例
Java Math sin() 使用方法及示例 Java Math sin()返回指定角度的三角正弦值. sin()方法的语法为: Math.sin(double angle) sin()参数angl ...
- java sublist 用法_Java ArrayList subList() 使用方法及示例
Java ArrayList subList() 使用方法及示例 Java ArrayList subList()方法提取一部分arraylist并将其返回. subList()方法的语法为: arr ...
- java isempty用法_Java ArrayList isEmpty() 使用方法及示例
Java ArrayList isEmpty() 使用方法及示例 Java ArrayList isEmpty()方法用于检查arraylist是否为空. 该isEmpty()方法的语法为: arra ...
- java 根据类名示例化类_Java即时类| from()方法与示例
java 根据类名示例化类 即时类from()方法 (Instant Class from() method) from() method is available in java.time pack ...
- java 根据类名示例化类_Java LocalDateTime类| AdjustInto()方法与示例
java 根据类名示例化类 LocalDateTime类AdjustInto()方法 (LocalDateTime Class adjustInto() method) adjustInto() me ...
- java file用法_Java File 类的使用方法详解(转)
转自:http://www.codeceo.com/article/java-file-class.html Java File类的功能非常强大,利用Java基本上可以对文件进行所有的操作.本文将对J ...
- java parsefloat 误差_Java Float类parseFloat()方法与示例
Float类parseFloat()方法parseFloat()方法在java.lang包中可用. parseFloat()方法用于返回与给定String表示形式相对应的float值,换句话说,我们可 ...
- java getmethod类_Java Class类 getMethod()方法及示例
Class类getMethod()方法getMethod()方法在java.lang包中可用. getMethod()方法用于返回Method对象,这些对象指示该类的给定公共方法或由此Class对象表 ...
- java newinstance 包_Java Class类 newInstance()方法及示例
Class类newInstance()方法newInstance()方法在java.lang包中可用. newInstance()方法用于创建此Class对象表示的类的新实例. newInstance ...
最新文章
- python服务器搭建ftp_Python搭建HTTP服务器和FTP服务器
- 17-爬虫之scrapy框架五大核心组件工作流程及下载中间件介绍04
- 简述如何书写工程化的简单代码
- [RabbitMQ]MQ 的分类
- SQL算法中的变量使用占位符动态赋值
- 二叉查找(排序)树/二叉树----建树,遍历
- 服务器LCD显示面板,DELL服务器2950的错误代码表(前LCD面板)
- 软件定制开发的7大好处
- 圣经 英文有声 android,英文有声+Epub Foundation Series 7部 Isaac Asimov - Audiobook
- Windows桌面文件夹删除被提示“找不到该项目”——顽固目录、文件的删除
- 统计学中相关数学符号、希腊字母的标准读法
- 服务器 异常自动关机,服务器自动关机常见问题
- FME不需要符号库转换CAD填充
- 日语语法(二):名词
- [C/C++11]_[初级]_[如何转换带井号的#十六进制颜色字符串到数值]
- OpenCV—直线拟合fitLine
- scheme 教程 #lang racket
- 网页下载模板前台后台
- java车牌识别系统mysql
- Python数据可视化matplotlib:第四回:文字图例尽眉目
热门文章
- 用python玩转数据慕课答案第三周_大学慕课用Python玩转数据答案公众号
- 用ajax替换html代码,替换Ajax响应一个div的内部HTML(Replace inner HTML of a div w
- iText报表Java_(例)Java生成PDF报表 iText
- 谷歌浏览器中文版_中国科学家设计超薄指尖传感器,厚度不到A4纸五分之一 / 谷歌发布地图时光机:百年前,你家街道啥样?/ AI看图说话首超人类...
- 南京高中计算机老师,南京市教育局召开中小学教师信息技术应用能力提升工程2.0市级专家组工作会议...
- wgs84转经纬度_wgs84经纬度转为cgcs2000平面坐标
- vue 获取当前元素的父元素_react获取触发元素的属性 e.target.dataset
- LDAP命令介绍---import-ldif
- 如何用百度MIP快速搭建体验友好的移动页面
- 阿里如何实现100%容器化镜像化?八年技术演进之路回顾(转)