FitNesse throws FileNotFoundException

时光怂恿深爱的人放手 提交于 2020-01-06 13:11:55

问题


I have downloaded fitnesse-standalone.jar, and tried to run using below command

java -jar fitnesse-standalone.jar

Unfortunately I am getting below exception,

C:\Program Files (x86)\Java\jdk1.6.0_14\bin>java -jar fitnesse-standalone.jar
Mar 18, 2014 4:16:54 PM fitnesse.ConfigurationParameter loadProperties
INFO: No configuration file found (C:\Program Files (x86)\Java\jdk1.6.0_14\bin\p
lugins.properties)
root page: fitnesse.wiki.fs.FileSystemPage at ./FitNesseRoot
logger: none
authenticator: fitnesse.authentication.PromiscuousAuthenticator
page factory: fitnesse.html.template.PageFactory
page theme: fitnesse_straight
Starting FitNesse on port: 80
Exception in thread "main" java.io.FileNotFoundException: .\FitNesseRoot\updateL
ist (The system cannot find the path specified)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
        at fitnesse.updates.FileUpdate.copyResource(FileUpdate.java:45)
        at fitnesse.updates.FileUpdate.doUpdate(FileUpdate.java:31)
        at fitnesse.updates.UpdaterImplementation.getUpdateFilesFromJarFile(Upda
terImplementation.java:71)
        at fitnesse.updates.UpdaterImplementation.createUpdateAndDoNotCopyOverLi
sts(UpdaterImplementation.java:62)
        at fitnesse.updates.UpdaterImplementation.<init>(UpdaterImplementation.j
ava:21)
        at fitnesseMain.FitNesseMain.update(FitNesseMain.java:66)
        at fitnesseMain.FitNesseMain.launchFitNesse(FitNesseMain.java:59)
        at fitnesseMain.FitNesseMain.launchFitNesse(FitNesseMain.java:48)
        at fitnesseMain.FitNesseMain.main(FitNesseMain.java:32)

Please help!

Regards Rajib


回答1:


You need to point to the directory where the fitnesse-standalone jar is located in. Also, there's is a good chance that port 80 is already being used. Therefore, try using a different port using the -p option in that case.

Example: -jar C:/fitnesse-standalone.jar -p 8081



来源:https://stackoverflow.com/questions/22477057/fitnesse-throws-filenotfoundexception

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!