Jump to content

how do I execute a bin.jar file?


83mercedes
 Share

Recommended Posts

Found a neat money manager called jgnash, written in java??

To execute the program, called "jgnash_bin.jar"

The author told me to do

java -jar jgnash_bin.jar

Well, that works fine, but it is a little awkward to do all that every time I want to run that...

is there a way to make a script or somthing to put on my desktop to do that?

I tried making a link to application on my desktop, using the above command, but when I clicked on it, it said "couldn't find java"

Please, any ideas?

Thanks.

Link to comment
Share on other sites

check out this tutorial on the alias command. You can create a short command that is equivilent to what you are typing. Not sure why your desktop shortcut didn't work.

 

e.g. alias mmm='java -jar bin.jar'

 

http://www.mandrakeuser.org/docs/basics/bshell6.html

 

The entire web site is good reading if you want to get into linux a bit more.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...