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 153821 - Glitch in JDK detection prevents clean and build
Summary: Glitch in JDK detection prevents clean and build
Status: RESOLVED WORKSFORME
Alias: None
Product: www
Classification: Unclassified
Component: Builds & Repositories (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: nbbuild-issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-25 04:09 UTC by charlweed
Modified: 2008-11-25 04:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log from ant (6.71 KB, text/plain)
2008-11-25 04:21 UTC, charlweed
Details
command log (250.13 KB, text/plain)
2008-11-25 04:27 UTC, charlweed
Details
command log (166 bytes, text/plain)
2008-11-25 04:27 UTC, charlweed
Details

Note You need to log in before you can comment on or make changes to this bug.
Description charlweed 2008-11-25 04:09:57 UTC
I have a fresh install of Windows  XP x86,
Apache Ant version 1.7.1 compiled on June 27 2008
Q:\projects\3rdparty\netbeans\main\nbbuild>java -version
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02)
Java HotSpot(TM) Client VM (build 1.5.0_16-b02, mixed mode, sharing)

NetBeans bootstrap fails, preventing even clean, much less build:

Q:\projects\3rdparty\netbeans\main\nbbuild>ant clean
Buildfile: build.xml
[available] DEPRECATED - <available> used to override an existing property.
[available]   Build file should not reuse the same property name for different values.

-jdk-pre-preinit:

-jdk-preinit:

-jdk-warn:
     [echo] Warning: nbjdk.active=${nbjdk.active} or nbjdk.home=C:\Program Files\Java\jdk1.5.0_13 is an invalid Java
platform; ignoring and using C:\Progra~1\Java\jdk1.5.0_16

-jdk-presetdef-basic:

-jdk-default:

-jdk-init:

assure-ant:

-load-build-properties:

bootstrap:

BUILD FAILED
Q:\projects\3rdparty\netbeans\main\nbbuild\build.xml:92: You need JDK 1.5 to build NetBeans

Total time: 0 seconds
Q:\projects\3rdparty\netbeans\main\nbbuild>
Comment 1 charlweed 2008-11-25 04:21:32 UTC
Created attachment 74107 [details]
log from ant
Comment 2 charlweed 2008-11-25 04:23:59 UTC
Looks like this is caused by someone hardcoding "jdk1.5.0_13" into a build script. I changed the name of  my 1.5 jdk
from jdk1.5.0_16 to jdk1.5.0_13 and bootstrap worked again.
Comment 3 charlweed 2008-11-25 04:27:08 UTC
Created attachment 74108 [details]
command log
Comment 4 charlweed 2008-11-25 04:27:38 UTC
Created attachment 74109 [details]
command log
Comment 5 Jesse Glick 2008-11-25 04:38:55 UTC
 [property] Loading Q:\projects\3rdparty\netbeans\main\nbbuild\user.build.properties
Setting project property: nbjdk.home -> C:\Program Files\Java\jdk1.5.0_13

says that you defined the location of JDK 5u13 yourself - yet that dir does not exist. Delete or fix this definition.