itext-rups.jar not working

Bug #802021 reported by nicolagiacobbe
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
libitext-java (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The program itext-rups.jar should show a GUI to examine a pdf.

Going to: /usr/share/java
And running: java -jar itext-rups.jar

Obtains:
Exception in thread "main" java.lang.NoClassDefFoundError: com/lowagie/text/DocumentException
        at com.lowagie.rups.Rups.startApplication(Unknown Source)
        at com.lowagie.rups.Rups.main(Unknown Source)
        ...

Seems something akin to a version crash (the class is found but cannot be used)

Downloading the latest version of both itext (5.1.1) and rups (1.0.0) and issuing the same command gets me to the GUI.

Sincerely

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libitext-java (Ubuntu):
status: New → Confirmed
Revision history for this message
Brad Witte (q-ubuntu) wrote :

I was able to get past the NoClassDefFoundError by creating a link with capitalization to match the manifest:

brad@oscar:~$ cd /usr/share/java
brad@oscar:/usr/share/java$ ln -s itext-2.1.7.jar iText-2.1.7.jar

Unfortunately, this results in no GUI being displayed. It simply hangs with no GUI and uses quite a bit of CPU. I am attaching my verbose output, including output after ctrl-c.

Any help getting this working is appreciated!

Brad

Revision history for this message
Graeme Andrews (graeme3317) wrote :

I had the same problem and fixed it by having dom4j-1.6.1.jar in the same directory:
$ls *.jar

dom4j-1.6.1.jar
itextpdf-5.4.0.jar
itext-rups-5.4.0.jar

and running it:
java -jar itext-rups-5.4.0.jar

$java -version
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) Server VM (build 23.7-b01, mixed mode)

Revision history for this message
Bjørn Rosell (tordenalf) wrote :

Same problem here. Installed libitext-rups-java through the Software Center, ran it as described in the first post.

Fixed it by
1) Downloading itext-rups-5.4.4.jar and putting it in /usr/share/java folder
2) Downloading the jars found here: http://sourceforge.net/projects/itext/files/iText/ - and putting them in /usr/share/java folder

Revision history for this message
Amedee Van Gasse (amedee) wrote :

Hi! I started working at iText as QA Engineer 2 months ago, and I'm an Ubuntu user since... well, take a look at my profile. :)

Is this still an issue?
The original report mentions com.lowagie.* class hierarchy, which is the old 2.x version. I'm not going to invest any time in that, but if anything can be done for the current 5.x version (with com.itextpdf.* class hierarchy): just ask.

Revision history for this message
Taras (tiras-dude) wrote :

Update for 20.04. The packages are horribly outdated and just wastes cpu without any results and should be removed or updated to the latest build.

If you want to use it. Get the latest files from https://github.com/itext/i7j-rups.
Install maven and build according to the provided instructions (readme).

Launch with [user@pc:~S java -jar /path_to_built_jar_file.jar]

Works just fine.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.