java version detection and browser notification

  • Thread starter G. Garrett Campbell
  • Start date
G

G. Garrett Campbell

I have some applet users who have very old java versions (microsoft vm or
versions < 1.5)
I would like to notify them with a request to update their java version.

I created a java applet containing
version = System.getProperty("java.version");

Then I compiled it under java 1.2 (javac).

That works to collect the version number.
____

Now I want to notify them.
Ideally I would do appletContext.showDocument(url) to
pop up a web page with a link to www.java.com to install newer java code.

But showDocument is a 1.4+ method.

Any ideas on how to show a web page from an old java version?
Any better ideas on notification? (Javascript maybe?)

Thanks
 
D

douggunnoe

I have some applet users who have very old java versions (microsoft vm or
versions < 1.5)
I would like to notify them with a request to update their java version.

I created a java applet containing
version = System.getProperty("java.version");

Then I compiled it under java 1.2 (javac).

That works to collect the version number.
____

Now I want to notify them.
Ideally I would do appletContext.showDocument(url) to
pop up a web page with a link towww.java.comto install newer java code.

But showDocument is a 1.4+ method.

Any ideas on how to show a web page from an old java version?
Any better ideas on notification?  (Javascript maybe?)

Thanks

How about a Dialog window?

http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html

Surely one of the methods at that link is good for 1.2, but I can't
swear to it.
 
G

G. Garrett Campbell

I found that AppletContext works better thna appletContext.
Now a web page shows up when the java version is less that 1.5
Thanks
I have some applet users who have very old java versions (microsoft vm or
versions < 1.5)
I would like to notify them with a request to update their java version.

I created a java applet containing
version = System.getProperty("java.version");

Then I compiled it under java 1.2 (javac).

That works to collect the version number.
____

Now I want to notify them.
Ideally I would do appletContext.showDocument(url) to
pop up a web page with a link towww.java.comto install newer java code.

But showDocument is a 1.4+ method.

Any ideas on how to show a web page from an old java version?
Any better ideas on notification? (Javascript maybe?)

Thanks

How about a Dialog window?

http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html

Surely one of the methods at that link is good for 1.2, but I can't
swear to it.
 
A

Andrew Thompson

..
But showDocument is a 1.4+ method.

Rubbish! AppletContext and its methods (e.g.
showDocument()) were introduced in Java *1.0* .

OTOH - it is not a reliable method to show new
pages, since pop-up blockers might interfere with
changing the page.

I suggest you are better off popping a dialog.


For 'altogether better' Java versioning, look to
web start (that will not help with the 1.1 VMs
though).
 
P

Paul Geisler

I think it is also allways possible to call some javascript inside the
page which could take any further actions, for example showing a warning
message and download links beneath the applet.
 

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

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top