pdfsam fails launching (incompatible JRE?)

Bug #1859076 reported by Antoine Pitrou
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pdfsam (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

$ pdfsam
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/pdfsam/basic/App has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
 at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
 at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495)

$ echo $JAVA_HOME
/usr/lib/jvm/java-8-oracle

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: pdfsam 4.0.1-1~18.04
ProcVersionSignature: Ubuntu 4.15.0-74.84-generic 4.15.18
Uname: Linux 4.15.0-74-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu7.9
Architecture: amd64
CurrentDesktop: XFCE
Date: Thu Jan 9 21:48:40 2020
InstallationDate: Installed on 2013-04-12 (2463 days ago)
InstallationMedia: Xubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130409)
PackageArchitecture: all
SourcePackage: pdfsam
UpgradeStatus: Upgraded to bionic on 2018-08-17 (510 days ago)

Revision history for this message
Antoine Pitrou (pitrou) wrote :
Revision history for this message
Antoine Pitrou (pitrou) wrote :

This was solved by removing the stale Oracle Java 8 install. Sorry for the noise.

Changed in pdfsam (Ubuntu):
status: New → Invalid
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.