Re: [sleuthkit-users] Java bindings: ClassNotFoundException TskDataException
Brought to you by:
carrier
From: <zah...@gm...> - 2015-09-03 12:20:04
|
Nevermind. I just forgot to adapt the Jar file's classpath. It works now. -----Ursprüngliche Nachricht----- Gesendet: Wednesday, 02 September 2015 um 11:32:01 Uhr Von: zah...@gm... An: sle...@li... Betreff: [sleuthkit-users] Java bindings: ClassNotFoundException TskDataException Hey everyone, I just started using Tsk. To get a feeling I wanted to try out the sample (Sample.java, see below). I build it with Ant (build.xl, see below). While the build itself is successful I can't get the program to run (java -jar Sample.jar). I am working on a Linux Machine, the JNI libs are in /usr/lib. The file Tsk_DataModel.jar I copied to projectdir/lib. This is the message I get: 'Exception in thread "main" java.lang.NoClassDefFoundError: org/sleuthkit/datamodel/TskDataException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2625) at java.lang.Class.getMethod0(Class.java:2866) at java.lang.Class.getMethod(Class.java:1676) at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486) Caused by: java.lang.ClassNotFoundException: org.sleuthkit.datamodel.TskDataException So could anyone help me on that? Thanks. |