启动报错找不到指定路径

展开阅读全文

jrebel 启动报错-找不到指定的文件

12-25

这个错误我一直没有头绪,不知道怎么解决;rnrn我的开发环境是 win7 +eclipsern多module的spring mvc 框架的maven项目rnrn开启jrebel后,启动就报错rnrnJRebel-JVMTI [DEBUG] Initializing agent... 1.0.31-2017-11-07T15:05:47ZrnJRebel-JVMTI [DEBUG] Java 9+ detected: falsernJRebel-JVMTI [INFO] VM vendor: Oracle CorporationrnJRebel-JVMTI [DEBUG] Agent loaded from D:\WORK\soft\eclipse\plugins\org.zeroturnaround.eclipse.embedder_7.1.4.RELEASE\jrebel\lib\jrebel64.dllrnJRebel-JVMTI [DEBUG] Searching for jrebel.jar in D:\WORK\soft\eclipse\plugins\org.zeroturnaround.eclipse.embedder_7.1.4.RELEASE\jrebel\jrebel.jarrnJRebel-JVMTI [DEBUG] Found jrebel.jar in D:\WORK\soft\eclipse\plugins\org.zeroturnaround.eclipse.embedder_7.1.4.RELEASE\jrebel\jrebel.jarrnJRebel-JVMTI [DEBUG] Checking bootcache for 78e81f594712148b85673e3b9dc30922rnJRebel-JVMTI [DEBUG] No cached bootstrap jar, generating new one...rnJRebel-JVMTI [DEBUG] java.home is C:\Program Files\Java\jdk1.8.0_92\jrernJRebel-JVMTI [INFO] exec command string length 2559rnJRebel-JVMTI [DEBUG] Executing command: "C:\Program Files\Java\jdk1.8.0_92\jre/bin/java" "-Djava.ext.dirs=C:\Program Files\Java\jdk1.8.0_92\jre\lib\ext;C:\windows\Sun\Java\lib\ext" "-Djava.endorsed.dirs=D:\WORK\soft\apache-tomcat-8.5.11\endorsed" "-Djava.library.path=C:\Program Files\Java\jdk1.8.0_92\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:/Program Files/Java/jdk1.8.0_92/bin/../jre/bin/server;C:/Program Files/Java/jdk1.8.0_92/bin/../jre/bin;C:/Program Files/Java/jdk1.8.0_92/bin/../jre/lib/amd64;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.8.0_92\bin;\;D:\WORK\soft\apache-maven-3.3.9\bin;C:\mysql\mysql-5.7.13-winx64\bin;D:\WORK\soft\NodeJs\;C:\Program Files\MacType;C:\Program Files\TortoiseSVN\bin;C:\Program Files\VisualSVN Server\bin;C:\Program Files\Java\jdk1.8.0_92\bin;C:\Program Files\Java\jdk1.8.0_92\jre\bin;C:\Users\Administrator\AppData\Roaming\npm;D:\WORK\soft\eclipse;;." "-Drebel.base=C:\Users\Administrator\.jrebel" "-Drebel.env.ide.plugin.version=7.1.4" "-Drebel.env.ide.version=4.6.2" "-Drebel.env.ide.product=Eclipse" "-Drebel.env.ide=eclipse" "-Drebel.workspace.path=D:\WORK\order-workspace" "-Drebel.properties=C:\Users\Administrator\.jrebel\jrebel.properties" "-Dcatalina.base=D:\WORK\soft\apache-tomcat-8.5.11" "-Dcatalina.home=D:\WORK\soft\apache-tomcat-8.5.11" "-Dwtp.deploy=D:\WORK\soft\apache-tomcat-8.5.11\wtpwebapps" "-Dfile.encoding=UTF-8" "-Drebel.griffin.bootstrap_run=true" "-Drebel.griffin.bootstrap_single_jar=true" "-Drebel.griffin.bootstrap_path=C:\Users\Administrator\.jrebel\bootcache\jrebel-bootstrap-78e81f594712148b85673e3b9dc30922.jar" "-cp" "D:\WORK\soft\apache-tomcat-8.5.11\bin\bootstrap.jar;D:\WORK\soft\apache-tomcat-8.5.11\bin\tomcat-juli.jar;C:\Program Files\Java\jdk1.8.0_92\lib\tools.jar" "-javaagent:D:\WORK\soft\eclipse\plugins\org.zeroturnaround.eclipse.embedder_7.1.4.RELEASE\jrebel\jrebel.jar" "-Xbootclasspath:C:\Program Files\Java\jdk1.8.0_92\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_92\jre\lib\rt.jar;C:\Program Files\Java\jdk1.8.0_92\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.8.0_92\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_92\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_92\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_92\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_92\jre\classes" "-Drebel.log.file=C:\Users\Administrator\.jrebel\bootcache\jrebel-bootstrap-78e81f594712148b85673e3b9dc30922.jar.log" "-Drebel.log=trace" "-Drebel.no.native.mess=true" "com.zeroturnaround.javarebel.Install" rnJRebel-JVMTI [ERROR] An error occurred while trying to spawn child process!rnJRebel-JVMTI [FATAL] Error code 0x00000002, 系统找不到指定的文件。rn 论坛

系统找不到指定路径

08-27

