java获取进程pid


public static String getProccessPid(){
		String name = ManagementFactory.getRuntimeMXBean().getName();
		System.out.println(name);
		String pid = name.split("@")[0];
		return pid;
	}

# java  java进程  pid 

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×