SparkyLinux Forums

Software & hardware support => Newbie questions => Topic started by: ow346 on May 14, 2017, 04:55:45 PM

Title: [Solved] Java Issue
Post by: ow346 on May 14, 2017, 04:55:45 PM
So i just downloaded and installed sparky to try out a new OS meant for gaming, (I've been using puppy Linux and ubuntu in the past) I really only play Minecraft and I cannot seem to figure out how to set the jar file to execute, I've opened the properties window to try and set the program that the jar file would be opened with, but the only thing that relates to Java that i can see is the "open JDK Java 8 policy tool"
please help , I'm not really good with this sort of thing and a Google search does not really pop up anything that is useful to me
Title: Re: Java Issue
Post by: pavroo on May 14, 2017, 06:12:38 PM
1. Create openjdk.desktop file in your home's local directory:
~HOME/.local/share/applications/openjdk.desktop
Paste into the file:
[Desktop Entry]
Name=OpenJDK
Comment=OpenJDK Java
Exec=java -jar
Terminal=false
Type=Application
Icon=openjdk-8
Categories=Settings;


2. Edit or create (if not exist) mimeapps file in your home dir:
~HOME/.config/mimeapps.list
Add the line to the file, in sections [Default Applications] & [Added Associations]:
application/x-java-archive=openjdk.desktop;
make sure there is not other lines beginning with:
application/x-java-archive=

3. Update menus via the command:
update-menus

4. Open a file manager, go to your *.jar file, then open it with "OpenJDK".
Title: Re: Java Issue
Post by: ow346 on May 14, 2017, 09:41:55 PM
Thank you so much! Your help is much appreciated  ;D it worked.
Title: Re: Java Issue
Post by: paxmark1 on May 15, 2017, 07:35:14 AM
Please edit your initial subject line  and add Solved to the beginning.  peace out.