Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: How do I add Junit package

  1. #1
    Member
    Join Date
    May 2011
    Posts
    61
    My Mood
    Busy
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation How do I add Junit package

    Hi, I am using notepad++ b/c faster than using eclipse IDE, so how do I have to add junit to path variables. I'm using Windows 7 64 bit.

    Here is error when I try to run my school assignment that uses Junit in Windows command prompt

    error: package org.junit does not exist

    Here is the import statements I am using:
    import static org.junit.Assert.*;

    import org.junit.Before;
    import org.junit.Test;


    Any help appreciated, my assignemnt is due tommorrow at noon!

    In the mean time I am going to download Eclipse and try that, but I'd still like to figure out how to get it to work just using NotePad++.


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,331
    Thanks
    181
    Thanked 829 Times in 772 Posts
    Blog Entries
    5

    Default Re: How do I add Junit package

    so how do I have to add junit to path variables.
    Add the library to the classpath. Do an internet search with the keywords java and classpath and you will find a load of resources for how to do this command line.

Similar Threads

  1. Junit for DAO class
    By tcstcs in forum Java Theory & Questions
    Replies: 4
    Last Post: January 11th, 2012, 01:21 AM
  2. JUnit problems
    By degude in forum Java SE APIs
    Replies: 8
    Last Post: September 19th, 2011, 05:54 AM
  3. Simple package problem, package does not exist error
    By Farmer in forum Object Oriented Programming
    Replies: 3
    Last Post: August 23rd, 2011, 11:18 AM
  4. Junit with input as xml
    By frendmansi in forum Java Theory & Questions
    Replies: 4
    Last Post: April 15th, 2011, 04:47 AM
  5. JUnit test for ER
    By raphytaffy in forum What's Wrong With My Code?
    Replies: 3
    Last Post: September 20th, 2010, 09:26 PM