title: How can I get Hudson to be able to access JUnit?
body: <p>I've got Hudson running on TOMCAT, it can build my Netbeans project using the ant build.xml, but it won't run any of my unit tests because of what I assume is a problem with the classpath:</p>
  
  <pre><code>package org.junit does not exist
      [javac] import org.junit.After;
      [javac]                 ^
  </code></pre>
  
  <p>But I've got the junit-4.8.1.jar on the classpath in /etc/environment and I can successfuly run the junit tests from a console using</p>
  
  <pre><code>java org.junit.runner.JUnitCore org.junit.tests.AllTests
  </code></pre>
  
  <p>My <code>CLASSPATH</code> is set to <code>/home/bedwyr/junit4.8.1/junit-4.8.1.jar:.</code></p>
  
  <p>Am I going wrong somewhere or is there anything else I need to set?</p>
  
  <p>[edit]</p>
  
  <p>What I did was to export/include (using the ide) all libraries (including Junit) hudson then reads all it needs from the subversion repo.</p>
  
  <p>I then ran into an issue with exposing hudson to the internet, and pretty soon gave up on tomcat on ubuntu server (again, to do with the tomcat security manager) - glassfish is a lot smoother and that's where I am now - apache front end with ajp_proxy to hudson on glassfish.</p>