title: Having trouble starting Jenkins: "java.io.FileNotFoundException: /usr/share/java/jenkins/war/META-INF/MANIFEST.MF (No such file or directory)"
body: <p>I just downloaded the Jenkins WAR, version 1.651.1.  I’m trying to set it up on my Amazon Linux box.  I’m running Java 1.7.  I moved the WAR into its own directory, /usr/share/java/jenkins, and then set JENKINS_HOME to be that directory.  Then I ran the command listed here — <a href="https://wiki.jenkins-ci.org/display/JENKINS/Starting+and+Accessing+Jenkins" rel="noreferrer">https://wiki.jenkins-ci.org/display/JENKINS/Starting+and+Accessing+Jenkins</a> .  Looked so simple on the web site.  But wouldn’t you know it.  Got the below error</p>
  
  <pre><code>[davea@mydevbox ~]$ java -jar /usr/share/java/jenkins/jenkins.war 
  Running from: /usr/share/java/jenkins/jenkins.war
  webroot: EnvVars.masterEnvVars.get("JENKINS_HOME")
  Apr 19, 2016 9:29:34 PM winstone.Logger logInternal
  INFO: Beginning extraction from war file
  Apr 19, 2016 9:29:34 PM winstone.Logger logInternal
  INFO: Winstone shutdown successfully
  Apr 19, 2016 9:29:34 PM winstone.Logger logInternal
  SEVERE: Container startup failed
  java.io.FileNotFoundException: /usr/share/java/jenkins/war/META-INF/MANIFEST.MF (No such file or directory)
      at java.io.FileOutputStream.open(Native Method)
      at java.io.FileOutputStream.&lt;init&gt;(FileOutputStream.java:221)
      at java.io.FileOutputStream.&lt;init&gt;(FileOutputStream.java:171)
      at winstone.HostConfiguration.getWebRoot(HostConfiguration.java:280)
      at winstone.HostConfiguration.&lt;init&gt;(HostConfiguration.java:83)
      at winstone.HostGroup.initHost(HostGroup.java:66)
      at winstone.HostGroup.&lt;init&gt;(HostGroup.java:45)
      at winstone.Launcher.&lt;init&gt;(Launcher.java:145)
      at winstone.Launcher.main(Launcher.java:356)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at Main._main(Main.java:307)
      at Main.main(Main.java:98)
  </code></pre>
  
  <p>What else do I need to do to get Jenkins started?</p>
  
  <p><b>Edit:</b> Output in response to the suggestion given ...</p>
  
  <pre><code>[davea@mydevbox ~]$ sudo useradd jenkins
  [davea@mydevbox ~]$ sudo chown -R jenkins:jenkins /usr/share/java/jenkins/jenkins.war 
  [davea@mydevbox ~]$ 
  [davea@mydevbox ~]$ sudo su - jenkins
  [jenkins@mydevbox ~]$ java -jar /usr/share/java/jenkins/jenkins.war
  Running from: /usr/share/java/jenkins/jenkins.war
  webroot: EnvVars.masterEnvVars.get("JENKINS_HOME")
  Apr 21, 2016 4:46:08 PM winstone.Logger logInternal
  INFO: Beginning extraction from war file
  Apr 21, 2016 4:46:08 PM winstone.Logger logInternal
  INFO: Winstone shutdown successfully
  Apr 21, 2016 4:46:08 PM winstone.Logger logInternal
  SEVERE: Container startup failed
  java.io.FileNotFoundException: /usr/java/jboss/standalone/deployments/jenkins.war/war/META-INF/MANIFEST.MF (No such file or directory)
      at java.io.FileOutputStream.open(Native Method)
      at java.io.FileOutputStream.&lt;init&gt;(FileOutputStream.java:221)
      at java.io.FileOutputStream.&lt;init&gt;(FileOutputStream.java:171)
      at winstone.HostConfiguration.getWebRoot(HostConfiguration.java:280)
      at winstone.HostConfiguration.&lt;init&gt;(HostConfiguration.java:83)
      at winstone.HostGroup.initHost(HostGroup.java:66)
      at winstone.HostGroup.&lt;init&gt;(HostGroup.java:45)
      at winstone.Launcher.&lt;init&gt;(Launcher.java:145)
      at winstone.Launcher.main(Launcher.java:356)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at Main._main(Main.java:307)
      at Main.main(Main.java:98)
  </code></pre>