Icon Launcher + .jar file

Dom Incollingo domincollingo at gmail.com
Fri Jul 6 00:11:20 UTC 2007


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

Hope this helps.

Dom

On 7/5/07, NoOp <glgxg at sbcglobal.net> wrote:
>
> On 07/04/2007 08:01 PM, NoOp wrote:
> > I am having difficulty running a .jar file from a Gnome desktop icon
> > launcher (Ubuntu 7.04 ubuntu-desktop).
> >
> > I can run the program by double-clicking the programname.jar file in
> > Nautilus (user status) in the programs directory, but if I create a
> > desktop icon (right-click on the desktop & "Create Launcher") I can't
> > get the program to run.
> >
> > The program is JavaScore: http://www.gromurph.org/javascore/
> > If I use Nautilus to go to the installed directory, in my case:
> > /home/gg/javascore/ and double-click on JavaScore.jar or right click and
> >  allow it to open with Sun Java 6 Runtime the program runs with no
> > problems at all. However, if I attempt to do the same from a created
> > desktop icon launcher that points to /home/gg/javascore/JavaScore.jar I
> > get nothing. If I try from a terminal I get:
> >
> > $ /home/gg/javascore/JavaScore.jar
> > /home/gg/javascore/JavaScore.jar: line 1: PK  : command not found
> > /home/gg/javascore/JavaScore.jar: line 2: d�: command not found
> > /home/gg/javascore/JavaScore.jar: line 3:  �d� 8�M: No such file or
> > directory
> > /home/gg/javascore/JavaScore.jar: line 4: syntax error near unexpected
> > token `�G�:�d ��'
> > /home/gg/javascore/JavaScore.jar: line 4:
> > `�b^(�G�:�d ��&�� N����.�  �{�鸤z   ��k� ��z��4�4٭Vf�l����9�X�b7����
> >  ��,��?y-*�J�_PK  '
> >
> > Any ideas on what I need to do to run from a desktop icon or from the
> > terminal?
> >
> > G
> >
> >
> >
>
>
> Anyone?
>
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070705/00a7d16d/attachment.html>


More information about the ubuntu-users mailing list