How to tell the user to install java plug-in?

  • Thread starter circuit_breaker
  • Start date
C

circuit_breaker

Hi,

When my applet is lauched from a non-java-enabled browser, nothing
happends, just an empty gray square. I'd like to ouput a message
telling the user he must install/enable the JVM. How?

Thank you.
 
C

Chris

In your applet you should add the plug-in path e.g.

<OBJECT classid="clsid:"
WIDTH = 800 HEIGHT = 600
codebase="http://some_machine/javaplugin/j2re-1_3_1_01-win.exe#Version=1,3,1,01">
<PARAM NAME = CODE VALUE = ...>
<PARAM NAME = CODEBASE VALUE = "." >
<PARAM NAME = HEIGHT VALUE = 600 >
<PARAM NAME = WIDTH VALUE = 800 >
<PARAM NAME = ARCHIVE VALUE = "applet.jar" >
<PARAM NAME="dataSource" VALUE="some_machine">
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
<PARAM NAME="scriptable" VALUE="false">
</OBJECT>

The "codebase" should contains the name or IP of your machine where
you have the plugin. The applet will start to download and install it
if missing.

Hope this help,
Chris
 
I

Ike

Best I've seen is JavaVersionApplet - Andrew Thompson here has it. BUT...you
MUST compile it under jdk 1.1.8 or less for it to work correctly in msie.
Then, as the "redirect," parameter, have it point to the autoinstall page at
SUN, i.e:

<param NAME="redirect" VALUE="http://www.java.com/en/download/">This all
 
A

Andrew Thompson

Best I've seen is JavaVersionApplet - Andrew Thompson here has it.

Thanks Ike!
.. BUT...you
MUST compile it under jdk 1.1.8 or less for it to work correctly in msie.

If you mean the JavaVersonApplet itself, yes..
Or you can simply install the precompiled jar
itself. (have I been smart and a) added a direct
download or the jar, ..or b) do I need to get my
s**t together? Oops! b) )

For the moment, you can get the source here..
<http://www.physci.org/codes/jre.jsp>
(link at bottom of page..)

And you can compile it with a -target 1.1 on
your own system to produce a 1.1 compatible
version.

It is important to note though, your own applet
can be anything from 1.2 to 1.5, *your* applet
does not need to be coded or compiled for 1.1
 
C

circuit_breaker

All I want, is to have a message displayed on the user's screen like:
"Please, install the Java Plug-in to use this applet", nothing more.

Thanks.
 

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
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top