Running .jar

November 14, 2023, 16:21

kennypowers6969

I’ve tried to install openjre and make the file executable to with no luck. It’s as if openjre does not install and does not show as an option as a program to open the file with. Anyone able to help me be able to run .jar programs on Linux on my rpi4

coshi75

is not possible

kennypowers6969

Haven’t had any luck with those installs unfortunately. Thanks for your help

miabl0

in your terminal, run
bash
java -jar filename

miabl0

you have to tell java to run a jar as a jar

oops.se

Use the command apt list openjdk* to search for the java version you want to install and then install it with sudo apt install openjdk-XX-jre-headless replace XX with the version you want to install

kennypowers6969

“Unmet dependencies. Try ‘Apt —fix-broken install’ with no package”

oops.se

I can't help you if you don't read what I have asked for