Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #25293

Re: Java version check and auro-jre download (was Re: J2EE)

From Richard Maher <maher_rjSPAMLESS@hotmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: Java version check and auro-jre download (was Re: J2EE)
Date 2013-09-17 19:04 +0800
Organization Aioe.org NNTP Server
Message-ID <l19cvp$760$1@speranza.aioe.org> (permalink)
References (15 earlier) <l0356c$anl$1@speranza.aioe.org> <5225213c$0$290$14726298@news.sunsite.dk> <l03jd7$ufm$1@dont-email.me> <l04mi6$uq7$1@speranza.aioe.org> <522d1492$0$292$14726298@news.sunsite.dk>

Show all headers | View raw


On 9/9/2013 8:21 AM, Arne Vajhøj wrote:
> On 9/3/2013 9:00 AM, Richard Maher wrote:
>> On 9/3/2013 11:00 AM, markspace wrote:
>>> On 9/2/2013 4:37 PM, Arne Vajhøj wrote:
>>>>
>>>> But based on the very little I have been using it then I would
>>>> expect the .jnlp file to contain:
>>>>
>>>> <java version="1.7+" href="http://java.sun.com/products/autodl/j2se" />
>>>
>>>
>>> Yes, I was going to say the same thing:  Richard might find it helpful
>>> to read the manual and use the correct syntax.  One web search turned up
>>> this exact thing for me, in the Java tutorials on the Oracle website, no
>>> less.
>>
>> Richard was/is talking Applets as usual and am quite happy to be told
>> that the syntax for the PARAM tag OBJECT tag combo is not what I've
>> quoted. Tried both + and * and just plain old 1.7 after deleting it and
>> only installing 1.6.
>
> You mean in an applet tag??

No, no, no Arne! I meant what I said: -
http://www.w3schools.com/tags/tag_object.asp

>
> Nested param elements inside an applet or object tag are passed to
> Java - the browser do not do anything with it.

But the Plug-In does! Take the following list that I dynamically inject 
into the DOM at run-time: -

     var appletParams = [{"name":"archive", 
"value":archiveName        },
                         {"name":"codebase",          "value":codeBase 
          },
                         {"name":"code",              "value":className 
          },
                         {"name":"java_version",      "value":"1.7*" 
          },
                         {"name":"mayscript",         "value":"true" 
          },
                         {"name":"scriptable",        "value":"true" 
          },
                         {"name":"codebase_lookup",   "value":"false" 
          },
                         {"name":"java_status_events","value":"true" 
          },
                         {"name":"permissions",       "value":"sandbox" 
          },
                         {"name":"cache_option",      "value":"no" 
          },
                         {"name":"APPLICATION", 
"value":application        },
                         {"name":"PORT",              "value":port 
          },
                         {"name":"MAXBUF",            "value":maxBuf 
          },
                         {"name":"HOSTCHARSET", 
"value":this.hostCharSet   },
                         {"name":"SSLREQD", 
"value":this.sslReqd       },
                         {"name":"HANDSHAKE", 
"value":this.handshake     },
                         {"name":"IDLETIMEOUT", 
"value":this.idleTimeout   },
                         {"name":"TABMAILBOXSIZE", 
"value":this.tabMailboxSize},
                         {"name":"VERBOSITY", 
"value":this.verbosity     }];


I think you'll find, and take the time to acknowledge, that only those 
in UPPERCASE are of no interest to the JPI?

>
> So that construct will enable your applet to get the required Java
> version - it will not do anything by itself.

Please PLEASE spend the time to read the ORACLE nee SUN documentation at: -
http://www.oracle.com/technetwork/java/javase/index-141751.html#MECHANISMS

It has been my experience (although Oracle seems to require an OTN 
account to download older JREs these days, so I can’t re-confirm) that: -

