为什么我收到此错误java.lang.ClassNotFoundException:org.apache.derby.jdbc.EmbeddedDriver而我正在给类路径?

时间:2015-09-08 12:37:24

标签: java jdbc terminal runtime-error

首先,我是java新手。我知道有很多相同的问题,但它们都与IDE有关,我正在编译并直接在终端上运行,它正在编译完美,但抛出类未找到错误和sql错误。我正在用这样的cp编译

javac -cp /Users/Schmidthakid/Documents/UOW/Java/Assignments/Assignment2/Assignment2Files/derby.jar:/Users/Schmidthakid/Documents/UOW/Java/Assignments/Assignment2/Assignment2Files/au/edu/uow/QuestionDB/*:/Users/Schmidthakid/Documents/UOW/Java/Assignments/Assignment2/Assignment2Files/au/edu/uow/QuestionLibrary/*:/Users/Schmidthakid/Documents/UOW/Java/Assignments/Assignment2/Assignment2Files/au/edu/uow/UserInterface/*: JavaQuizDB.java

错误:

These are the errors

QuestionDB,QuestionLibrary和Userinterface实际上是包,所以我必须提供它们的路径,否则它不会加载它们中的任何一个。如果有人有这方面的知识,请分享&引导我。我要非常感谢你。

0 个答案:

没有答案