You are not logged in.

#1 2009-06-10 11:26:50

elflord
Member
From: France
Registered: 2008-11-09
Posts: 51

how to launch java jar program in nautilus ?

Hi all

I have a java program in jar format
when i click it nautilus with use archive program to open it
how do i configure to run the program instead of open it in archive ?

thx

Offline

#2 2009-06-10 11:34:21

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: how to launch java jar program in nautilus ?

Java .jar files are run by issuing "java -jar $jarfile". I don't know how is this done in nautilus, but I suppose it will be similar to PCManFM, which is: right clic on the file, Open with..., Open with other app and there you can write the command to use (in this case java -jar), and make it use that command for every .jar file.

Offline

#3 2009-06-10 11:39:28

elflord
Member
From: France
Registered: 2008-11-09
Posts: 51

Re: how to launch java jar program in nautilus ?

thx but i put "java -jar" in the customed command and it doesnt work

Offline

#4 2009-11-03 00:44:39

7x1x
Member
From: Japan
Registered: 2009-10-16
Posts: 34

Re: how to launch java jar program in nautilus ?

In the custom command try:
/usr/bin/java -jar %f

Offline

Board footer

Powered by FluxBB