|
1.下载URI乱码问题 解决:TOMCAT-SERVER.XML设置URIEconding = "utf-8" 2.怎样打开1433端口? 打开网络连接属性--高级--设置--例外--添加端口(输入端口号) 3.局域网如何远程查看IP的MAC地址? 用nbtstat -a 计算机名或计算机的IP
常识: 一、eclipse IDE工具 1.clear 项目是清除本地class 2.Tomcat 重新部署服务器
1.java.io.FileNotFoundException: D:\tomcat-5.0.12\webapps\nc\WebRoot\WEB-INF\regex.cfg (系统找不到指定的路径。) 解:\nc\src\com\ncsoft\utils\CommonConst.java /** * 返回当前系统变量的函数 * 结果放在一个Properties里边,这里只针对win2k以上的,其它系统可以自己改进 * * @return * @throws Exception */ public Properties getEnv() throws Exception { Properties prop = new Properties(); String OS = System.getProperty("os.name").toLowerCase(); Process p = null; if (OS.indexOf("windows") > -1) { p = Runtime.getRuntime().exec("cmd /c set"); // 其它的操作系统可以自行处理, // 我这里是win2k } BufferedReader br = new BufferedReader(new InputStreamReader(p .getInputStream())); String line; while ((line = br.readLine()) != null) { int i = line.indexOf("="); if (i > -1) { String key = line.substring(0, i); String value = line.substring(i + 1); prop.setProperty(key, value); } } return prop; } /* * add by sjg 2007-08-16 * to getEnv for TOMCAT_HOME * */ public CommonConst() { try{ Properties p= this.getEnv(); String st=p.getProperty("TOMCAT_HOME"); HELP_FILE_PATH=st+"/webapps/nc/templates/ncsoft"; FILE_REGEX_PATH=st+"/webapps/nc/WEB-INF"; } catch(Exception e){ System.out.println("getEnv error :"+e.getMessage()); } }
描述: NC项目问题及解决方案
附件:
NC项目问题及解决方案.txt (2 K)
|
一共有 1 条评论