[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Using Files Without Mounting A Share From Another System



On Mon, 25 Apr 2011 17:05:08 +0000, Liam O'Toole wrote:

> On 2011-04-25, Camaleón wrote:

(...)

>> If I place the "test.jnlp" file locally it can be run (it fails because
>> it looks for a signature file that seems to be missed from the original
>> jar but anyway it recognizes the JAR and tries to launch it), but when
>> I put the same "test.jnlp" file over a samba share and run the app from
>> a linux client it does not work "(java.io.FileNotFoundException:
>> smb:/host/ share/test.jnlp (No such file or directory)".
>>
>> Needless to say the same "test.jnlp" that is located on the network
>> share runs fine when it's launched from a windows client ;-(
> 
> That's a pity. I suspect that smb:// it is not supported by Java
> because, like sftp://, it is not an official scheme[1].

Maybe... but then "nfs://" should be OK :-)

> So, you would have to serve the .jnlp file and its resources from an
> HTTP or FTP server to make the solution truly portable.

That's a bit (a lot) overwhelming, at least for me. I prefer to place a 
copy of the JAR file locally on every linux client and keep the windowses 
ones accessing to the share.

> [1]http://en.wikipedia.org/wiki/URI_scheme#Unofficial_but_common_URI_schemes

Greetings,

-- 
Camaleón


Reply to: