(solved) Simsmith on Linux - Page 1
Forum section: electronics / rf-microwave

author: antenna
author_rank: Frequent Contributor
timestamp: February 27, 2025, 01:17:05 am
content: I recently switched over to linux (the latest Zorin package) and tried installing Simsmith. Simsmith is telling me that I need a newer version of java (like jdk 23 or something, Im at work and not at that computer to know for sure), but java is no longer being made for linux and the old versions don't work for simsmith.Has anyone had this problem or know of a solution other than dual OS or VM's?

author: Odysseus
author_rank: Regular Contributor
timestamp: February 27, 2025, 02:58:49 am
content: Have you tied OpenJDK? Version 23 is in the Zorin software store.

author: Odysseus
author_rank: Regular Contributor
timestamp: February 27, 2025, 03:32:25 am
content: Hmm, that won't work, too new. Looks like openjdk-21-jre package will do the trick, though.

author: antenna
author_rank: Frequent Contributor
timestamp: February 27, 2025, 05:21:43 am
content: I thought I tried OpenJDK 21, but apparently, I didn't if it worked for you. Thank you very much, I will try that as soon as I get home!

author: antenna
author_rank: Frequent Contributor
timestamp: March 01, 2025, 02:29:05 am
content: This is the error I get running simsmith and a screenshot of my java version

author: A.Z.
author_rank: Super Contributor
timestamp: March 05, 2025, 09:02:06 am
content: check thishttps://groups.io/g/SimSmith/topic/simsmith_on_linux/32985312

author: antenna
author_rank: Frequent Contributor
timestamp: March 05, 2025, 09:16:15 pm
content: the dropbox file was deleted

author: hli
author_rank: Frequent Contributor
timestamp: March 06, 2025, 08:28:18 am
content: Class file version 59 corresponds to JDK 15 (seehttps://javaalmanac.io/bytecode/versions/). Version 55 is JDK 11. So it seems SimSmith is not using the JDK it should use by default.Did you try to download the JAR file itself, and run it with 'java -jar SimNEC.jar'?

author: A.Z.
author_rank: Super Contributor
timestamp: March 06, 2025, 09:57:06 am
content: Quote from: antenna on March 05, 2025, 09:16:15 pmbut your brain is still working, isn't it ?see post #2

author: antenna
author_rank: Frequent Contributor
timestamp: March 07, 2025, 01:57:23 am
content: I will try that when I get home. i know I tried giving it run privileges, but I have not tried running the jar directly. Thanks

author: antenna
author_rank: Frequent Contributor
timestamp: March 07, 2025, 10:37:06 am
content: I am one of those people who doesn't understand linux and am attempting to figure it out as a desperate alternative to windows. Although my brain does work, it is inexperienced in anything terminal. This is what I get after downloading the jar file and attempting to run it.

author: Miek
author_rank: Regular Contributor
timestamp: March 07, 2025, 10:49:42 am
content: You're trying to run it as the root user, so it errors out because that user doesn't have a graphical/interactive session open. Run it without sudo instead, just `java -jar SimNEC.jar`

author: antenna
author_rank: Frequent Contributor
timestamp: March 07, 2025, 11:03:17 am
content: It gives me an error without sudoedit: so that error was because i did not cd into my downloads folder first, but after doing that, i get the same thing as I did using sudoI probably messed it up installing too many java versions

author: hli
author_rank: Frequent Contributor
timestamp: March 07, 2025, 11:53:49 am
content: Your latest screenshot still says you are in your home directory, not the downloads folder.

author: antenna
author_rank: Frequent Contributor
timestamp: March 07, 2025, 12:08:39 pm
content: I tried again from downloads

author: Odysseus
author_rank: Regular Contributor
timestamp: March 07, 2025, 08:06:10 pm
content: Try this again:Code:sudo apt-get install openjdk-21-jreThe sudo / root user thing is not the issue. It will run just fine as root (but not recommended).I can replicate the X11 / headless error if only openjdk-21-jre-headless is installed.Seems you must have tried removing openjdk-21-jre at some point.

author: antenna
author_rank: Frequent Contributor
timestamp: March 08, 2025, 06:25:49 am
content: I think you are right. When I started all this, I originally installed java 7 or 8 and ended up installing and attempting to uninstall various things along the way. I just reinstalled openjdk 21 as you suggested and that fixed the issue. Simsmith now starts as it should. Thank you very much for helping me get this working! Thanks to everyone else that replied as well. I am going to re-mirror my os (make backup image) right now.

author: radiolistener
author_rank: Super Contributor
timestamp: March 25, 2025, 01:34:10 am
content: are you open terminal on X11 desktop or through ssh?Type:Code:echo $DISPLAYit should show something like ":0", if output is empty then X11 display is not available on your terminal.It may be because you're running it through ssh on remote PC, or because X11 is not installed or not running...If you're running terminal through ssh on remote machine and your local machine also has X11, you can open terminal with option -x:Code:ssh -X username@192.168.1.5it allows to run terminal with X11 support, so you can run X11 app on remote machine with showing local X11 window, but its performance will be limited with network transfer speed.To run X11 app at full speed you're need to run it locally from X11 session instead of remote ssh connection.If it doesn't help, for further investigation of the issue type the following commands and copy/paste output here, so we can help:Code:echo $DISPLAYCode:echo $WAYLAND_DISPLAYCode:who am i --ips

author: Fflint
author_rank: Frequent Contributor
timestamp: April 02, 2025, 03:02:13 pm
content: I never had issues running Simsmith on Linux. I use Derbian Bookworm and it just works.But I've been using Linux since Windows 95 was new...There no need to run java as root. Depending on how exactly your system is set up the root user may not have access to the GUI or it might make no difference whatsoever.If you keep getting the "can't open display" error run the command the poster below mentioned and reply with the result.

author: antenna
author_rank: Frequent Contributor
timestamp: April 03, 2025, 01:09:21 am
content: Thanks for the reply. I got it working at post #16. Thread title updated to solved. Thanks!