This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 121819 - Run JNLP does not use selected JDK on Windows
Summary: Run JNLP does not use selected JDK on Windows
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-13 14:38 UTC by Jesse Glick
Modified: 2011-04-14 08:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2007-11-13 14:38:37 UTC
The logic to select a version of javaws to run based on the selected JDK does not work on Windows.
Comment 1 Jesse Glick 2007-11-13 14:39:51 UTC
Checking in jnlp.xml;
/shared/data/ccvs/repository/apisupport/harness/release/jnlp.xml,v  <--  jnlp.xml
new revision: 1.50; previous revision: 1.49
done
Comment 2 Jesse Glick 2007-11-13 14:55:27 UTC
Seems somehow unreliable even with the fix. javaws.exe behaves strangely - sometimes uses the version of Java it is part
of, sometimes uses the default Java in the registry. Can't figure why. And if the program fails, e.g.
jdk5\jre\bin\javaws.exe can print

Bad installation. Error invoking Java VM (execv) 
C:\Program Files\Java\jre1.6.0_03\bin\javaw.exe: No such file or directory
Java Web Start splash screen process exiting .....
tLast WinSock Error: 0
Result: -1

after actually running the program under 1.5! Anyway, patch at least tries to invoke the right version.

(Encountered while trying to reproduce issue #121777 with IDE running on JDK 6u3 and target platform for suite set to
JDK 5u14.)
Comment 3 Quality Engineering 2011-04-14 08:38:40 UTC
Integrated into 'main-golden', will be available in build *201104140401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/9226c9d55e66
User: Jesse Glick <jglick@netbeans.org>
Log: #121819 cont'd: even Unix JREs/JDKs starting with 1.5 put the javaws executable in the normal bin directory, not a javaws subdir.