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

Warning when running autopsy (macOS) #5869

Closed Roxiun closed 4 years ago

Roxiun commented 4 years ago

General Info OS:MacOS Catalina

Guide Followed:https://slo-sleuth.github.io/tools/InstallingAutopsyOnMacOS.html

Info echo $JAVA_HOME returns:

/Library/Java/JavaVirtualMachines/liberica-jdk-8-full.jdk/Contents/Home

java -version returns:

openjdk version "1.8.0_252"`
OpenJDK Runtime Environment (build 1.8.0_252-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)

Error When I run bin/autopsy I get an error saying

org.netbeans.InvalidException: StandardModule:org.sleuthkit.autopsy.core jarFile: /Users/user/Downloads/autopsy-4.15.0/autopsy/modules/org-sleuthkit-autopsy-core.jar: java.lang.IllegalArgumentException: java.lang.reflect.InvocationTargetException

Terminal also outputs:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.netbeans.ProxyURLStreamHandlerFactory (file:/Users/user/Downloads/autopsy-4.15.0/platform/lib/boot.jar) to field java.net.URL.handler
WARNING: Please consider reporting this to the maintainers of org.netbeans.ProxyURLStreamHandlerFactory
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

The only options shown are Exit and Disable Modules and continue

Update I accidentally click Disable Modules and continue. How can I re-enable them as well as fix the issue above?

Roxiun commented 4 years ago

Fixed by deleting all other Java versions manually (Folder is /Library/Java/JavaVirtualMachines/)