Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #14512 > unrolled thread
| Started by | Richard Maher <maherrj@googlemail.com> |
|---|---|
| First post | 2012-05-09 20:36 -0700 |
| Last post | 2012-05-15 15:20 -0700 |
| Articles | 4 — 2 participants |
Back to article view | Back to comp.lang.java.programmer
"java_sersion" Applet parameter's Expected behaviour Richard Maher <maherrj@googlemail.com> - 2012-05-09 20:36 -0700
Re: "java_sersion" Applet parameter's Expected behaviour Richard Maher <maherrj@googlemail.com> - 2012-05-11 07:27 -0700
Re: "java_sersion" Applet parameter's Expected behaviour Lew <lewbloch@gmail.com> - 2012-05-11 13:32 -0700
Re: "java_sersion" Applet parameter's Expected behaviour Lew <lewbloch@gmail.com> - 2012-05-15 15:20 -0700
| From | Richard Maher <maherrj@googlemail.com> |
|---|---|
| Date | 2012-05-09 20:36 -0700 |
| Subject | "java_sersion" Applet parameter's Expected behaviour |
| Message-ID | <cd1a43f4-1042-4fd8-8e9d-32012efa9c6a@k10g2000pbk.googlegroups.com> |
Hi, In my Applet's <object> tag I specify the "java_sersion" parameter as follows: - <param name="java_version" value="1.7+"> I'd expected this clause to trigger the Java plugin (as long as after 1.6_10) to throw/report some sort of excption if there was now Java version available >= 1.7. Unfortunately, the Java plugin (1.6_31 in this case) seems very happy just to attempt to run the Applet on that version and ignore the later version requirement. Is this to be expected? Have I specified the parameter incorrectly? I thought it might just have been crappy Safari on OS/X but it also limps-on or completely ignores this parameter on FireFox and Windows. I would like the Applet load to fail if there is no 1.7+ version; how can I achieve this? Cheers Richard Maher
[toc] | [next] | [standalone]
| From | Richard Maher <maherrj@googlemail.com> |
|---|---|
| Date | 2012-05-11 07:27 -0700 |
| Message-ID | <ef60eb8f-507e-422e-8ab3-eaa3817ade84@o3g2000pby.googlegroups.com> |
| In reply to | #14512 |
Honestly, here's a very simple applet: -
<HTML>
<HEAD>
<TITLE> A Simple Program </TITLE>
</HEAD>
<BODY>
Here is the output of my program:
<APPLET CODE="HelloWorld.class" WIDTH=150 HEIGHT=25>
<param name="java_version" value="1.4*">
</APPLET>
</BODY>
</HTML>
import java.awt.Graphics;
public class HelloWorld extends java.applet.Applet {
public void init() {
resize(150,25);
}
public void paint(Graphics g) {
g.drawString("Hello world!", 50, 25);
}
}
Can *anyone* show me *any version* or Java +/- browser wher the
"java_version" applet parameter does *anything* other than take up
space? APPLET, OBJECT, or EMBED tags.
What is supposed to hapen when I ask/demand 7.0 and 7.0 does not
exists???
Is larry pre-occupied on courtroom battles to concentrate on something
that should be so simple?
Cheers Richard Maher
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2012-05-11 13:32 -0700 |
| Message-ID | <28922109.21.1336768324469.JavaMail.geo-discussion-forums@pbqn10> |
| In reply to | #14522 |
Richard Maher wrote:
> Honestly, here's a very simple applet: -
>
> <HTML>
> <HEAD>
> <TITLE> A Simple Program </TITLE>
> </HEAD>
> <BODY>
>
> Here is the output of my program:
> <APPLET CODE="HelloWorld.class" WIDTH=150 HEIGHT=25>
>
>
> </APPLET>
> </BODY>
> </HTML>
>
> import java.awt.Graphics;
> public class HelloWorld extends java.applet.Applet {
>
> public void init() {
> resize(150,25);
> }
> public void paint(Graphics g) {
> g.drawString("Hello world!", 50, 25);
> }
> }
Have you considered using JNLP?
> Can *anyone* show me *any version* or Java +/- browser wher the
> "java_version" applet parameter does *anything* other than take up
> space? APPLET, OBJECT, or EMBED tags.
>
> What is supposed to hapen when I ask/demand 7.0 and 7.0 does not
> exists???
How many question marks do you need to indicate an interrogative?
> Is larry [sic] pre-occupied on courtroom battles to concentrate on something
> that should be so simple?
That's a very silly question.
Five minutes of googling found me this:
"For both Internet Explorer and the Mozilla family of browsers, if Java Plug-in is installed (version 1.3.1_01a or later) then the latest installed version of Java Plug-in is invoked to run the applet."
<http://docs.oracle.com/javase/1.5.0/docs/guide/plugin/developer_guide/using_tags.html#applet>
and this (did you read the tutorials for applets?):
<http://docs.oracle.com/javase/tutorial/deployment/applet/param.html>
"Parameters are to Java applets what command-line arguments are to applications. "
Did you write your applet to take a "java_version" parameter? If not, there's your error.
Really, you should consider reading the documentation,at least the tutorials. And increase your google-fu. It only took me five minutes to find this information, and I'm not experienced with applets.
Where did you find an indication of an applet parameter to specify the Java version? Please cite your reference.
--
Lew
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2012-05-15 15:20 -0700 |
| Message-ID | <27473115.156.1337120428494.JavaMail.geo-discussion-forums@pbcqc3> |
| In reply to | #14524 |
Lew wrote: > Did you write your applet to take a "java_version" parameter? If not, there's your error. > ... > Where did you find an indication of an applet parameter to specify the Java version? > Please cite your reference. As usual I discovered my error long after posting wrong information. There indeed is such a parameter now, since Java 5, as indicated in the OP's link in another thread. In detail: <http://jdk6.java.net/plugin2/version-selection/#BEHAVIOR> Nutshell: the JRE will be the latest version available if you specify "family +" and you don't have that family (plus) installed. "When considering a request to launch an applet on a particular family or any later family, the latest available JRE will be used to launch the applet." So the OP is complaining about the intended behavior. -- Lew
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web