Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7656145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T12:41:37+00:00 2026-05-31T12:41:37+00:00

i need help to install Junit in my computer, so I can create unit

  • 0

i need help to install Junit in my computer, so I can create unit tests to run in JMeter.
The problem is that when I try to test if the JUnit installation is correct, it gives the following message:
“Error: Could not find or load main class org.junit.runner.JUnitCore”
Here are the configurations of the variables:
Environment variables

JAVA_HOME = C:\Program Files\Java\jdk1.7.0_03
JUNIT_HOME = C:\junit
in Path = %JAVA_HOME%\bin;%JUNIT_HOME%\junit-4.10.jar

Tests in cmd:

C:\Users\luis.ribeiro>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.7.0_03

C:\Users\luis.ribeiro>echo %JUNIT_HOME%
C:\junit

C:\Users\luis.ribeiro>java -version
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b05)
Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)

C:\Users\luis.ribeiro>java org.junit.runner.JUnitCore org.junit.tests.AllTests
Error: Could not find or load main class org.junit.runner.JUnitCore

Could someone help me with this problem please.
I will be very thank full,

With the best regards,
Luis

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T12:41:38+00:00Added an answer on May 31, 2026 at 12:41 pm

    You need to add junit to the CLASSPATH, not the PATH.

    Example from the FAQ:

    set CLASSPATH=%JUNIT_HOME%\junit.jar;c:\myproject\classes;c:\myproject\lib\something.jar
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need your help. I'm trying to install php_apc.dll into my php directory. So
need help to create regular expression matching string www.*.abc.*/somestring Here * is wild card
I need help on regex or preg_match because I am not that experienced yet
I need help finishing this statement. It is frustrating that two of the PHP
I need help: My profile expired and I can't renew it - don't know
I need to make a web app that I would be able to install
Need some help with this error. Fresh wordpress 2.9 install... Fatal error: Cannot instantiate
I need help with this issue. I'm trying to install php in my netbeans
I need to install mysql-python under python2.6. mysql-python package needs python2.6-devel package that depends
Either through bootstrapper or command line install, I need to be able to create

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.