Login  Register

Re: Exception in AsciiDoctorJ with pdf

Posted by Conrad on Jan 21, 2020; 8:09am
URL: https://discuss.asciidoctor.org/Exception-in-AsciiDoctorJ-with-pdf-tp7498p7516.html

Many thanks, @abelsromero.

I put asciidoctorj-pdf-1.5.0-alpha.6.jar into lib and changed the classpath in the bat-file.

That does not work:

Exception in thread "main" org.jruby.exceptions.LoadError: (ConflictError) Unable to activate asciidoctor-pdf-1.5.0.alpha.6, because asciidoctor-2.0.10 conflicts with asciidoctor (~> 1.5.0)
        at RUBY.raise_if_conflicts(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/specification.rb:2332)
        at RUBY.activate(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/specification.rb:1441)
        at RUBY.try_activate(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems.rb:224)
        at RUBY.require(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:123)
        at RUBY.<main>(<script>:1)

That would not happen by using a build-tool? Using a build-tool is difficult for me due to firewalls and proxies. That's why I avoid that as long as possible.

Conrad