JUnit on os x, CLASSPATH incorrect?
- From: Angry Moth Town <bigdave.smith@xxxxxxxxx>
- Date: Sun, 30 Mar 2008 18:33:45 -0700 (PDT)
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.
.
- Follow-Ups:
- Re: JUnit on os x, CLASSPATH incorrect?
- From: Lionel van den Berg
- Re: JUnit on os x, CLASSPATH incorrect?
- Prev by Date: Re: Java Software Development
- Next by Date: Re: Byte to float conversion problem - PLEASE HELP
- Previous by thread: Java Software Development
- Next by thread: Re: JUnit on os x, CLASSPATH incorrect?
- Index(es):
Relevant Pages
|