A .jar application I downloaded opens as an archive rather than a program.

Asked by Torben

The program I would like to use is Alchemy, a free drawing tool available at al.chemy.org. I've used it often on windows, but can't get it to load in ubuntu. I've downloaded the linux version and it clearly lists the application as Alchemy.jar, but will open as an archive rather than an app. If I choose to open it with Java the system tells me that the file is marked non-executable.

I've tried changing file permissions to allow running as an executable, but the program still is acting funny. I'd appreciate it if someone would download the program and try their own approach.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Have you got java runtime environment installed?

Revision history for this message
Torben (bakawhite) said :
#2

Yes, I can run it as a .jar file now. It still is not working the way it is supposed to however. In that I do mean that it's still having errors actually operating.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

I'd make a script file in /usr/bin to launch the .jar file with java, you will then be able to make a menu entry to launch the script and it will be fine. The script will look like this:

#!/bin/bash
cd /path/to/folder
java -jar file.jar

Save the file and copy it to /usr/bin (will require sudo) you will also need to run: sudo chmod +x /usr/bin/scriptname so that it becomes a sript.

It will now be launchable from anywhere as /usr/bin is in $PATH but you can also make an entry in alacarte to launch the script easily.

Can you help with this problem?

Provide an answer of your own, or ask Torben for more information if necessary.

To post a message you must log in.