Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how does jnlp file determine which javaws.exe to use?

843802Jul 25 2008 — edited Jul 27 2008
I have a jnlp file for an application that looks similar to the one below. I notice after downloading that the desktop shortcut created uses the Windows javaws.exe rather than Sun's. I see this in the properties of the shortcut:

C:\WINDOWS\system32\javaws.exe "C:\Documents and Settings\Lynn\Application Data\Sun\Java\Deployment\cache\6.0\62\47dec6fe-1c6e0861"

I would expect it to use the javaws.exe in C:\Program Files\Java\jdk1.6.0\bin. Is there a way to set this?
<jnlp spec="1.0+" codebase="http://localhost/">
  <information>
    <title>Title</title>
    <vendor>Vendor</vendor>
    <homepage href="http://localhost/index.jsp"/>
    <description>Desc</description>
    <description kind="short">Desc Short</description>
    <description kind="tooltip">Desc Tooltip</description>
    <icon href="http://localhost/app/images/logo.png" kind="default"/>
    <icon href="http://localhost/app/images/splash.png" kind="splash"/>
    <shortcut online="true">
      <desktop/>
      <menu submenu="Vendor/App"/>
    </shortcut>
    <offline-allowed/>
  </information>
  <security>
    <j2ee-application-client-permissions/>
  </security>
  <update check="always" policy="always"/>
  <resources>
    <java max-heap-size="1073741824" java-vm-args="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5025" href="http://java.sun.com/products/autodl/j2se" version="1.5+"/>
    <jar href="http://localhost/lib/appS.jar" download="eager" main="false"/>
  </resources>
  <application-desc/>
</jnlp>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 24 2008
Added on Jul 25 2008
2 comments
319 views