allenai / pdffigures2

Given a scholarly PDF, extract figures, tables, captions, and section titles.
http://pdffigures2.allenai.org/
Apache License 2.0
615 stars 123 forks source link

Error in using SBT ASEMBLY COMMAND #57

Open hmhm1190 opened 1 year ago

hmhm1190 commented 1 year ago

I am trying to to generate binary file using SBT ASSEMBLY, but the generated jar file is corrupted. Upon checking, every other command is giving this error

$ sbt "runMain org.allenai.pdffigures2.FigureExtractorVisualizationCli /home/husainmalwat/src_pdf"

[info] Updated file /home/husainmalwat/nougat/nougat/project/build.properties: set sbt.version to 1.4.9 [info] welcome to sbt 1.4.9 (Red Hat, Inc. Java 1.8.0_382) [info] loading project definition from /home/husainmalwat/nougat/nougat/project [info] set current project to nougat (in build file:/home/husainmalwat/nougat/nougat/) [info] running org.allenai.pdffigures2.FigureExtractorVisualizationCli /home/husainmalwat/src_pdf [error] (run-main-0) java.lang.ClassNotFoundException: org.allenai.pdffigures2.FigureExtractorVisualizationCli [error] java.lang.ClassNotFoundException: org.allenai.pdffigures2.FigureExtractorVisualizationCli [error] at java.net.URLClassLoader.findClass(URLClassLoader.java:387) [error] stack trace is suppressed; run last Compile / bgRunMain for the full output [error] Nonzero exit code: 1 [error] (Compile / runMain) Nonzero exit code: 1 [error] Total time: 1 s, completed 11 Nov, 2023 1:04:59 AM