Mailing Lists: Apple Mailing Lists

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

WebStart and app title with 1.6 Update 2



We are seeing something very odd. Since applying update 2, IFF J2SE 6 is made the preferred VM (in Java Preferences), WebStart does not place the application title (from the JNLP INFORMATION block) as the visible name on the application menu and on the Dock tile. Instead, it places com.sun.javaws.Main as the name. If J2SE 5 (32-bit or 64-bit) is made the preferred VM the correct title is used.

The relevant portions of the JNLP file are:

<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for Elluminate Live! application -->
<jnlp
  spec="1.0+"
  codebase=(REDACTED)>
  <information>
    <title>Elluminate Live!</title>
    <vendor>Elluminate Inc</vendor>
    <description>Elluminate Live! Virtual Room</description>
    <icon href="elive128.gif"/>
  </information>
  <security>
    <all-permissions/>
  </security>
  <resources>
    <property name="apple.laf.useScreenMenuBar" value="true"/>
    <property
	name="apple.awt.window.position.forceSafeProgrammaticPositioning"
	value="false"/>
    <j2se version="1.4+" initial-heap-size="32m" max-heap-size="96m"/>
...
  </resources>
  <application-desc main-class="com.elluminate.live.full.Main">
    <argument>-url</argument>
    <argument>(REDACTED)</argument>
  </application-desc>
</jnlp>

I also noticed that the javawebstart.version system property (displayed in our about box) is "javaws-1.6.0_07" when the J2SE 6 VM is first in the preferences list, and "javaws-1.5.0_16" when J2SE 5 (32-bit) is first. A previous post from Mike Swingler had stated:

> On 64-bit Intel machines, all Web Start launching goes though the Java
> SE 6 deploy.jar and javaws.jar, even if it is targeting an older JVM
> and set of runtime classes. On 32-bit capable hardware all Web Start
> launching goes though the J2SE 5.0 deploy.jar and javaws.jar.


I find this confusing, shouldn't I be seeing javaws-1.6.0_07 for javawebstart.version in both cases? Perhaps the property is wrong? Could it be showing the VM running the javaws code (which I would find counter-intuitive, I would expect the JWS version to be the version of the javaws code being run -- I would also be surprised if J2SE 5 could run the 6.0 JWS, I would expect it to require J2SE 6 JRE features).

It looks to me like a completely different version of JWS is being run depending on the Java Preferences, and the J2SE 6 one has problems with the application title.
_______________________________________________
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


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.