> >...
> >>Download link ishttp://www.britishcomputercolleges.com/vu/GraphEasyRect.jar
[quoted text clipped - 5 lines]
> >Put that file in the same directory as the jar file,
> >and it should be 'set to go' ...
>> >...
>> >>Download link ishttp://www.britishcomputercolleges.com/vu/GraphEasyRect.jar
(re. web start launch)
>Andrew
>
>I had a D in college English, I will consult dictionary and a grammar
>book next time I post.
Sure, but note it was actually Lew that provided those tips.
>I am new to Java, I copied your jnlp code in a file grapheasy.jnlp and
>stored it in the same folder where my jar file resides on server
Here?
<http://www.britishcomputercolleges.com/vu/grapheasy.jnlp>
I just tried, and got a message..
"Sorry Our site is experiencing technical difficulties,
kindly come back in a day or two "
(Wow. Tell those Server-Admin. people this is the third
millennium, and if a site is experiencing difficulties, I might
give it '10 minutes' before I try it again - if it's lucky..)
>When I pointed my browser to the jar file, it popped open the dialog
>box which asked whether i wanted to save or open the file
No. You need to link directly to the *JNLP* file.
Clicking that link will download the jar, cache
it locally*, and launch it on-screen for the user.
>When i clicked on open it simple ran it
>
>But where is this jar file stored on user's system and how does the
>user run the application next time she want to
* When we deploy things using web start, neither the
developer nor end user needs to specifically know
*where* the file is cached, though the user or their
sys. admin. can find out if motivated/savvy enough.
To allow the user to relaunch the application, we (the
deployer) can 'suggest' desktop icon and launch menu
items (in the JNLP file) - to launch the app. in future.
Most of the JNLP (web start API) examples shown here
suggest a dektop icon. <http://www.physci.org/jws/>
And.. (hunts around) this one ..
<http://www.physci.org/xml/xmltools.html#xmlwfc>
..suggests a menu item. The direct link is..
<http://www.physci.org/xml/xmlwfc.jnlp>
One thing, in closing, is that I find the habit of putting
replies above earlier text (top-posting) to be very confusing.
It is generally better to put replies directly after whatever
you are replying to, and trim any text no longer immediately
relevant - like I have done in my reply.

Signature
Andrew Thompson
http://www.athompson.info/andrew/
Andrew Thompson - 23 Oct 2007 16:26 GMT
...
>One thing, in closing, is that I find the habit of putting
>replies above earlier text (top-posting) to be very confusing.
Since your reply was *not* 'top-posted', that statement was
mostly nonsense. Better placement of the replies (immediately
after the quoted material) would be appreciated, though.

Signature
Andrew Thompson
http://www.athompson.info/andrew/
Dexter - 23 Oct 2007 18:21 GMT
> <http://www.britishcomputercolleges.com/vu/grapheasy.jnlp>
> I just tried, and got a message..
[quoted text clipped - 4 lines]
> millennium, and if a site is experiencing difficulties, I might
> give it '10 minutes' before I try it again - if it's lucky..)
You got this message I have put up for pages that were removed from
site last month, it was intended for those who use those pages. After
storing and trying the jnlp file, i had removed it before you had a
chance to try it
I have since uploaded it again and its link is
http://www.britishcomputercolleges.com/vu/GraphEasy.jnlp
I have added a link to this on opening page http://www.britishcomputercolleges.com
See the link under DESKTOP VERSION titled "Graph Rectangular"
When i click this, it shows the xml contents
Andrew Thompson - 23 Oct 2007 23:56 GMT
>> <http://www.britishcomputercolleges.com/vu/grapheasy.jnlp>
...
>http://www.britishcomputercolleges.com/vu/GraphEasy.jnlp
Try to avoid upper case in URLs.
That returns a 404 for me (as does the lowser case variant)
>I have added a link to this on opening page http://www.britishcomputercolleges.com
I don't see it.
>See the link under DESKTOP VERSION titled "Graph Rectangular"
The only link I see there, is to the jar.
>When i click this, it shows the xml contents
The server is probably not providing the correct content-type
for JNLP files. That will be easy for me to check once you
have any JNLP File available on the BC server.
BTW - another tip is that the word 'I' should always be upper case.

Signature
Andrew Thompson
http://www.athompson.info/andrew/
Dexter - 24 Oct 2007 14:05 GMT
> >I have added a link to this on opening pagehttp://www.britishcomputercolleges.com
> I don't see it.
Sorry Andrew
Try this link http://www.britishcomputercolleges.com/vu/grapheasy.jnlp
The testpage is http://britishcomputercolleges.com/vu/testjnlp.html
This simply return the xml nothing else, so it must be what you said
of the server not returning MIME format
Andrew Thompson - 24 Oct 2007 14:38 GMT
>> >I have added a link to this on opening pagehttp://www.britishcomputercolleges.com
...
>Try this link http://www.britishcomputercolleges.com/vu/grapheasy.jnlp
Yes. I see it now.
>The testpage is http://britishcomputercolleges.com/vu/testjnlp.html
>
>This simply return the xml nothing else, so it must be what you said
>of the server not returning MIME format
OK - strong suspicions are good, but facts are better.
In cases like this, I surf on over to Roedy's site to the
neat little mime-type checker applet.
<http://mindprod.com/jgloss/mime.html>
If we click 'OK' for the trusted code, paste the JNLP
URL into the top text field then click to 'Test' the
server, we can see.. yep.
server MIME type: text/plain
proper MIME type: application/x-java-jnlp-file
That server is definitely returning the wrong
content-type for JNLP files.
Ask your server people (very nicely) to add
'application/x-java-jnlp-file' for file type 'jnlp',
and we should be able to see it launched,
rather than rendered as XML in the browser.

Signature
Andrew Thompson
http://www.athompson.info/andrew/
Dexter - 25 Oct 2007 09:24 GMT
> >> >I have added a link to this on opening pagehttp://www.britishcomputercolleges.com
> Ask your server people (very nicely) to add
[quoted text clipped - 4 lines]
> --
> Andrew Thompsonhttp://www.athompson.info/andrew/
I will do so later today.
I have made a little amendment to GraphEasyRect, the recent version
shows coordiante points as one moves the cursor along the canvas. This
should come in handy to see the points on the graph line.
On another note, I was trying to edit and save a data file which is
part of the GraphEasyRect.jar
I used the ZipOutputStream, DataOutputStream, and ZipEntry classes to
manipulate this datafile.
When I ran the program it recreated the Jar file with just this
datafile and all other class file contained in GraphEasyRect.jar
disappeared. I suppose this happened because the only file I told the
program to write was the datafile.
What I am trying to do is to read from a file contained in
GraphEasyRect.jar and update it. What should I do to make other files
remain put in Jar file and for the program to update this datafile
only
I do not need code just the logical steps required for this
Asad S. Yousaf
Andrew Thompson - 25 Oct 2007 09:55 GMT
>> >> >I have added a link to this on opening pagehttp://www.britishcomputercolleges.com
>> Ask your server people (very nicely) to add
..correct content-type for JNLP..
>I will do so later today.
Cool. Let us know when it's done, and you've checked it.
It would be nice to see this new launch working off the
home site.
...
>On another note, I was trying to edit and save a data file which is
>part of the GraphEasyRect.jar
This is a very different subject, and probably best discussed
in a separate thread, but my basic advice is "don't do that".
It will be virtually impossible to achieve that in a sandboxed
app., and even for a 'full-trust' app. it is a very fragile and
non-optimal strategy.
...
>What I am trying to do is to read from a file contained in
>GraphEasyRect.jar and update it.
What file? Why? What does it contain?
Perhaps you can best answer those questions (and the
ten more I will not ask yet) by describing this to me in
terms of "I want to offer X to the end user", where X is
the thing you are thinking of doing using Zip files and such.
Note that Zip files themselves mean nothing to the end user,
so there should be no mention of '..zip file..' in the 'X'.
...
>I do not need code just the logical steps required for this
I generally avoid giving out the logical steps to achieving
'poor strategies' - If I can find out what the end goal is, I
should be able to help better.

Signature
Andrew Thompson
http://www.athompson.info/andrew/
Dexter - 03 Nov 2007 11:23 GMT
> Ask your server people (very nicely) to add
> 'application/x-java-jnlp-file' for file type 'jnlp',
> and we should be able to see it launched,
> rather than rendered as XML in the browser.
I did tell my ISP to make the change, they say they have changed the
MIME type
Yet when I point the browser to the jnlp file it still shows the xml
contents
I tried going to Roedy's applet but it does not run on my machine may
be because I have an earlier version of JRE running
If you could try the applet to see if the correct MIME is bieng
returned by the server
Asad
Andrew Thompson - 03 Nov 2007 12:21 GMT
...
>I tried going to Roedy's applet but it does not run on my machine
That is a pity.*
>...may
>be because I have an earlier version of JRE running
* I am pretty sure Roedy would like some more details
of the failure, and I am curious. He usually makes his
applets compatible with a fairly old Java, and the only
other issue is accepting the digitally signed code (which
some people are not allowed to do, according to options
seen in the Java Control Panel).
>If you could try the applet to see if the correct MIME is bieng
>returned by the server
I am getting 'text/plain' here, using the mindprod applet.
It also still reiterates the correct type should be
'application/x-java-jnlp-file'.
And yes, it will continue to fail, so long as the wrong
content type is served. I had thought this matter of
the servers (in general) recognising and handling JNLP
files correctly had been largely sorted, but this example
does nothing for my confidence. :-(

Signature
Andrew Thompson
http://www.athompson.info/andrew/
Dexter - 24 Oct 2007 14:12 GMT
> >I have added a link to this on opening pagehttp://www.britishcomputercolleges.com
>
> I don't see it.
Try this link http://britishcomputercolleges.com/vu/testjnlp.html to
test the jnlp file
The jnlp file resides at http://www.britishcomputercolleges.com/vu/grapheasy.jnlp
Asad