java - Exception while creating PDF file from Asciidoctor -


i getting exception while creating pdf file ascii doc files using following libraries in spring boot application.

org.asciidoctor:asciidoctorj:1.6.0-alpha.3 org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.11 org.asciidoctor:asciidoctorj-epub3:1.5.0-alpha.6 

i found similar issues reported earlier tried setting class loader no success.

the exception shown

org.jruby.exceptions.raiseexception: (loaderror) no such file load -- asciidoctor         @ org.jruby.rubykernel.require(org/jruby/rubykernel.java:944) ~[jruby-core-9.1.2.0.jar!/:?]         @ ruby.require(uri:classloader:/meta-inf/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55) ~[?:?]         @ ruby.<top>(<script>:9) ~[?:?] 

my code looks this. path directory ascii doc stored.

final asciidoctor asciidoctor = create(); asciidoctor.renderdirectory(new asciidocdirectorywalker(path), options().backend("pdf").get()); asciidoctor.shutdown(); 

i have got solution spring boot team. please refer spring boot github issue more details


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -