Hello Robert,
trying to run LDCT on linux (details below), resulting error:
popi@debpopi:~/ldct$ java -jar LDCT.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:427)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.cli.ParseException
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:435)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 3 more
popi@debpopi:~/ldct$
I'm not skilled in Java, so, after search, I tried to:
1) install OpenJdk-14-JDK: same error.
2) define env variable CLASSPATH: same error.
CLASSPATH=/usr/share/java/commons-cli.jar
Computer status:
Linux Debian Bullseye, last kernel available, updated to today:
Linux debpopi 5.9.0-1-amd64 #1 SMP Debian 5.9.1-1 (2020-10-17) x86_64 GNU/Linux
OpenJDK-14-jre (and jdk for try), installed:
dpkg -l | grep openjdk
[...]
openjdk-14-jre:amd64 14.0.2+12-1.1 amd64 OpenJDK Java runtime, using Hotspot JITpopi@debpopi:~/ldct$ java -version
openjdk version "14.0.2" 2020-07-14
OpenJDK Runtime Environment (build 14.0.2+12-Debian-1.1)
OpenJDK 64-Bit Server VM (build 14.0.2+12-Debian-1.1, mixed mode, sharing)
I think is a simple installation/configuration issue, but, as I told, I am not skilled in Java and I not be able to proceed with any help.
Any suggestion/workaround?
Thanks in advance.
Paolo Faustini
Hi, Paolo. Sadly, my Linux box isn't currently set up so I can't easily investigate. I haven't messed with the code in some years now so I don't have any real insights. Since this problem hasn't been reported before, I think that you're probably right about it being a configuration issue but not sure what to suggest. I'm currently in the middle of another project so I cannot immediately research. Sorry to leave you hanging.
If you have the skills, you could, of course, load the source, compile, and run in a debugger. The CLI class is used only in the program initialization so it should be easy to trap.
If you manage to track the problem down, please share what you find.
I rebuilt the LDCT.jar file which should fix the problem. Please download the LDCT v0.9.3.zip file and give it a try. If you have further problems, please open a new ticket. Sorry for the inconvenience and thanks for using LDCT.