1)	If you have Java 6 and 7 on a system and I select 1.6 with my OBJECT 
tag then I will get a Java 6 JVM
2)	If I have only Java 6 on my system and I request, nay mandate, Java 7 
then the Plug-in says “What’s the big deal? Java’s Java! Just take 6 and 
see how you get on”.

No errors; no nothing :-(

Even though the above link clearly states that an auto-download of the 
desired Java version can be triggered by the use of the “java_version” 
PARAM, I’m happy that it doesn’t and just fails but I insist it not fail 
silently. Is this really too much to ask from a vendor?

Oracle are still publishing misleading Tag bullshit like this: -
http://docs.oracle.com/javase/6/docs/technotes/guides/plugin/developer_guide/using_tags.html

>
> Completely different from JNLP java element that gets processed
> by Java before it calls the applet and has version check and update
> capability.

JNLP relies on the complete crap of strategies that I've paraphrased 
from http://ORACLE/LarryTheLoungeLizard/DeployShit.js as seen below.

A simple question: - "Why can't Java provide the advertised 
functionality since 'The New Java Plug-In' circa 6.10?" And if it can't 
why can't you stop failing silently you incompetent twats?
>
> I think you should look into JWS and JNLP.

I think you should read more out of your comfort zone. For example: -
https://addons.mozilla.org/en-US/firefox/blocked/p428

50 shades of Larry's ego :-(

>
> Arne
>

Cheers Richard Maher
>

PS. (Why the fuck do I have to do this?) As gleaned from the warped mind 
of someone Larry chooses to employ: -

<!DOCTYPE HTML>
<html>
   <head>


   <script type="text/javascript">

   function isJavaInstalled(version)
   {
     var compare;
	
	if (Object.prototype.toString.call(version) == '[object Array]') {
		var	versionList = version;
		compare = function(a,b) {
					  return a == b;
					}
	} else {
		var versionList = [version];
		compare = function(a,b) {
					  return a >= b; // Bad luck for IE. Use [7,8,9]?
					}
	}	
	
	if (window.ActiveXObject) {
		for (var i=0; i<versionList.length; i++) {
			try {
				   var fred = new ActiveXObject('JavaWebStart.isInstalled.1.' + 
versionList[i] + '.0.0');
				   return true;
				} catch (err) {}	
		}
	}

	if (navigator.mimeTypes) { // Opera Mime Types don't de-install
		for (var i=0; i<versionList.length; i++) {
			for (var j = 0; j<navigator.mimeTypes.length; j++) {
				if 
(navigator.mimeTypes[j].type.indexOf('/x-java-applet;jpi-version') != -1) {
					var dotArray = navigator.mimeTypes[j].type.split('.');
					try {
						if (dotArray.length > 1 && 
compare(parseInt(dotArray[1].match("[1-9]*")), versionList[i])) {
							return true;
						}
					} catch (err) {}
				}
			}
		}
	 }

	 return false;

   }

   function load() {
     alert(isJavaInstalled([5,6]));
   }
	
   </script>
   </head>

   <body id="torso" onload="load()" 
onunload="(function(){console.log('In unload')})();">


stuff

</body>
</html>

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

J2EE bob smith <bob@coolfone.comze.com> - 2013-08-20 15:47 -0700
  Re: J2EE Lew <lewbloch@gmail.com> - 2013-08-20 16:25 -0700
    Re: J2EE Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2013-08-21 08:40 +0300
      Re: J2EE Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-08-29 08:18 -0300
        Re: J2EE Arne Vajhøj <arne@vajhoej.dk> - 2013-08-29 17:47 -0400
  Re: J2EE Arne Vajhøj <arne@vajhoej.dk> - 2013-08-20 19:26 -0400
  Re: J2EE markspace <markspace@nospam.nospam> - 2013-08-20 17:20 -0700
    Re: J2EE Arne Vajhøj <arne@vajhoej.dk> - 2013-08-20 21:19 -0400
  Re: J2EE lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-08-21 12:08 +0100
  Re: J2EE Gordon Levi <gordon@address.invalid> - 2013-08-22 16:20 +1000
  Re: J2EE Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-08-29 13:26 -0300
    Re: J2EE Arne Vajhøj <arne@vajhoej.dk> - 2013-08-29 17:52 -0400
      Re: J2EE eric@invalid.com (EricF) - 2013-08-30 02:54 +0000
        Re: J2EE Arne Vajhøj <arne@vajhoej.dk> - 2013-08-30 22:49 -0400
          Re: J2EE Martin Gregorie <martin@address-in-sig.invalid> - 2013-08-31 10:58 +0000
            Re: J2EE Arne Vajhøj <arne@vajhoej.dk> - 2013-08-31 21:39 -0400
              Re: J2EE Martin Gregorie <martin@address-in-sig.invalid> - 2013-09-01 12:48 +0000
                Re: J2EE Arne Vajhøj <arne@vajhoej.dk> - 2013-09-01 09:14 -0400
                Re: J2EE Martin Gregorie <martin@address-in-sig.invalid> - 2013-09-01 18:35 +0000
                Re: J2EE Arne Vajhøj <arne@vajhoej.dk> - 2013-09-01 16:45 -0400
                Re: J2EE Martin Gregorie <martin@address-in-sig.invalid> - 2013-09-02 00:10 +0000
                Re: J2EE Arne Vajhøj <arne@vajhoej.dk> - 2013-09-01 20:12 -0400
                Re: J2EE Martin Gregorie <martin@address-in-sig.invalid> - 2013-09-02 19:47 +0000
                Re: J2EE Arne Vajhøj <arne@vajhoej.dk> - 2013-09-02 16:11 -0400
                Java version check and auro-jre download (was Re: J2EE) Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2013-09-03 06:58 +0800
                Re: Java version check and auro-jre download (was Re: J2EE) Arne Vajhøj <arne@vajhoej.dk> - 2013-09-02 19:37 -0400
                Re: Java version check and auro-jre download (was Re: J2EE) markspace <markspace@nospam.nospam> - 2013-09-02 20:00 -0700
                Re: Java version check and auro-jre download (was Re: J2EE) Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2013-09-03 21:00 +0800
                Re: Java version check and auro-jre download (was Re: J2EE) markspace <markspace@nospam.nospam> - 2013-09-03 13:35 -0700
                Re: Java version check and auro-jre download (was Re: J2EE) Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2013-09-04 05:14 +0800
                Re: Java version check and auro-jre download (was Re: J2EE) markspace <markspace@nospam.nospam> - 2013-09-03 18:34 -0700
                Re: Java version check and auro-jre download (was Re: J2EE) Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2013-09-08 19:46 +0800
                Re: Java version check and auro-jre download (was Re: J2EE) Arne Vajhøj <arne@vajhoej.dk> - 2013-09-08 20:28 -0400
                Re: Java version check and auro-jre download (was Re: J2EE) Arne Vajhøj <arne@vajhoej.dk> - 2013-09-08 20:21 -0400
                Re: Java version check and auro-jre download (was Re: J2EE) "John B. Matthews" <nospam@nospam.invalid> - 2013-09-09 01:25 -0400
                Re: Java version check and auro-jre download (was Re: J2EE) Martin Gregorie <martin@address-in-sig.invalid> - 2013-09-09 20:19 +0000
                Re: Java version check and auro-jre download (was Re: J2EE) Arved Sandstrom <asandstrom2@eastlink.ca> - 2014-01-30 12:43 -0400
                Re: Java version check and auro-jre download (was Re: J2EE) Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2013-09-17 19:04 +0800
                Re: J2EE Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-09-01 17:09 -0300
        Re: J2EE eric@invalid.com (EricF) - 2013-08-31 03:13 +0000
        Re: J2EE Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-08-31 22:46 -0300
  Re: J2EE Wendy Devolder <wendy.devolder@skillsmatter.com> - 2013-09-01 07:44 -0700

csiph-web