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

Sbt cannot build #54

Open leiwu0227 opened 1 year ago

leiwu0227 commented 1 year ago

Getting this error when trying to run the command line, if you can help. Running on windows.

sbt "runMain org.allenai.pdffigures2.FigureExtractorVisualizationCli /pdf/path"


java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release at java.base/java.lang.System.setSecurityManager(System.java:416) at sbt.TrapExit$.installManager(TrapExit.scala:53) at sbt.StandardMain$.runManaged(Main.scala:127) at sbt.xMain$.run(Main.scala:67) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:577) at sbt.internal.XMainConfiguration.run(XMainConfiguration.scala:45) at sbt.xMain.run(Main.scala:39) at xsbt.boot.Launch$.$anonfun$run$1(Launch.scala:149) at xsbt.boot.Launch$.withContextLoader(Launch.scala:176) at xsbt.boot.Launch$.run(Launch.scala:149) at xsbt.boot.Launch$.$anonfun$apply$1(Launch.scala:44) at xsbt.boot.Launch$.launch(Launch.scala:159) at xsbt.boot.Launch$.apply(Launch.scala:44) at xsbt.boot.Launch$.apply(Launch.scala:21) at xsbt.boot.Boot$.runImpl(Boot.scala:78) at xsbt.boot.Boot$.run(Boot.scala:73) at xsbt.boot.Boot$.main(Boot.scala:21) at xsbt.boot.Boot.main(Boot.scala) [error] [launcher] error during sbt launcher: java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release

leiwu0227 commented 1 year ago

fixed by following this link:

https://stackoverflow.com/questions/71832118/sbt-assembly-cannot-create-jar-getting-java-lang-unsupportedoperationexception