Icon Launcher + .jar file

NoOp glgxg at sbcglobal.net
Fri Jul 6 18:49:30 UTC 2007


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. 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.





More information about the ubuntu-users mailing list