Results 1 to 6 of 6
  1. #1
    ellonnic is offline Member
    Join Date
    Nov 2010
    Posts
    3
    Rep Power
    0

    Default OBJECT tag to automatically install 1.6.0.22 since 1.6.018 crashes

    Hi there,

    Using the OBJECT tag, I've placed an applet on a webpage. I need the user to download the JRE if it's not installed, so I added this attribute to my OBJECT tag and it seems to work.

    codebase="http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab"

    Unfortunately, right now this causes jre 1.6.0.18 to be installed, which consistently crashes once the install has completed, requiring the user to close the browser and return before viewing the applet (known issue I believe). I therefore want the more recent 1.6.0.22 version to be installed instead, but I cannot figure out what to change the codebase attribute to accomplish this. It always seems to install 1.6.0.18! I've tried the following:

    codebase="http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab"
    codebase="http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#Version=6,0,0,99"
    codebase="http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#Version=6,0,0,22"

    Any tips would be immensly helpful! I've been at this for a week or so.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,254
    Rep Power
    19

    Default

    One more casualty of the ineptitude of Oracle. The link you posted does indeed download the cab file for 6u18.

    The download for 6u22 offline installer as accessed from Download Java for Windows appears to be
    http://dl8-cdn.sun.com/s/ESD6/JSCDL/...5670004e4/.exe

    I don't really think that'll solve your problem. but it's all I could find.

    Oh, and you might want to try #Version=1,6,0,22 as Java SE 6 update x is really Version 1.6.0_x (not, as in your post, 1.6.0.18). Or even try 1,6,0,0.

    db

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,254
    Rep Power
    19

    Default

    Hm, what happens when people visit your site from a non-Windows computer?

    db

  4. #4
    ellonnic is offline Member
    Join Date
    Nov 2010
    Posts
    3
    Rep Power
    0

    Default

    Unfortunately, I'm still stuck. Using ...

    codebase="http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#Version=1,6,0,22"

    and ...

    codebase="http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#Version=1,6,0,0"

    ... yeilded the same result; it installs 1.6.0.18 instead of 1.6.0.22. :(

    Incidentally, it's funny you should ask about other platforms. Actually, these are my tags as they appear in my applet webpage:
    XML Code:
    	<object 
    			classid="java:com.components.GameAppletWrapper.class" 
    			width="300" 
    			height="300"
    			archive="X.jar">
    		<param name="type"	value="application/x-java-applet;version=1.6"/>
    		<param name="codebase"	value="."/>
    		<param name="archive"	value="X.jar"/>
    		<param name="code"	value="com.components.GameAppletWrapper"/>
    		<object 
    				classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" 
    				width="300" 
    				height="300" 
    				codebase="http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab">
    			<param name="codebase"	value="."/>
    			<param name="archive"	value="X.jar"/>
    			<param name="code"	value="com.components.GameAppletWrapper"/>
    			<param name="type"	value="application/x-java-applet;version=1.6"/>
    			<embed 	type="application/x-java-applet;version=1.6"
    					width="300" 
    					height="300" 
    					code="com.components.GameAppletWrapper" 
    					codebase="."
    					archive="X.jar"
    					pluginspage="http://www.java.com/en/download/index.jsp">
    			</embed> 
    		</object>
    	</object>
    So, it seems that this covers my behind when it comes to Windows' IE, Firefox, and Chrome, but as for other platforms I really have no clue what would happen! Actually, I think the applet itself would fail. Some of it's code relies on the existence of having one of the following enviroment variables: USERPROFILE, APPDATA, TEMP, TMP. If you know of a slick way to get a temp area for all platforms, I've be greatly in your debt. My problem here is that I'm only savvy on Windows (because it's the only comp I've got for now).

    Anyway, if you (or anyone) has any more thoughts on how to get 1.6.0.22 to download (and not 1.6.0.18), I'd be anxious to try them out!

  5. #5
    ellonnic is offline Member
    Join Date
    Nov 2010
    Posts
    3
    Rep Power
    0

    Default

    I thought I'd also add the bug ID where the 1.6.0.18 install crashes:

    Bug ID: 6925315 After installing jre, jaureg.exe causes a runtime exception

  6. #6
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,254
    Rep Power
    19

Similar Threads

  1. Program crashes: NullPointerException
    By d4nce2thisbeat in forum New To Java
    Replies: 5
    Last Post: 11-20-2010, 09:33 PM
  2. Swing GUI crashes (using JNI)
    By divs in forum AWT / Swing
    Replies: 4
    Last Post: 06-10-2010, 08:04 AM
  3. Multithreaded server crashes
    By skarosg3 in forum Threads and Synchronization
    Replies: 7
    Last Post: 05-26-2010, 09:24 AM
  4. Java crashes
    By Nicole in forum Advanced Java
    Replies: 2
    Last Post: 04-06-2009, 07:22 AM
  5. Java Crashes on Mac 10.3.9 not sure how to update
    By patricknowow in forum New To Java
    Replies: 1
    Last Post: 11-30-2007, 03:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •