Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Richard Maher Newsgroups: comp.lang.java.programmer Subject: Re: Java version check and auro-jre download (was Re: J2EE) Date: Tue, 17 Sep 2013 19:04:24 +0800 Organization: Aioe.org NNTP Server Lines: 201 Message-ID: References: <521fc2b1$0$300$14726298@news.sunsite.dk> <522159b8$0$291$14726298@news.sunsite.dk> <52229aee$0$299$14726298@news.sunsite.dk> <52233db4$0$303$14726298@news.sunsite.dk> <5223a781$0$304$14726298@news.sunsite.dk> <5223d7f3$0$300$14726298@news.sunsite.dk> <5224f0e7$0$304$14726298@news.sunsite.dk> <5225213c$0$290$14726298@news.sunsite.dk> <522d1492$0$292$14726298@news.sunsite.dk> NNTP-Posting-Host: jOhPn0KFjrxwuMc9OPMmCw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:25293 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: >>>> >>>> >>> >>> >>> 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: - stuff