Need Help with Java App

Status
Not open for further replies.

Titan91

Member
Joined
Jan 13, 2015
Messages
55
Reaction score
0
I'm trying to get JTempestSDR running on Windows 7 x64. This is a Java application that decodes images from unintentional RF radiation from displays like the Tempest project. The program has mixed reports of success, but it has an issue with many people where the JAR file will not run. Double clicking on the file does nothing, even with the 32-bit version of Java installed (which is required). The developer says if this happens to recompile the source code. I'm not familiar with how to do that and was wondering if someone can test this and recompile the application if they also have issues.

Here is the GitHub page and the command line output. The Java app is supposed to open and prompt you to select an EXTIO DLL file for your radio. Other JAR files work fine.

martinmarinov/TempestSDR

Code:
java -jar JTempestSDR.jar
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: martin.tempest.core.TSDRLibrary.init()V
        at martin.tempest.core.TSDRLibrary.init(Native Method)
        at martin.tempest.core.TSDRLibrary.<init>(TSDRLibrary.java:207)
        at martin.tempest.gui.Main.<init>(Main.java:186)
        at martin.tempest.gui.Main$1.run(Main.java:165)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$500(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
 

Linkero

Member
Joined
Sep 5, 2018
Messages
97
Reaction score
9
I was able to get this to run via the command prompt, but not from double clicking. Looking at the error you put, it appears as if you did the same thing. Thus, I must ask, what version of Java are you running?

One thing I learned during my brief time doing java development is that versions can conflict with each other in certain cases. So if you have java 7 installed, and java 8 installed, messy things will happen. My current setup consists of Java 8 update 171(64bit) and Java SE development kit, same version.
 

Titan91

Member
Joined
Jan 13, 2015
Messages
55
Reaction score
0
Thanks. The funny thing is it happens on both my Windows 7 x64 machines. Here is the 32-bit version I have. I have removed all older versions before installing the 32-bit version.

Code:
java -version
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) Client VM (build 25.201-b09, mixed mode)

In the folder with the JAR file, what other files do you have and do they match the hashes below? As far as I know I need...

JTempestSDR.jar (MD5: 65D9A96F90AB5A6C4FB53539C68006F9)
TSDRLibraryNDK.dll (MD5: D9B4F26C914EC6683EEFE6071720098A)
TSDRPlugin_ExtIO.dll (MD5: 17BAAF27D6F2599AC109995FF9F188D3)
TSDRPlugin_Mirics.dll (MD5: 357F0C729807066FD6F5BCA7000B310E)
TSDRPlugin_RawFile (MD5: 135A13B9E0B343D7311897219B6772CA)

...to get the program to at least run. Someone reported having the same issue but he installed MinGW, but he didn't describe exactly what he did after that to get it working. I installed it as well but didn't install any GNU packages using it. Since you got it working, it doesn't seem relevant.

I also have a feeling I have the wrong type of Java install. I got this from Java Downloads for All Operating Systems using the "Windows Offline" link. I also installed the SE development kit of the same 32-bit version with the same result.
 
Last edited:

Titan91

Member
Joined
Jan 13, 2015
Messages
55
Reaction score
0
Thanks again for the quick response. Actually I did get it to work with 64-bit Java, but when loading an EXTIO DLL it would crash with an error about incompatible architecture. Looking at that comment, what I was told about it needing to be 32-bit Java to fix that issue is evidently wrong. I’ll try again. Do you mind trying to open any of the EXTIO DLL files and seeing what happens? I don’t know if you have an RTL_SDR or HackRF to actually test with. I have both.
 

Linkero

Member
Joined
Sep 5, 2018
Messages
97
Reaction score
9
Give this a try.....
josemariaaraujo/ExtIO_RTL

Unfortunately, I don't have my sdr hooked up right now, but this was the only one to not scream at me about incompatibility. Instead it's yelling to plug in my sdr. Alas, I know nothing about tempest, tho I have read the article that you probably have. I'll give it all a try in the morning with this dll to see if it works for me. But, from the 5 or so that I downloaded(from various sources) this seems to be the only one even attempting to work on my end. Hopefully you have the same luck!

Edit: Quick thing to note, this was the only x64 version from this source that worked for me. Another x64 version from the same source doesn't
 

Titan91

Member
Joined
Jan 13, 2015
Messages
55
Reaction score
0
I removed Java x32 and reinstalled Java x64. I got the program to launch again by double clicking and using the command line both. It turns out the DLL files are needed to get the program to work correctly beyond just opening it up. As for the EXTIO DLLs, none of these work for me as you experienced. I tried the RTL_SDR and HackRF DLLs, both the 32-bit and 64-bit versions from GitHub. Here is the error I'm getting:

error.png

I tried the RTL_SDR DLL file in your link. That actually works, finds the dongle, and lets you tune/adjust gain/etc. So I guess I need to find a working HackRF DLL.
 

Linkero

Member
Joined
Sep 5, 2018
Messages
97
Reaction score
9
The error you're receiving is the same as I had received for the majority of versions I had tried. At this point, all you need is an extio that works with hackRF, am I reading this right? If so, hopefully I will have something for you by the end of the day. I'm going to pull some source and recompile it and hopefully get it working. Unfortunately, I need to wait until I get all my dev tools installed. I had just removed it all last week, not expecting this! Hopefully this 18gb doesn't take too long to download :LOL: Alas, I don't have a HackRF so you'll have to be the test subject to make sure it works as intended.
 

Titan91

Member
Joined
Jan 13, 2015
Messages
55
Reaction score
0
Yes basically it’s just the DLL files at this point that are broken. I didn’t expect anyone to go this much trouble to help, if you feel compelled to try it it’s much appreciated. If you are able to get those included EXTIO DLL files recompiled and working would you mind if I credited you and shared them with others having the same problem?
 

Linkero

Member
Joined
Sep 5, 2018
Messages
97
Reaction score
9
JTempest is a great utility that a lot of people have probably messed with, and will continue to mess with. At the moment, it just seems that there is a lack of support for it, mainly with these extio files. If I can help mitigate the issues to keep the dream alive, I'm up for the challenge. Once it's done, assuming it works, then by all means share it with anyone that needs it. It will eventually be up on git with the source as well.

Obviously, if anyone else already has a fix, or beats me to it, I encourage them to join in and help the community! I will PM you later this evening(EST) with any progress and hopefully a new file to test out, in order to keep this thread clean.
 
Status
Not open for further replies.
Top