Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLI] java.lang.ClassNotFoundException: org.asciidoctor.cli.AsciidoctorInvoker #831

Closed
anb0s opened this issue Jul 5, 2019 · 6 comments
Closed

Comments

@anb0s
Copy link

anb0s commented Jul 5, 2019

I'm new with asciidoctorj and want to use it as CLI tool with "java -jar asciidoc.jar". So it does not work. Also with the "org.asciidoctor.cli.AsciidoctorInvoker" it shows "java.lang.ClassNotFoundException: org.asciidoctor.cli.AsciidoctorInvoker".

@anb0s
Copy link
Author

anb0s commented Jul 5, 2019

Is there some info about how to use asciidocj CLI in ANT?

@robertpanzer
Copy link
Member

Is there some info about how to use asciidocj CLI in ANT?

There is https://github.com/asciidoctor/asciidoctor-ant, but I guess it is not aligned with asciidoctorj 2.x.x yet.
You will have the best experience with the asciidoctor maven plugin and the asciidoctor cradle plugin, but if you are forced to use ant, I can't tell right now if it works.

@mojavelinux
Copy link
Member

Yes, asciidoctor-ant is well maintained by @binout. It doesn't use the CLI, it's a regular Ant task. You're right, though, that it hasn't made the jump to AsciidoctorJ 2 yet. I'm sure he'd welcome assistance.

@anb0s
Copy link
Author

anb0s commented Jul 7, 2019

Thanks, we do not have Maven and no Gradle supported yet in company, only ANT (JVM) and Python.
So i'm using AsciidoctorJ 2.1.0 CLI from ANT now for testing.

I've created issue for this: asciidoctor/asciidoctor-ant#76

@binout
Copy link

binout commented Jul 8, 2019

Hi @anb0s
I missed the release train of asciidoctor 2.0 😅
I will try to catch up with him in the coming weeks 💪

@robertpanzer
Copy link
Member

The ticket can be closed from this repo as it's rather related to the asciidoctor-ant plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants