Icon Launcher + .jar file

Derek Broughton news at pointerstop.ca
Fri Jul 6 19:34:15 UTC 2007


NoOp wrote:

> On 07/06/2007 09:45 AM, Derek Broughton wrote:
>> Dom Incollingo wrote:
>> 
>>> To the best of my knowledge, you cannot execute a jar the same way
>>> that you would execute a script or an executable program.  You
>>> normally execute a jar file using the -jar option of the java
>>> program.  For example:
>>> 
>>> java  -jar  <jar name>
>>> 
>>> Or in your case,
>>> 
>>> cd  /home/gg/javascore/ java  -jar  JavaScore.jar
>> 
>> I'll bite.  Is Gnome really so primitive as to not be able to work
>> that out? As far as _Linux_ is concerned, a jar is just as executable
>> as a script.
> 
> You know actually now that you mention it, I think that it should. I'm
> wondering if perhaps there is something wrong with the mime type and/or
> gnome-mime-database.

That's what I'm thinking.  In fact, I said KDE could handle this, but the
_real_ truth is that I haven't got around to making it do so :-)  I know
how, but there's so little time...

> I checked the permissions for the jar Javascore.jar 
> file and it is registered as 'application/x-java-archive' and set to
> allow executing as a program. And in /usr/share/mime/globs I do show:
> application/x-java-archive:*.jar so I'm not sure what the problem is at
> this point.

-- 
derek





More information about the ubuntu-users mailing list