You are not logged in.

#1 2011-09-04 22:02:22

2891066
Member
Registered: 2011-08-17
Posts: 11

[solved] openjdk6 fails to execute .jar archive

what the title says.  I have openjdk6 and icedtea installed, but I do not have the option to run a .jar archive as an executable.  jre (or whatever the package name is) would.  What gives?  Am I missing a package?  Is the functionality simply not there?

Last edited by 2891066 (2011-09-04 22:31:47)

Offline

#2 2011-09-04 22:22:26

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] openjdk6 fails to execute .jar archive

Not sure what you mean (java is not my forte) but maybe the .jar file has to be made executable w/ chmod?
Post how you try to run it and what's the output.

Last edited by karol (2011-09-04 22:23:07)

Offline

#3 2011-09-04 22:25:25

2891066
Member
Registered: 2011-08-17
Posts: 11

Re: [solved] openjdk6 fails to execute .jar archive

It's flagged as executable in the properties window.  I'm just running it in gnome.  with JRE installed there was an option to run it as an executable in the right-click menu.

Offline

#4 2011-09-04 22:28:18

jaco
Member
From: Toulouse, France
Registered: 2011-03-17
Posts: 149

Re: [solved] openjdk6 fails to execute .jar archive

All jar files are not executable as they don't have a main method... Have you tried with the command line, with java -jar yourjar.jar ?

Offline

#5 2011-09-04 22:28:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] openjdk6 fails to execute .jar archive

2891066 wrote:

It's flagged as executable in the properties window.  I'm just running it in gnome.  with JRE installed there was an option to run it as an executable in the right-click menu.

Can you try to run it from a console / terminal?

Offline

#6 2011-09-04 22:31:19

2891066
Member
Registered: 2011-08-17
Posts: 11

Re: [solved] openjdk6 fails to execute .jar archive

ok, it runs from the terminal.  Thanks guys.

Offline

Board footer

Powered by FluxBB