Author Topic: [Solved] Java Issue  (Read 1224 times)

Offline ow346

  • Newbie
  • *
  • Posts: 5
[Solved] Java Issue
« 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
« Last Edit: June 11, 2017, 06:45:11 pm by ow346 »

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1932
    • SparkyLinux
Re: Java Issue
« Reply #1 on: May 14, 2017, 06:12:38 pm »
1. Create openjdk.desktop file in your home's local directory:
Code: [Select]
~HOME/.local/share/applications/openjdk.desktopPaste into the file:
Code: [Select]
[Desktop Entry]
Comment=OpenJDK Java
Exec=java -jar

2. Edit or create (if not exist) mimeapps file in your home dir:
Code: [Select]
~HOME/.config/mimeapps.listAdd the line to the file, in sections [Default Applications] & [Added Associations]:
Code: [Select]
application/x-java-archive=openjdk.desktop;make sure there is not other lines beginning with:
Code: [Select]
3. Update menus via the command:
Code: [Select]
4. Open a file manager, go to your *.jar file, then open it with "OpenJDK".
« Last Edit: May 14, 2017, 10:51:47 pm by pavroo »
Nothing is easy as it looks.
Danielle Steel

Offline ow346

  • Newbie
  • *
  • Posts: 5
Re: Java Issue
« Reply #2 on: May 14, 2017, 09:41:55 pm »
Thank you so much! Your help is much appreciated  ;D it worked.

Offline paxmark1

  • Sr. Member
  • ****
  • Posts: 472
Re: Java Issue
« Reply #3 on: May 15, 2017, 07:35:14 am »
Please edit your initial subject line  and add Solved to the beginning.  peace out.
Don't make a FrankenDebian