/*
 * Copyright (c) 2019 Of Him Code Technology Studio
 * Jpom is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 * 			http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */
//import cn.hutool.system.SystemUtil;
//import io.jpom.util.JvmUtil;
//import com.sun.tools.attach.AgentInitializationException;
//import com.sun.tools.attach.AgentLoadException;
//import com.sun.tools.attach.AttachNotSupportedException;
//
//import java.io.IOException;
//
///**
// * Created by bwcx_jzy on 2019/3/20.
// */
//public class TestJavaInfo {
//    public static void main(String[] args) throws IOException, AttachNotSupportedException, AgentLoadException, AgentInitializationException, ClassNotFoundException {
//        System.out.println(SystemUtil.getJavaRuntimeInfo().getHomeDir());
////        VirtualMachine virtualMachine = VirtualMachine.attach("16772");
////        String agent = StrUtil.format("{}{}lib{}management-agent.jar", SystemUtil.getJavaRuntimeInfo().getHomeDir(), File.separator, File.separator);
////        virtualMachine.loadAgent(agent);
////        virtualMachine.loadAgent(agent);
//        //JvmUtil.importFrom(7292);
//        //System.out.println(JvmUtil.importFrom(7292));
//    }
//}
