×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

JUnit8.3.1 Install test fails??!!

JUnit8.3.1 Install test fails??!!

JUnit8.3.1 Install test fails??!!

(OP)
The installation test failes with the following:

CODE

D:\Program Files>java junit.textui.TestRunner junit.samples.AllTests
Class not found "junit.samples.AllTests"

This class currently is located at

CODE

D:\Program Files\junit3.8.1\junit\samples

I down loaded the current version JUnit3.8.1 zip file and extracted it to D:\Program Files using folder names. This created a subdirectory \junit3.8.1

I created a system variable JUNIT_HOME and set it to

CODE

D:\Program Files\junit3.8.1

I then set classpath to:

CODE

C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\Msbase.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\Msutil.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\Mssqlserver.jar;%JUNIT_HOME%\JUNIT.JAR

These are the instructions in the FAQ on the SourceForge site.

Everything looks good to me.  What do I need to do to fix this?

Thanks for your help
Jim

RE: JUnit8.3.1 Install test fails??!!

Is it correct that you've got a D:\Program Files and a C:\Program Files?

Also, how are you setting the classpath? Since there are spaces in the path, you'll need to put it all in quotes for it to work.

Tim
---------------------------
"Your morbid fear of losing,
destroys the lives you're using." - Ozzy

RE: JUnit8.3.1 Install test fails??!!

(OP)
Yes, I have both a C:\Program Files and a D:\Program Files.
The C drive is used only for Windows 2003 and MS Office 2003.  All other programs (java, junit, eclipse, etc.) are on the D: drive to keep them out of the way of Windows recovery/upgrade activities.

I set the environment variables in:
  Control panel>System>Advanced>Envirnment>system variables
Usually don't need quotes there...the SQL/2000 stuff works ok.

Thanks
Jim


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close