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.44k stars 594 forks source link

Autopsy on Arch - illegal reflective access #4321

Open cyberpope opened 6 years ago

cyberpope commented 6 years ago

Whenever I open autopsy during loading I get following errors.

WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.netbeans.ProxyURLStreamHandlerFactory (file:/opt/autopsy/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

After which autopsy runs, yet all areas are grayed out. Any ideas? What other logs may I provide to help you?

arkanoid87 commented 5 years ago

same here

hbersey commented 4 years ago

Did you ever find a fix to this? I'm having the same issue.

rcordovano commented 4 years ago

What version of Autopsy are you trying to run? What platform are you trying to run on? Are you building from source?

The warnings suggest to me that the Java 9 module system may be involved here; Autopsy is at Java 8 and is using NetBeans infrastructure (e..g, org.netbeans.ProxyURLStreamHandlerFactory, as referenced by the warning messages) compiled at the Java 8 level, so there is a definite Java 8 dependency, which is handled by the Autopsy installer for Windows platforms.

In terms of logs, the last messages.log and autopsy.log.0 in autopsy/var/log might contain more information if the answers to the above questions do not point to a way forward. On a Windows platform, those files would be found in a location such as C:\Users\your-user-name\AppData\Roaming\autopsy\var\log.

mikerj1 commented 4 years ago

I experienced the same on a Debian based distro. The log ~/.autopsy/var/log/messages.log showed that despite either setting the system java (update-alternatives) to jdk 8 and setting JAVA_HOME to the jdk8 dir, or passing --jdkhome /usr/lib/jvm/java-8-openjdk-amd64 as an argument to autopsy and setting JAVA_HOME, it still logged that autopsy used jdk11.

Setting system java to jdk8 and passing the jdkhome arg worked. Setting JAVA_HOME wasn't necessary. Strange.