Reputation: 11
"Unable to access jarfile jenkins.war" getting this error while run the cmd "java -jar jenkins.war" in OS- windows 7
How can I solve? i did installation as per what showed in youtube
Upvotes: 1
Views: 34864
Reputation: 1
first you must be in the directory where the jenkins file is located and write the code by running cmd in that directory.
Upvotes: 0
Reputation: 1
do not create a folder for jenkins.war file store it right inside downloads direction then go to your terminal go to downloads direction not to jenkins.war file direction then type java -jar jenkins.war it will work
Upvotes: 0
Reputation: 1070
I had the same issue. What worked for me was adding .jar to the file name, like
java -jar jenkins.war.jar
in case that you face an error that says, "Failed to listen on port 8080" There is an answer here that worked for me, by pasting the following on cmd,
java -jar jenkins.war.jar --ajp13Port=-1 --httpPort=9090
Upvotes: 0
Reputation: 31
Open Command Prompt as Administrator in Windows . Go to the directory where Jenkins is installed. and stop the Jenkins service first, using jenkins.exe stop
type the command to change the port using, java -jar jenkins.war
You will be able to access the .war file of Jenkins.
Upvotes: 0
Reputation: 1027
I also faced this issue after I updated the jenkins version.
The error message was found in <jenkins_dir>/jenkins.error.log
Resolved Step:
Ref: Cannot start Jenkins
Upvotes: 1
Reputation: 103
Command java -jar jenkins.war
in Win7
command line require administrator permission.
Right click on the cmd icon and choose the Run as administrator
option.
It worked for Windows 8 too.
Upvotes: 4
Reputation: 1324278
Make sure you are executing that command in the folder where jenkins.war
is actually installed.
Also check if the file is readable, and not preempted by another process (you can check that with Process Explorer)
Finally, double-check the size of jenkins.war, to see if the download was complete, and the file is not corrupted (incomplete or small size): see the list of jenkins.war released.
Upvotes: 0