Re: Web start on os X : Cannot open associated file.



On Feb 1, 3:45 am, laurent <low...@xxxxxxxxxxx> wrote:
Andrew Thompson a écrit :
....
On Feb 1, 12:02 am, laurent <low...@xxxxxxxxxxx> wrote:
With "Java Web Start", I can associate a custom file type with a Java
application ...
...
OTOH, I think it is premature to make any
definitive statements without a validation of
your JNLP file

*

Also, I have my very own example of usage
of the JNLP API file associations, it is
sandboxed (uses the FileOpen/SaveService)
and small, and I would appreciate test results
from both Win. and Mac. (and Linux).

It is here..
<http://www.physci.org/jws/#fs>
...
I have tested filetest.jnlp (http://www.physci.org/jws/filetest.jnlp) on
os X and it give the following result : When a *.zzz file is double
clicked, the program is started but the file itself isn't opened.

:-( Thanks for the result. I take it, it works for you on Win.?

However, when "Java Web Start" application is launched from shell (on
Max.) with proper arguments , it behaves as expected. For example the
following command :

javaws filetest.jnlp -open test.zzz

will start filetest application and display test.zzz file.

That is good to know..

Maybe the problem relies on the "*.app" "shortcut" which is created by
"Java Web Start". A workaround could be to associate *.zzz file to a
script which launch "Java Web Start" with proper arguments.

OK - but that is hardly as good as 'having webstart
do it for us/the user - without further fuss'.

Here is my jnlp file for validation :

* It is good you posted it, even to my eye it is
not valid, and once you have an invalid JNLP
file, you can rely on nothing beyond that..

<!-- JNLP File for STM Image Processor -->
....
<resources os="Mac">
<j2se version="1.5+" initial-heap-size="256m" max-heap-size="512m"/>
</ressources>

<!-- spell it correctly -->
</resources>

<resources os="Win">
<j2se version="1.6+" initial-heap-size="256m" max-heap-size="512m"/>
</ressources>

<!-- spell it correctly -->
</resources>

<application-desc main-class="imgproc.ImgProcessor"/>
</jnlp>

Andrew T.

.



Relevant Pages

  • Java Web Start help : repost???
    ... I tried to post a message to this newsgroup about a problem with Java Web ... created the JNLP file, and added the JNLP mime type to the web server. ... I am including the JNLP contents below, and the zip file of the jar and ... public class HelloWorldFrame extends Frame ...
    (comp.lang.java.programmer)
  • Re: javamail/applet
    ... "If Java Web Start prints out a bad installation error message:" ... The Java Web Start Application Manager appears. ... //JAR resources in JNLP file are not signed by same certificate ...
    (comp.lang.java.programmer)
  • Re: How to approach a project (? Web Start)
    ... I'm not as comfortable with Java Web Start. ... I looked at my file associations and ... there appeared to be a proper file association for .jnlp so I started to ... I anticipated a variety ...
    (comp.lang.java.help)
  • Re: Java App for an Online Experiment
    ... free to Java Web Start the experiment from ... Why does it need to all-permissions? ... do, can either occur in a sandbox, or can use the JNLP ...
    (comp.lang.java.help)
  • Re: Java Web Start Problems
    ... > This application also launches using Java Web Start, ... No, but just as a test, I made up a quick Java source and JNLP. ... public class JNLPArgumentsTest { ... - supply an URL to help debug such matters, ...
    (comp.lang.java.programmer)