Cant run a jar file by double clicking but it runs throught terminal

Hey! I have a jar file(tlauncher) so i added the java file in /usr/bin to execute the jar file on clicking but when i click on the jar file noting happens if i run the java -jar command from the terminal i t launches perfectly

Just installed garuda so not familiar with a lot of things

is java set in your $PATH ? you env? check by printenv|sort -d

the command works so why will it not be in $PATH

I'm only on the mobile now, but maybe you could check with right click if you have an option to "start with".
There should be also a setting though...

1 Like

what java version are you running? archlinux-java get get set diff version with this

its java11

I was using this jar file in ubuntu
and the gui opens with the java command

same java version?

yes how can i switch to 8 just to test?

i just gave you the command

Easy solution: create .desktop which launches java -jar *.jar.

4 Likes

can i know how?

Yes, by using the search engine:
https://searx.garudalinux.org/search?q=create+a+.desktop

2 Likes

image

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.