/**rn * 创建DAO缓冲池,保存DAO对象rn * @author rn *rn */rnpublic class DAOFactory rn rn private Map daoMap = new HashMap();rnrn private static DAOFactory df;rn /**rn * 私有构造rn * @param pathrn */rn private DAOFactory(String path) rn rn try rn SAXReader saxr = new SAXReader();rnrn Document doc = saxr.read(new File(path + "/daoContext.xml"));rnrn catch (Exception e) rn System.out.println("DAOFACTIRY创建出错!!!");rn e.printStackTrace();rn rnrn rn /**rn * 获取WEB-INF目录下‘daoContext.xml’文件的路径rn * @return 路径rn */rn public static String myPath()rn URL u = DAOFactory.class.getClassLoader().getResource(".");rn String path= new File( u.getFile()).getParent()+"/webapps/BTrankLine/WEB-INF";rn return path;rn rnrn[color=red]rn--------------下面是报的错误[/color]rn===path:C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%206.0/webapps/BTrankLine/WEB-INFrnDAOFACTIRY创建出错!!!rnorg.dom4j.DocumentException: C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%206.0\webapps\BTrankLine\WEB-INF\daoContext.xml (系统找不到指定的路径。) Nested exception: C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%206.0\webapps\BTrankLine\WEB-INF\daoContext.xml (系统找不到指定的路径。)rn at org.dom4j.io.SAXReader.read(SAXReader.java:266)rn at com.lansone.btrankline.dao.DAOFactory.(DAOFactory.java:33)rn at com.lansone.btrankline.dao.DAOFactory.instance(DAOFactory.java:59)rnrn说来也怪,以前都是可以的,最近重装系统后,tomcat6.0 ,myEclipse6.0 等都重装后,就报这个错误了n[b]问题补充:[/b]n现在是在windows上面,以后还要部署到linux上的,把路径写死的,不大好啊 问答

qmake 系统找不到指定路径

06-27

rn[color=#339966][b]开发环境:Windows7 + Qt 5.7[/b][/color]rnrn[b]编译时出现异常提示(红色部分),最终编译是通过的:[/b][i][/i]rnrn11:05:47: 为项目Empty执行步骤 ...rn11:05:47: 正在启动 "D:\Qt\Qt5.7.0\5.7\mingw53_32\bin\qmake.exe" D:\Qt\test\5xx\Empty\Empty.pro -r -spec win32-g++ "CONFIG+=debug"rnrn[color=#FF0000]系统找不到指定的路径。rn系统找不到指定的路径。rn系统找不到指定的路径。[/color]rn11:05:48: 进程"D:\Qt\Qt5.7.0\5.7\mingw53_32\bin\qmake.exe"正常退出。rn11:05:48: 正在启动 "D:\Qt\Qt5.7.0\Tools\mingw530_32\bin\mingw32-make.exe" rnrnD:/Qt/Qt5.7.0/Tools/mingw530_32/bin/mingw32-make -f Makefile.Debugrn。。。rn11:05:56: 进程"D:\Qt\Qt5.7.0\Tools\mingw530_32\bin\mingw32-make.exe"正常退出。rn11:05:56: Elapsed time: 00:09.rnrnrn[b]但是点击“清理项目”时,出现清除不了的情况,提示如下:[/b]rnrn11:10:06: 为项目Empty执行步骤 ...rn11:10:07: 正在启动 "D:\Qt\Qt5.7.0\Tools\mingw530_32\bin\mingw32-make.exe" cleanrnrnD:/Qt/Qt5.7.0/Tools/mingw530_32/bin/mingw32-make -f Makefile.Debug cleanrnmingw32-make[1]: Entering directory 'D:/Qt/test/5xx/build-Empty-Desktop_Qt_5_7_0_MinGW_32bit-Debug'rnrm -f debug/moc_mainwindow.cpprnMakefile.Debug:96: recipe for target 'compiler_moc_header_clean' failedrn[color=#FF0000]mingw32-make[1]: [compiler_moc_header_clean] Error -1073741515 (ignored)[/color]rnrm -f ui_mainwindow.hrn。。。rn[color=#FF0000]mingw32-make[1]: [clean] Error -1073741515 (ignored)[/color]rnmingw32-make[1]: Leaving directory 'D:/Qt/test/5xx/build-Empty-Desktop_Qt_5_7_0_MinGW_32bit-Debug'rn11:10:08: 进程"D:\Qt\Qt5.7.0\Tools\mingw530_32\bin\mingw32-make.exe"正常退出。rn11:10:08: Elapsed time: 00:02.rnrnrn[b]另外发现生成的Makefile有问题:[/b]rnMAKEFILE = Makefilernrnfirst: debugrninstall: debug-installrnuninstall: debug-uninstallrnQMAKE = D:/Qt/Qt5.7.0/5.7/mingw53_32/bin/qmake.exernDEL_FILE = rm -frnCHK_DIR_EXISTS= test -drnMKDIR = mkdir -prnCOPY = cp -frnCOPY_FILE = cp -frn。。。rn[b]如上“ DEL_FILE = rm -f ”,而我的另一台笔记本上的是“ DEL_FILE = del ”[/b]rnrn[b]请高手们支支招,多谢了![/b] 论坛

没有更多推荐了,返回首页