简体   繁体   中英

How to fix error “Failed to load Main-Class manifest from …”

I download crawler4j on [ https://code.google.com/p/crawler4j/downloads/detail?name=crawler4j-3.5.zip&can=2&q=] .

I saved in my desktop. After I run crawler4j-3.5.jar, a error is displayed: "Failed to load Main-Class manifest from ..." How can I fix it?

The jar file is not to be ran as provided, since it does not contain a main file (that's what the error says). You should either manually select the main class, or use the jar as a library in your classpath.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM