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 72467 - Unable to set different Java platform on Windows
Summary: Unable to set different Java platform on Windows
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-09 13:31 UTC by Tomas Danek
Modified: 2006-02-14 13:53 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 Tomas Danek 2006-02-09 13:31:20 UTC
20060207 trunk (as well as 5.0 + nbms with 5.0u1), WIN XP

1) open in ide e.g. apisupport/project
2) invoke properties, choose another java platform than default
3) invoke build
4) in output you get: 

Warning: nbjdk.active=${nbjdk.active} or nbjdk.home=C:\Program
Files\Java\jdk1.5.0_03 is an invalid Java platform; ignoring and using
C:\Program Files\Java\jdk1.6.0
Comment 1 Jesse Glick 2006-02-09 17:41:39 UTC
Probably same in 5.0u1 since I haven't touched anything related since branch.

Works fine for me on Linux, is this Windows-specific? Does it happen to everyone
using Windows or just you? What does Ant verbose output from
jdk.xml#-jdk-preinit say?
Comment 2 Jesse Glick 2006-02-09 19:42:50 UTC
Yup, jdk.xml was wrong. Not specific to nb.org modules. Good thing someone found
this - apparently no one in QA had tested this major feature on Windows before?

Checking in jdk.xml;
/shared/data/ccvs/repository/nbbuild/jdk.xml,v  <--  jdk.xml
new revision: 1.4; previous revision: 1.3
done
Comment 3 Tomas Danek 2006-02-10 12:58:36 UTC
20060210 trunk build
verified on external module. Won't be backported to 50u1?
Comment 4 Jesse Glick 2006-02-10 22:19:57 UTC
Checking in jdk.xml;
/shared/data/ccvs/repository/nbbuild/jdk.xml,v  <--  jdk.xml
new revision: 1.3.2.1; previous revision: 1.3
done
Comment 5 Tomas Danek 2006-02-13 13:33:42 UTC
does not work for me in 5.0 + u1 harness (from nbm built on 2006/02/13):

Warning: nbjdk.active=Java_HotSpot_TM__Client_VM_1.5.0_03-b06 or
nbjdk.home=C:\Program Files\Java\jdk1.5.0_03 is an invalid Java platform;
ignoring and using C:\Program Files\Java\jdk1.6.0
Comment 6 Jesse Glick 2006-02-13 15:56:08 UTC
I backported the same fix I put in the trunk. Can you please provide a little
more information about the problem? Is the new jdk.xml being used? Detailed log
file?
Comment 7 Tomas Danek 2006-02-14 13:52:51 UTC
My fault,i did not notice that newly built harness nbm does not override older
update of harness. After installing that nbm into clean nb50 fcs fix works fine.
Comment 8 Tomas Danek 2006-02-14 13:53:35 UTC
verified.