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.36k stars 591 forks source link

error: package com.sun.javafx does not exist #6884

Open Rayteur opened 3 years ago

Rayteur commented 3 years ago

Hi,

I can't build Autopsy because I don't have the package com.sun.javafx.

This is my version of java

openjdk version "1.8.0_282"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_282-b08)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.282-b08, mixed mode)

And this is the error i get after ran ant in my Autopsy's directory

-do-compile:
 [nb-javac] Compiling 3 source files to /home/yass/autopsy/CoreLibs/build/classes
 [nb-javac] /home/yass/autopsy/CoreLibs/src/org/sleuthkit/autopsy/corelibs/SigarLoader.java:21: error: package com.sun.javafx does not exist
 [nb-javac] import com.sun.javafx.PlatformUtil;
 [nb-javac]                      ^
 [nb-javac] 1 error

BUILD FAILED
/home/yass/autopsy/netbeans-plat/11.3/harness/suite.xml:163: The following error occurred while executing this line:
/home/yass/autopsy/netbeans-plat/11.3/harness/common.xml:204: Compile failed; see the compiler error output for details.

If someone can help me that would help a lot !

wainwrightmark commented 3 years ago

I had this exact problem. I solved it by reinstalling java from the .msi (there's a link to it in BUILDING.txt) and being sure to install the OpenJFX Runtime feature.

dmknght commented 2 years ago

I'm having this issue as well on Debian-based system. Neither openjfx nor libopenjfx-java could help fixing this issue