Author | Message |
---|---|
margent
Posts: 4
|
Posted 21:57 Feb 15, 2017 |
Thrown when an application tries to load in a class through its string name using:
but no definition for the class with the specified name could be found. This is the oracle documentation for why ClassNotFoundException is thrown. I have tried to fix my class paths but nothing has worked so far. This is the only thing I need to fix before I can turn in my program. Does anybody have a solution? NOTE: I have already tried putting all of my classes into the (Default Package). |
aaleman11
Posts: 42
|
Posted 22:06 Feb 15, 2017 |
Your class path might be broken. Look up how to fix a broken class path in Java or your IDE (Eclipse, IntelliJ) |
skapoor4
Posts: 2
|
Posted 10:58 Sep 01, 2017 |
The class you are trying to access with Class.forname("") is not present in your project. Like example, if you're trying load oracle jdbc driver you must be writing like Class.forname("Oracle.jdbc.driver.oracledriver"). To access oracle jdbc driver you must import ojdbc.jar in your project. Then this error will be resolved. |