classnotfoundexception error

Asked

Viewed 3,314 times

1

Good afternoon, which means the mistake to follow?

Class not found stancedriver.StanceDriver
java.lang.ClassNotFoundException: stancedriver.StanceDriver
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClass(RemoteTestRunner.java:688)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClasses(RemoteTestRunner.java:421)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:444)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

I’m not trying to do it remotely and the error persists

  • 1

    It means your code needed to instantiate a Stancedriver-class object but couldn’t find an import for it.

  • Well it would be good if you put your code here so you could check for errors, so it gets kind of complicated to give an accurate answer but it seems in the log is giving error in creating the driver object you use to crash the browser tries to debug by putting sysout in the code to see where it is going if you can not put your Code here that you help .

1 answer

-3

Good afternoon Amigo,

In this post I explain what it means is Exception and also the difference between Noclassdeffounderror and Classnotfoundexception. Access there: https://edermfl.wordpress.com/2017/01/12/diferenca-entre-noclassdeffounderror-e-classnotfoundexception/ []'s


According to Gabriel’s guidance, the following explanation:

Classnotfoundexception, usually happens when using reflection. If there is a code that loads a class using Class.forName() or Class.class.getClassLoader(). loadClass() and the class does not exist in classpath, the error is thrown. In this case, the class sought, does not must necessarily have been compiled together with the class that reference.

More detail see: https://edermfl.wordpress.com/2017/01/12/diferenca-entre-noclassdeffounderror-e-classnotfoundexception/

  • Eder, I recommend putting these answers here, because the links may stay invalid over time.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.