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 52435 - XTest crashes with Cannot Find Java message on Mac OS X
Summary: XTest crashes with Cannot Find Java message on Mac OS X
Status: CLOSED FIXED
Alias: None
Product: www
Classification: Unclassified
Component: Builds & Repositories (show other bugs)
Version: 4.x
Hardware: Macintosh Mac OS X
: P2 blocker (vote)
Assignee: Michal Zlamal
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-14 20:55 UTC by Martin Schovanek
Modified: 2006-03-24 13:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch tries to find jdkhome in java.home or its parent. (2.30 KB, patch)
2004-12-20 15:58 UTC, Jiri Skrivanek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Schovanek 2004-12-14 20:55:02 UTC
[#200412121900, jdk1.4.2_05]

To reproduce:
-------------
1) checkout web/jspsyntax module
2) go to: web/jspsyntax/test folde
2) run: 'ant -Dxtest.testtype=qa-functional'

ERROR: IDE does not start because the -jdkhome
options points into wrong folder:
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2
it should be:
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home

WORKAROUND: Create dummy tools.jar in the
.../Home/lib/ folder.
Comment 1 Jiri Skrivanek 2004-12-20 15:57:01 UTC
In fact it is a problem in nbbuild/default.xml#setup-jdkhome. I will
attach a patch.
Comment 2 Jiri Skrivanek 2004-12-20 15:58:15 UTC
Created attachment 19366 [details]
Patch tries to find jdkhome in java.home or its parent.
Comment 3 Martin Schovanek 2004-12-20 16:32:59 UTC
I tested the patch on my Mac OS X, tests execution and building Nb are
working.
Comment 4 Michal Zlamal 2004-12-21 07:18:53 UTC
Applied proposed patch.

Checking in default.xml;
/cvs/nbbuild/default.xml,v  <--  default.xml
new revision: 1.14; previous revision: 1.13
done
Comment 5 Jiri Skrivanek 2004-12-21 08:57:33 UTC
Thanks.