Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Now Available: J2SE 5.0 Release 3 Developer Preview 3




On Oct 13, 2005, at 12:40 PM, Greg Guerin wrote:

Scott Palmer wrote:

From the JNLP spec:

The j2se element specifies what Java 2 SE Runtime Environment (JRE)
versions an application is supported on, as well as standard parameters to
the Java Virtual Machine. If several JREs can are specified, this indicates
a prioritized list of the supported JREs, with the most preferred version
first. For example:
<j2se version="1.3" initial-heap-size="64m"/>
<j2se version="1.4+"/

Thank you, Scott. At last, someone who's read the JNLP spec. I've tried
to make this point several times, apparently without success:
a JNLP file is not limited to a single J2SE version.


Perhaps citing the spec will finally settle this.

....

So assuming I have the syntax correct as shown...

  1. If the above has been tried, then it should work.

2. If it has not been tried, then it should be tried.

I tried it this morning. The syntax Scott proposed does indeed do the job.


You can verify it yourself by doing this:

-- Start with a 1.4.2 system, and then install 1.5.
-- Run your application with the j2se tags as shown
--> See that it picks 1.5.0.

-- Now, move aside 1.5 (into the parent directory, for example.)
-- Run the app again
-- It launches with 1.4.2.

You could try testing with 1.4.2 first, but then you don't have the preferred VM list that gets generated by using Cache Viewer, so it's not the same test.

Either ordering of the preferred VM versions in Java Preferences will pick 1.5 first, if available, then 1.4.

Scott

------------------
Scott Kovatch
Apple Computer
Java Runtime Classes
Cleveland Hts, OH
email@hidden

I am Scott Kovatch, and I approved this message.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: Now Available: J2SE 5.0 Release 3 Developer Preview 3 (From: Greg Guerin <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.