JUnit on os x, CLASSPATH incorrect?



Hey everyone,

Following instructions I found online, I have downloaded
junit-4.4.jar, and placed it in ~/Library/Java/ on my system running
OS X Leopard.

I created and edited my ~/.profile to read:

export CLASSPATH="~/Library/Java/junit-4.4.jar"

and now I can 'echo $CLASSPATH' and get:
~/Library/Java/junit-4.4.jar

As a test to see if everything is setup correctly, the reference I was
using suggested I run:
java org.junit.runner.JUnitCore org.junit.tests.AllTests

but I receive the error:Exception in thread "main"
java.lang.NoClassDefFoundError: /Users/mothtown/Library/Java/org/junit/
runner/JUnitCore

Any tips on what I'm doing wrong? My source online could be
completely off, but I'm not sure what else to do. Thanks in advance
for any guidance.
.



Relevant Pages

  • Re: Unable to connect to Office 2007 Online Templates
    ... Then click the icon that looks like a copy icon ... Echo http://www.echosvoice.com ... Office Help is working online without any issues, ... I switched off Norton Firewall, ...
    (microsoft.public.office.misc)
  • Re: Scripting the use of Diskpart?
    ... That command would and does bring an offline dynamic disk back online. ... diskpart via a script file: ... echo> c:\script.scr select disk X ...
    (microsoft.public.windows.server.general)
  • Simple BASH script question
    ... The below script is meant to check the other machines on my ... LAN to see if they are online. ... echo $i is offline ...
    (comp.unix.shell)
  • cpufreq not working after putting core down and up
    ... Namely, after I put one core offline and then online, its cpufreq driver ... cache cpufreq crash_notes online topology ... # echo 0>> online ...
    (Linux-Kernel)
  • Re: Insert Media Clip option not available to select.
    ... the online help is always more up to date than the help that actually ... Echo ... >> Thanks for posting these instrux, Lfranker. ... I still have to edit the movie clips in movie maker. ...
    (microsoft.public.powerpoint)