Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java error: class file version 65.0 #7900

Open
RobertoD91 opened this issue May 8, 2024 · 2 comments
Open

Java error: class file version 65.0 #7900

RobertoD91 opened this issue May 8, 2024 · 2 comments

Comments

@RobertoD91
Copy link

I have this error when i open autopsy on an intel macos

org.netbeans.InvalidException: StandardModule:org.sleuthkit.autopsy.core jarFile: /Users/Roberto/autopsy-install/autopsy-4.21.0/autopsy/modules/org-sleuthkit-autopsy-core.jar: java.lang.UnsupportedClassVersionError: org/sleuthkit/datamodel/TskCoreException has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0

Some system infos:

$ sw_vers 
ProductName:		macOS
ProductVersion:		14.4.1
BuildVersion:		23E224

$ brew --version
Homebrew 4.2.21-47-g9bf7734

$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/openjdk-17.jdk/Contents/Home/

$ /usr/libexec/java_home -v 17
/usr/local/Cellar/openjdk@17/17.0.11/libexec/openjdk.jdk/Contents/Home

$ which java
/usr/local/opt/openjdk@17/bin/java

$ java --version
openjdk 17.0.11 2024-04-16
OpenJDK Runtime Environment Homebrew (build 17.0.11+0)
OpenJDK 64-Bit Server VM Homebrew (build 17.0.11+0, mixed mode, sharing)

$ ./install_application.sh -z /Users/xxxx/Downloads/autopsy-4.21.0.zip -i /Users/xxxx/autopsy-install/ -j /Library/Java/JavaVirtualMachines/openjdk-17.jdk/Contents/Home/
$ ./add_macos_jna.sh -i /Users/xxx/autopsy-install/autopsy-4.21.0/
@RobertoD91
Copy link
Author

Autopsy starts by setting jdkhome=/Library/Java/JavaVirtualMachines/openjdk/Contents/Home/ (Java 21 by brew) in /Users/Roberto/autopsy-install/autopsy-4.21.0 but the guide suggests using java 17

@stangeqwq
Copy link

Same confusion here. Trying to install autopsy for mac m1. Getting class error if jdkhome is set to java 21 (new). but if i set jdk home to java17, i get sleuthkit error tsk

sleuthkit 4.12.1 (w/)
autopsy 4.21.0

weird that readme.md says sleuthkit 4.11 but building autopsy asks for sleuthkit 4.12 at /usr/local/share/java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants