java.lang.runtimeexception:java.lang.classnotfoundexception:com.coremedia.iso.box.mdat.mediadatabox

f0brbegy  于 2021-07-09  发布在  Java
关注(0)|答案(2)|浏览(416)

有人能帮忙解决标题例外吗(win7的cmd运行,javajre7)一些详细的异常示例

Exception in thread "main" java.lang.RuntimeException: java.lang.ClassNotFoundException: com.coremedia.iso.boxes.mdat.MediaDataBox
        at com.coremedia.iso.PropertyBoxParserImpl.createBox(PropertyBoxParserImpl.java:112)
        at com.coremedia.iso.AbstractBoxParser.parseBox(AbstractBoxParser.java:102)
        at com.googlecode.mp4parser.BasicContainer.next(BasicContainer.java:155)
.....
Caused by: java.lang.ClassNotFoundException: com.coremedia.iso.boxes.mdat.MediaDataBox
        at java.net.URLClassLoader$1.run(Unknown Source)
cygmwpex

cygmwpex1#

根据文档,classnotfoundexception在以下情况下抛出:

Thrown when an application tries to load in a class through its string name using:

    * The forName method in class Class.
    * The findSystemClass method in class ClassLoader.
    * The loadClass method in class ClassLoader.

but no definition for the class with the specified name could be found.
db2dz4w8

db2dz4w82#

最后一行显示了一个类加载器(urlclassloader),它试图加载一个不可访问的类“com.coremedia.iso.boxes.mdat.mediadabox”。
我猜有一个依赖缺失;检查项目设置。
根据google的说法,试图加载的类属于mp4parser组件。检查这个和所有需要的依赖项是否在类路径上可用。

相关问题