sleuthkit / autopsy

Autopsy® is a digital forensics platform and graphical interface to The Sleuth Kit® and other digital forensics tools. It can be used by law enforcement, military, and corporate examiners to investigate what happened on a computer. You can even use it to recover photos from your camera's memory card.
http://www.sleuthkit.org/autopsy/
2.41k stars 597 forks source link

autopsy 4.18 unsupported java version while building Debian package #6899

Closed dmknght closed 3 years ago

dmknght commented 3 years ago

I'm updating version of autopsy for Parrot OS, Debian testing based distro. The version on Debian is 2.xx so i think update to latest version is a good idea. However i'm having 2 problems:

  1. out dated URL caused socket error which was fixed by checking issue
  2. Unsupported java version which gave me error log
    
    BUILD FAILED
    /build/workdir/build.xml:28: Unsupported Java version: 11.              Make sure that the Java version is 1.8.0_66 or higher.

Total time: 2 minutes 54 seconds


The problem is similar this topic but i don't have neither vscode nor netbean to build object.
https://sleuthkit.discourse.group/t/running-autopsy-on-netbeans-not-working/494/6
Debian packaging for now basically runs `ant build` to get compiled files.
From the topic i commented above, i believe install java openjdk version 8 and build the project with it fix problem? I'm not java developer so i don't actually know how to fix the problem. If yes, i would like to know is there any bash command / variable i can use to set version of java rather than update-alternative.
Thanks in advance
dmknght commented 3 years ago

I fixed it by this compile rule :)

override_dh_auto_configure:
    update-java-alternatives -s java-1.8.0-openjdk-amd64