2024-04-14 21:05:01 +08:00

31 lines
723 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.zhgd.xmgl.util;
import lombok.extern.slf4j.Slf4j;
import java.io.UnsupportedEncodingException;
/**
* @program: hkdev
* @description: dll文件路径
* @author: Mr.Peng
* @create: 2019-08-30 14:04
**/
@Slf4j
public class HCNetSDKPath {
public static String DLL_PATH;
static {
String path = (HCNetSDKPath.class.getResource("/").getPath()).replaceAll("%20", " ").substring(1).replace("/",
"\\");
try {
DLL_PATH = java.net.URLDecoder.decode(path, "utf-8");
} catch (UnsupportedEncodingException e) {
log.error("error", e);
}
}
public static void main(String[] args) {
System.out.println(DLL_PATH);
}
}