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

HackRF not found by hackrf-spectrum-analyzer under Win11 ? JVMCFRE199E bad major version 55.0 #63

Open
aneitzel opened this issue May 1, 2024 · 2 comments

Comments

@aneitzel
Copy link

aneitzel commented May 1, 2024

Hello,

HackRF (with portapack, latest firmware 2023.01.1 installed), running fine under Win11 in SDR++ and other SDR tools. Unfortunately i dont got it managed to run with hackrf-spectrum-analyzer. It will always show "HackRF not connected" ???
I noticed a message during startup, details see below:

Exception in thread "hackrf_sweep" java.lang.UnsupportedClassVersionError: JVMCFRE199E bad major version 55.0 of class=hackrfsweep/HackrfSweepLibrary$hackrf_sweep_lib_start__fft_power_callback_callback, the maximum supported major version is 52.0; offset=6

Any idea whats wrong here?


HackRFinfo output:

hackrf_info version: 2023.01.1
libhackrf version: 2023.01.1 (0.8)
Found HackRF
Index: 0
Serial number: 0000000000000000f77c60dc261b78c3
Board ID Number: 2 (HackRF One)
Firmware Version: n_240430 (API:1.08)
Part ID Number: 0xa000cb3c 0x006a4358
Hardware Revision: older than r6
Hardware supported by installed firmware:
HackRF One


hackrf_sweep_spectrum_analyzer_windows.cmd

C:\Users\Username\Downloads\HackRF Spectrum Analyzer>java -Djna.platform.library.path=lib\win32-x86-64 -jar lib\hackrf_sweep_spectrum_analyzer.jar
Persistent image set to 320x240
HackRFSweep thread stopped.
Starting hackrf_sweep... 2400-2500MHz
hackrf_sweep params: freq 2400-2500MHz FFTBin 100000Hz samples 8192 lna: 40 vga: 0 antenna_lna: false
Exception in thread "hackrf_sweep" java.lang.UnsupportedClassVersionError: JVMCFRE199E bad major version 55.0 of class=hackrfsweep/HackrfSweepLibrary$hackrf_sweep_lib_start__fft_power_callback_callback, the maximum supported major version is 52.0; offset=6
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClassInternal(ClassLoader.java:397)
at java.lang.ClassLoader.defineClass(ClassLoader.java:358)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:682)
at java.net.URLClassLoader.access$400(URLClassLoader.java:89)
at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1086)
at java.security.AccessController.doPrivileged(AccessController.java:782)
at java.net.URLClassLoader.findClass(URLClassLoader.java:589)
at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:957)
at java.lang.ClassLoader.loadClass(ClassLoader.java:902)
at java.lang.ClassLoader.loadClass(ClassLoader.java:885)
at jspectrumanalyzer.HackRFSweepSpectrumAnalyzer.sweep(HackRFSweepSpectrumAnalyzer.java:1237)
at jspectrumanalyzer.HackRFSweepSpectrumAnalyzer.lambda$6(HackRFSweepSpectrumAnalyzer.java:774)
at java.lang.Thread.run(Thread.java:826)
Persistent image set to 401x401
Persistent image set to 401x401

@dave3825us
Copy link

Anything going on with this program? Wont connect to hackrf win 10

@aneitzel
Copy link
Author

Good news! Found the problem!

The error JVMCFRE199E bad major version 55.0 comes up because of a old JAVA runtime engine installed on my system.
I uninstalled java and installed following open JAVA IBM Seremu implementation (its free):

openjdk 21.0.2 2024-01-16 LTS
IBM Semeru Runtime Open Edition 21.0.2.0 (build 21.0.2+13-LTS)
Eclipse OpenJ9 VM 21.0.2.0 (build openj9-0.43.0, JRE 21 Windows 11 amd64-64-Bit Compressed References 20240116_95 (JIT enabled, AOT enabled)
OpenJ9 - 2c3d78b48
OMR - ea8124dbc
JCL - 78c4500a434 based on jdk-21.0.2+13)

With this setup hackrf spectrum works fine! Hope this helps!

image

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