Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (533)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  How to make Java Webstart to use JRE 1.4.2 ?  (Read 2495 times)
0 Members and 1 Guest are viewing this topic.
Offline Bombadil

Senior Member





« Posted 2004-02-24 15:06:48 »

How can I ensure that a Webstart application uses at least Java 1.42 (with the sun.misc.perf Timer) on the client's machine?
I've read some articles about this topic here in the forum and on SUN's server, but I can't figure out.

This doesn't work...:
1  
2  
3  
4  
5  
6  
..
<resources>
  <j2se version="1.42"/>
  <jar href="Application.jar" main="true"/>
</resources>
..
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #1 - Posted 2004-02-24 16:34:58 »

That's because there is no such thing as version 1.42.  You mean 1.4.2

"1.4.2*" should work

Offline Bombadil

Senior Member





« Reply #2 - Posted 2004-02-24 16:39:35 »

Quote
That's because there is no such thing as version 1.42.  You mean 1.4.2

"1.4.2*" should work

OK many thanks. :)  I'll try "1.4.2*" then.
Is it neccessary to specify the download URL? Hope not... (After all, Webstart is from Sun? ;-)
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #3 - Posted 2004-02-24 16:51:08 »

Read the WebStart docs.. the download URLs to use are all documented.  I think you do need to specify it - but Sun provides the URL to their JRE in the docs.

Offline Bombadil

Senior Member





« Reply #4 - Posted 2004-02-25 13:56:42 »

Quote
Read the WebStart docs.. the download URLs to use are all documented.  I think you do need to specify it - but Sun provides the URL to their JRE in the docs.

I've read the docu before I started this topic.

"1.4.2*" doesn't work if I don't specifiy the download URL of the JRE.

With "1.4.2*", Webstart reports the following error:
Quote

Errorcode 11 (11  Could not locate requested version) .. ressource: (http://java.sun.com/products/autodl/j2se, 1.4.2*)
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #5 - Posted 2004-02-25 14:53:21 »

Perhaps this page needs updating, but it says the latest VM available for auto dl is 1.4.0:
http://java.sun.com/products/javawebstart/developers.html#auto

Offline Bombadil

Senior Member





« Reply #6 - Posted 2004-02-25 15:14:47 »

Quote
Perhaps this page needs updating, but it says the latest VM available for auto dl is 1.4.0:
http://java.sun.com/products/javawebstart/developers.html#auto

Yes, lost in document space... :-(  My quoted URL doesn't say such, I think...
Anyway, your page is helpful, thanks for the URL.
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #7 - Posted 2004-02-25 15:55:17 »

Quote
Perhaps this page needs updating, but it says the latest VM available for auto dl is 1.4.0:
http://java.sun.com/products/javawebstart/developers.html#auto


(wonders if Sun is somewhere making the assumption that you'd only ever request a major version, and if you ask for 1.4.0+ it'll actually give you 1.4.2 Huh)

It is truly catastrophic if 1.4.0 is the latest available - many apps *will not run* on 1.4.0 nor 1.4.1 because of major bugs (I know of lots in NIO that are complete show stoppers Sad, but have also encountered some outside of NIO, IIRC in XML parsing? ).

malloc will be first against the wall when the revolution comes...
Offline Orangy Tang

JGO Kernel


Medals: 56
Projects: 11


Monkey for a head


« Reply #8 - Posted 2004-02-25 16:56:25 »

Er, I may be wrong but didn't this come up a while ago? I thought the verdict was that webstart only allows you to specify a major version.

Edit: See near the bottom of this thread for some more info on minor numbers: http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=cluebies;action=display;num=1070025482;start=

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #9 - Posted 2004-02-25 22:38:03 »

From the WebStart docs at http://java.sun.com/j2se/1.4.2/docs/guide/jws/developersguide/syntax.html#resources:
Quote
The version attribute refers, by default, to a platform (specification) version of the Java 2 platform. Currently defined platform version are 1.2, 1.3, and 1.4. (A platform version may optionally contain a micro version number; e.g., 1.4.2.)


Exact product versions (implementation versions) may also be specified?e.g., 1.3.1_01 or 1.4.2-beta by Sun Microsystems, Inc.?by including the href attribute. E.g.,



<j2se version="1.3.1_01" href="http://java.sun.com/products/autodl/j2se"/>


or


<j2se version="1.4.2-beta" href="http://java.sun.com/products/autodl/j2se"/>

In fact the example file at the top of that page explicitly uses "1.4.2" as the version string.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline cfmdobbie

Senior Member


Medals: 1


Who, me?


« Reply #10 - Posted 2004-02-25 23:06:39 »

Quote
In fact the example file at the top of that page explicitly uses "1.4.2" as the version string.


Agreed, but I remember that discussion and conclusion as well.  Is the addition of the minor number a new thing, thus maybe not supported by the client's version of WebStart?

Three guesses as to why the docs only list 1.3.0 and 1.4.0 as available: (1) to maintain compatibility with older WebStart versions, (2) because the developer "shouldn't" be targetting a minor version, no matter how valid their reason, or (3) policy changed but no one told the people who make the releases available... Grin

Hellomynameis Charlie Dobbie.
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #11 - Posted 2004-02-25 23:53:14 »

Quote


Agreed, but I remember that discussion and conclusion as well.  Is the addition of the minor number a new thing, thus maybe not supported by the client's version of WebStart?

I don't think that aspect is up to the client - at least not in this context.  I assume that the version string is passed verbatim as a parameter to the download URL.  So it would be up to the server side to choose the matching JRE to download.  I don't know if it actually works that way, but it seems to be the most logical implementation.

Offline Bombadil

Senior Member





« Reply #12 - Posted 2004-02-27 06:57:38 »

OK. I've uploaded a small example Webstart. It says "1.4.2*" as version string plus specifies the auto-download URL (href).
The Jar just uses the sun.misc.Perf timer to output a value. Does it work for you (Win32, Apple, Linux, ..) ?
Here's the jnlp

(In case the freespace server ignores any MIME tpye please try to unpack and start the zipped version of the same jnlp file.)
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #13 - Posted 2004-02-27 12:30:00 »

Runs on Mac OS X 10.3.2 JRE 1.4.2_03

Offline Bombadil

Senior Member





« Reply #14 - Posted 2004-02-28 04:28:13 »

Thanks Swpalmer for testing it. A friend of mine with an Java 1.4.0 on Win32 tested it also and it worked.

So we can conclude the version "1.4.2*" string plus the href URL does do the job.
(Btw. without the href URL, Javawebstart reports an error. Strange enough the error message lists the URL which we have to specifiy in the script...)

So the auto-download part of the jnlp script now reads:
1  
2  
3  
4  
<resources>
  <j2se version="1.4.2*" href="http://java.sun.com/products/autodl/j2se"/>
  <jar href="Yourapplikation.jar" main="true"/>
</resources>
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

pw (26 views)
2014-07-24 01:59:36

Riven (25 views)
2014-07-23 21:16:32

Riven (20 views)
2014-07-23 21:07:15

Riven (22 views)
2014-07-23 20:56:16

ctomni231 (51 views)
2014-07-18 06:55:21

Zero Volt (46 views)
2014-07-17 23:47:54

danieldean (37 views)
2014-07-17 23:41:23

MustardPeter (40 views)
2014-07-16 23:30:00

Cero (57 views)
2014-07-16 00:42:17

Riven (55 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!