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 144253 - IDE for testing is launched on wrong Java platform
Summary: IDE for testing is launched on wrong Java platform
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: xtest (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-18 12:51 UTC by Tomas Danek
Modified: 2008-08-26 10:36 UTC (History)
5 users (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 2008-08-18 12:51:56 UTC
steps to reproduce:
- run some qa-func. tests from BTD against full IDE
- Tool|Java platforms in tested IDE -> Broken java platform -> platform folder is pointing to jre subfolder of JDK

Please fix this ASAP, lot of our tests are failing because of this.
Comment 1 Jaroslav Tulach 2008-08-18 16:13:29 UTC
Since when this is failing?
Comment 2 Tomas Danek 2008-08-18 16:27:03 UTC
I'm suspicious that ever since simpletests migration. I remember we talked about this offline long time ago (before
simpletests merge), but those days we were interested in rewriting test, not that tests are failing.....now we are
stabilizing tests-that's just why this bug is kind of 'resurrected'..
Comment 3 Jesse Glick 2008-08-18 23:16:10 UTC
Perhaps an issue with JavaPlatformManager in how it guesses the "default Java platform"?
Comment 4 Tomas Zezula 2008-08-19 07:52:12 UTC
Default platform doesn't do any detection of default platform, it simply returns the platform the IDE is running on.
The problem is that the tests are started using JRE not JDK.
But as far as I remember Jarda did some change in DefaultPlatform to step up from JRE to JDK.

changeset:   86407:6606468f1482
user:        Jaroslav Tulach <jtulach@netbeans.org>
date:        Mon Jun 23 15:13:12 2008 +0200
summary:     #137552: Fallback to java.home if jdk.home not preset
Comment 5 Jaroslav Tulach 2008-08-19 15:22:05 UTC
Please transfer the steps to reproduce into some meaningful language. I have no idea what BTD is neither what to 
start:
- run some qa-func. tests from BTD against full IDE
- Tool|Java platforms in tested IDE -> Broken java platform -> platform folder is pointing to jre subfolder of JDK
Comment 6 Tomas Danek 2008-08-19 16:34:52 UTC
- download and run binary test distribution 
- run whatever test you want, point is just to bring up IDE
- regardless test, in tested IDE choose Tools | Java Platforms 
Comment 7 Jaroslav Tulach 2008-08-19 17:05:06 UTC
changeset:   96830:a02ac5da3cb6
tag:         tip
user:        Jaroslav Tulach <jtulach@netbeans.org>
date:        Tue Aug 19 18:04:03 2008 +0200
summary:     #144253: I guess this check for MacOSX shall be reverted. It does not make sense to seek for JDK in .. 
when on Mac the JDK is somewhere else
Comment 8 Quality Engineering 2008-08-20 05:33:53 UTC
Integrated into 'main-golden', available in build *200808200201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/a02ac5da3cb6
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #144253: I guess this check for MacOSX shall be reverted. It does not make sense to seek for JDK in .. when on Mac the JDK is somewhere else
Comment 9 Tomas Danek 2008-08-26 10:36:32 UTC
thanks. Works fine now. Verified.