java: get runtime environment
https://github.com/Deci-AI/super-gradients
/**
* encoding: utf-8
* 版权所有 2023 涂聚文有限公司
* 许可信息查看:
* Java开源框架和库
* http://projects.apache.org
* https://eclipse.org/projects
* http://spring.io/projects
* https://redhatofficial.github.io
* https://sourceforge.net
* https://github.com
* https://bitbucket.org
* https://gitlab.org
* https//search.maven.org
* http://darwinsys.com/jwf
* JSF附加库
* https://bootsfaces.net
* http://butterfaces.org
* http://icefaces.org
* http://openfaces.org
* http://primefaces.org
* http://richfaces.org
* http://deltaspike.apache.org
* http://www.jboss.org/jsfunit/
* http://omnifaces.org
*
* 描述:
* # Author : geovindu,Geovin Du 涂聚文.
* # IDE : IntelliJ IDEA 2023.1 Java 17
* # Datetime : 2023 - 2023/11/15 - 6:02
* # User : geovindu
* # Product : IntelliJ IDEA
* # Project : javademo
* # File : Env.java 类
* # explain : 学习
**/
package Common;
//import com.darwinsys.*;
public class Env {
/**
*
* @return
*/
public static String getEnv()
{
return ("system.getenv(\"path\")="+System.getenv("PATH"));
}
/**
*
* @return
*/
public static String getColor()
{
String str=System.getProperty("pencil_color");
return str;
}
/**
*遍历系统属性信息
*/
public static void getEnvList()
{
System.getProperties().forEach((k,v)->System.out.println(k+"->"+v));
}
}
Java Cookbook
IDE:
JAVA IDE:IntelliJ IDEA,NetBeans,Eclipse
调用:
/**
* encoding: utf-8
* 版权所有 2023 涂聚文有限公司
* 许可信息查看:
* 描述:
* # Author : geovindu,Geovin Du 涂聚文.
* # IDE : IntelliJ IDEA 2023.1 Java 17
* # Datetime : 2023 - 2023/11/15 - 6:02
* # User : geovindu
* # Product : IntelliJ IDEA
* # Project : javademo
* # File : main.java 类
* # explain : 学习
*GraalVM
* https://www.graalvm.org/
* https://www.oracle.com/cn/java/graalvm/
* https://www.graalvm.org/downloads/#
* com.darwinsys
*CVS,Subversion,Git
* http://git-scm.com
*/
import com.darwinsys.util.*;
import Common.Env;
public class Main {
/**
*
* @param args
*/
public static void main(String[] args)
{
System.out.println("Hello java world!");
System.out.println(Env.getEnv());
System.out.println(Env.getColor());
Env.getEnvList();
}
}
哲学管理(学)人生, 文学艺术生活, 自动(计算机学)物理(学)工作, 生物(学)化学逆境, 历史(学)测绘(学)时间, 经济(学)数学金钱(理财), 心理(学)医学情绪, 诗词美容情感, 美学建筑(学)家园, 解构建构(分析)整合学习, 智商情商(IQ、EQ)运筹(学)生存.---Geovin Du(涂聚文)
浙公网安备 33010602011771号