C:\Documents%20and%20Settings\Administrator..(系统找不到指定的路径。)
来源:互联网 发布:没有淘宝能有支付宝吗 编辑:程序博客网 时间:2024/06/05 07:47
if (localIp == null) {
try {
Properties props = new Properties();
String path = SystemService.class.getResource("/config/cbp.properties").getFile();
InputStream in = new BufferedInputStream(new FileInputStream(path));
props.load(in);
localIp = props.getProperty("local.ip");
} catch (Exception e) {
ExceptionHolder exceptionHolder = new ExceptionHolder(e);
logger.error(exceptionHolder.getExceptionStack());
}
}
return localIp;
}
修改为:
public static String getLocalIp() {
if (localIp == null) {
try {
Properties props = new Properties();
String path = SystemService.class.getResource("/config/cbp.properties").getFile();
try {
path = java.net.URLDecoder.decode(path, "UTF-8");
} catch (Exception e) {
e.printStackTrace();
}
InputStream in = new BufferedInputStream(new FileInputStream(path));
props.load(in);
localIp = props.getProperty("local.ip");
} catch (Exception e) {
ExceptionHolder exceptionHolder = new ExceptionHolder(e);
logger.error(exceptionHolder.getExceptionStack());
}
}
return localIp;
}
- C:\Documents%20and%20Settings\Administrator..(系统找不到指定的路径。)
- 无法访问第二块硬盘系统分区中Documents and Settings下的Administrator文件夹的解决
- Android关于C:/Documents and Settings/Administrator/.android移动的问题
- 为何无法打开administrator目录?提示“无法访问c:/documents and settings/administrator,拒绝访问"解决办法
- 编译驱动时出现的错误Error translating C:\Documents and Settings\Administrator\桌面\PLX9054_DMA_LVDS\Driver\objfr
- 关于PANIC: Could not open: C:\Documents and Settings\Administrator\.android/avd/my_avd.
- android:PANIC: Could not open: C:\Documents and Settings\Administrator\.android/avd/
- 为用户的配置文件路径(原来在“Documents and Settings”文件夹的子目录)指定一个不同的文件夹
- 修改系统Documents and Settings目录的位置
- 转移 windows xp 的Documents and Settings系统文件夹
- 如何更改系统默认的Documents and Settings目录
- 用proguard进行反编译遇到的问题 Error: C:/Documents (系统找不到指定文件)
- 3/17/10 9:55:59 AM CST: [INFO] User settings file does not exist C:/Documents and Settings/Administrator/.m2/settings.xml
- PC安卓模拟器PANIC: Could not open:C:\Documents and Settings\Administrator\.android/avd/my_avd.ini解决方案
- PC安卓模拟器PANIC: Could not open:C:\Documents and Settings\Administrator\.android/avd/my_avd.ini解决方案
- PC安卓模拟器PANIC: Could not open:C:\Documents and Settings\Administrator\.android/avd/my_avd.ini解决方案
- PC安卓模拟器PANIC: Could not open:C:\Documents and Settings\Administrator\.android/avd/my_avd.ini解决方案 .
- PC安卓模拟器PANIC: Could not open:C:\Documents and Settings\Administrator\.android/avd/my_avd.ini解决方案
- 面试题18:顺时针打印矩阵
- MySQL数据导出导入的文章
- 7.21----html
- DBA日常工作职责
- in与exists的比较
- C:\Documents%20and%20Settings\Administrator..(系统找不到指定的路径。)
- HDU 2000 ASCII码排序
- 企业级定时任务调度框架Quartz中文文档chm
- Hibernate 学习之第一步
- 建立共享内存和操作共享内存几个函数的用法
- 在android平台下的手机软件界面设计
- 设计模式备忘录:设计原则
- OpenCV Haar分类器人脸检测部分代码注释
- 表单 验证码