Download Graphing Utility (Complimentry Copy)

D

Dexter

GraphEasyRect was previously available as an applet. Now we have
converted it to a desktop standalone application that runs on
multiple
platforms Windows, Mac, and Linux

This tool allows graphing functions in cartesian plane, points of
discontinuity having limits are encircled on graph line. You may view
and copy the values of the function between a range of x values


Download link is http://www.britishcomputercolleges.com/vu/GraphEasyRect.jar


Its a java executable file which will require you to have Java
Runtime
Environment on the system to run.


Its a complimentry tool so do not hesitate to utilize its features


Our online gallery of tools include Graphing Polar curves, finding
area under curve and graphing in Cartesian plane


Visit http://www.britishcomputercolleges.com
 
L

Lew

Dexter said:
Its
"It's"

a complimentry
"complimentary"

tool so do not hesitate to utilize its features

I'll give it a pass, thanks. I'm afraid it might be buggy, based on your
presentation of it.
 
A

Andrew Thompson

Dexter wrote:
...

How about offering a web-start launch?

[e.g. grapheasy.jnlp]
<?xml version='1.0' encoding='UTF-8' ?>
<jnlp spec='1.0'
codebase='http://www.britishcomputercolleges.com/vu'>
<information>
<title>Graph Easy</title>
<vendor>British Computer Colleges</vendor>
<homepage
href='http://www.britishcomputercolleges.com/' />
<description kind='tooltip'>
Graphing Tool
</description>
<description kind='one-line'>
Graphing Tool - Freeware
</description>
</information>
<resources>
<java version='1.4+' />
<jar href='GraphEasyRect.jar' size='28802' />
</resources>
<application-desc />
</jnlp>
[/e.g. grapheasy.jnlp]

Put that file in the same directory as the jar file,
and it should be 'set to go' barring configuring the
server to serve the correct content type for JNLP
files (many do, nowadays).

It can also include things like splash screens,
desktop integration, icons,..

I had to make a few guesses - adjust as needed.

BTW - there seems to be a slight 'paint' issue
when the help dialogs are cleared from over the
graph area - the graph is redrawn, but the
background is not (is replaced by 'white shadow'
where the dialog was).
 
A

Andrew Thompson

Andrew said:
...

How about offering a web-start launch?

[e.g. grapheasy.jnlp] ..
Put that file in the same directory as the jar file,
and it should be 'set to go' ...

To test it from the command line, if in the same
directory as the jar and jnlp, use this command
(Win e.g.)..

D:\grapheasy>javaws -codebase file:. file:grapheasy.jnlp

(But web start is much nicer - off a server.)

--
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200710/1
 
D

Dexter

Andrew said:
How about offering a web-start launch?
[e.g. grapheasy.jnlp] .
Put that file in the same directory as the jar file,
and it should be 'set to go' ...
Andrew

I had a D in college English, I will consult dictionary and a grammar
book next time I post.

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

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

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

Asad
 
A

Andrew Thompson

(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.

--
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200710/1
 
A

Andrew Thompson

D

Dexter

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..)

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
 
A

Andrew Thompson

Dexter said:

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.

--
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200710/1
 
A

Andrew Thompson

Dexter said:

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.

--
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200710/1
 
D

Dexter

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 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
 
A

Andrew Thompson

..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.

--
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200710/1
 
D

Dexter

GraphEasyRectwas previously available as an applet. Now we have
converted it to a desktop standalone application that runs on
multiple
platforms Windows, Mac, and Linux

This tool allows graphing functions in cartesian plane, points of
discontinuity having limits are encircled on graph line. You may view
and copy the values of the function between a range of x values

Download link is http://www.britishcomputercolleges.com/vu/GraphEasyRect.jar
A newer version of GraphEasyRect.jar has been uploaded which fixes a
few quirks that existed in the original version. Anyone who downloaded
GraphEasyRect.jar on 26th October should download this new version as
the version available on 10/26/2007 had a bug.

Asad
 
S

Sabine Dinis Blochberger

Dexter said:
A newer version of GraphEasyRect.jar has been uploaded which fixes a
few quirks that existed in the original version. Anyone who downloaded
GraphEasyRect.jar on 26th October should download this new version as
the version available on 10/26/2007 had a bug.

Asad
I don't know if anyone pointed this out, but this kind of announcements
are probably best posted to comp.lang.java.announce ;)
 
D

Dexter

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
 
A

Andrew Thompson

Dexter wrote:
...
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. :-(
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top