JUnit error: could not find or load the main class (RemoteTestRunner)

I downloaded Junit version 4.10 and loaded jar through the build path, but I seem to get this error message when running the Junit test in Eclipse:

Error: Could not find or load main class org.eclipse.jdt.internal.junit.runner.RemoteTestRunner

My Test class is as follows:

import org.junit.*;
import static org.junit.Assert.assertEquals;



public class InternetConnectTest {

@Test
public void testConnectMethod(){

    InternetConnect net = new InternetConnect("www.google.com");
    assertEquals("Result", "www.google.com", net.url);


}

}
+3
source share
4 answers

This is an Eclipse error message. Your installation seems to be damaged. Try using the new Eclipse installation.

+1
source

java-: "junit: 1.1". eclipse, ant, , JRE " JRE", , jre JRE. .

+1

, , eclipse .

+1

. Eclipse "-clean", .

: eclipse ? , ?

0

All Articles