Issue #21 resolved

Error: Could not find or load main class pdf2svg

Boris Kheyfets
created an issue

I succeded in building the jar, but can't run it. I have

  • pdf2svg-0.1-SNAPSHOT-jar-with-dependencies.jar
  • pdf2svg-0.1-SNAPSHOT.jar which I renamed to
  • pdf2svg.jar

however, when I run

$ java pdf2svg ieee-crop.pdf 
Error: Could not find or load main class pdf2svg.jar
$ java  -cp . pdf2svg ieee-crop.pdf
Error: Could not find or load main class pdf2svg

I have no experience of java.

What do I wrong?

Comments (4)

  1. petermr repo owner

    You have to run the jar - no need to rename it, though it saves typing - classpaths should be automatically calculated

    java -jar pdf2svg-0.1-SNAPSHOT-jar-with-dependencies.jar mydir/myfile.pdf

    The PDF filename should be relative to the jar file location OR an absolute filename.

  2. Log in to comment