Are you double-clicking the jar file? That's probably going to open it as an archive because that's what a jar file is, it's a zip file by another name!
Here's what I have just done on my rapsberry Pi 4 (4 Gb) which is effectively your Pi 400, but with a slower clock.
Code: Select all
Java -version
openjdk version "11.0.9.1" 2020-11-04
...
I then downloaded using the "SMSQmulator for Java 11" link on Wolfgang's web site using wget:
Code: Select all
cd ~/Downloads
mkdir SMSQmulator
cd SMSQmulator
wget http://www.wlenerz.com/SMSQmulator/SMSQmulator11231.zip"
unzip SMSQmulator11231.zip
Because a jar file is actually a zip file in a frock, double clicking on one in the File Explorer will indeed open it as an archive. Mine does the same. Worry not!
Open the ReadMe.pdf file and speed over to page 7. There's a section on "Starting the Emulator" -- it says you need to run:
So that's what we need to do. In a terminal session, on my system, I ran it thus:
Because (a) I'm a useless typist, also lazy, (b) just to see what would happen, and (c) because I was in the correct directory where the jar file lived!
It worked.
So, now we know how it works, lets create a desktop icon so we don't have to remember this all the time!
Open the text editor (Accessories menu) and type the following:
Code: Select all
[Desktop Entry]
Name=SMSQmulator
Comment=Sinclair QL Emulator
Terminal=false
Type=Application
Icon=gnome-remote-desktop
Exec=java -jar /home/pi/Download/SMSQmulator/SMSQmulator.jar
Path=/home/pi/Download/SMSQmulator
Obviously, change the two final lines to reflect the full path to where you downloaded and extracted the zip file.
Save that on your Desktop as "SMSQmulator.desktop" when done, you should see a new icon appear on the desktop it will have a default icon. Right click it and select "properties".
On the "Permissions" tab, click the drop-down beside "Execute" and choose "Only Owner". Only the pi user can execute this file.
Click OK.
Double click the new icon on the desktop. Do you get a prompt that says "this text file "SMSQmulator" seems to be an executable script...."? If so:
Open the File manager utility.
Click "Edit" then "Preferences".
Click "General"
Tick the checkbox beside "Do not ask options on executable launch".
Click "Close".
HTH
Cheers,
Norm.