title: Newrelic startup exception
body: <p>We are getting the following error in catalina.out file when we restart our application with newrelic java agent configured.</p>
  
  <p>We have followed the steps specified in newrelic installation guide and following is the entry created in catalina.sh by newrelic installer:</p>
  
  <pre><code># ---- New Relic switch automatically added to start command on 2013 Dec 09, 20:24:35
  NR_JAR=/usr/share/fk-ops-tomcat6-base/newrelic/newrelic.jar; export NR_JAR
  JAVA_OPTS="$JAVA_OPTS -javaagent:$NR_JAR"; export JAVA_OPTS
  </code></pre>
  
  <p>Exception on app restart in catalina.out:</p>
  
  <pre><code>Error bootstrapping New Relic agent: java.lang.RuntimeException: java.io.IOException: No such file or directory
  java.lang.RuntimeException: java.io.IOException: No such file or directory
          at com.newrelic.bootstrap.BootstrapLoader.load(BootstrapLoader.java:95)
          at com.newrelic.bootstrap.BootstrapAgent.premain(BootstrapAgent.java:93)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:323)
          at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:338)
  Caused by: java.io.IOException: No such file or directory
          at java.io.UnixFileSystem.createFileExclusively(Native Method)
          at java.io.File.checkAndCreate(File.java:1704)
          at java.io.File.createTempFile(File.java:1792)
          at java.io.File.createTempFile(File.java:1828)
          at com.newrelic.bootstrap.BootstrapLoader.getJarFileInAgent(BootstrapLoader.java:81)
          at com.newrelic.bootstrap.BootstrapLoader.addBridgeJarToClassPath(BootstrapLoader.java:47)
          at com.newrelic.bootstrap.BootstrapLoader.load(BootstrapLoader.java:92)
          ... 7 more
  </code></pre>