title: Exception while creating PDF file from Asciidoctor
body: <p>I am getting exception while creating pdf file from ascii doc files using the following libraries in Spring boot application.</p>
  
  <pre><code>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
  </code></pre>
  
  <p>I found similar issues reported earlier tried by setting class loader but no success.</p>
  
  <p>The exception shown is </p>
  
  <pre><code>org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- asciidoctor
          at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:944) ~[jruby-core-9.1.2.0.jar!/:?]
          at RUBY.require(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55) ~[?:?]
          at RUBY.&lt;top&gt;(&lt;script&gt;:9) ~[?:?]
  </code></pre>
  
  <p>My code looks like this. The path is the directory where ascii doc are stored. </p>
  
  <pre><code>final Asciidoctor asciidoctor = create();
  asciidoctor.renderDirectory(new AsciiDocDirectoryWalker(path), options().backend("pdf").get());
  asciidoctor.shutdown();
  </code></pre>