Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 79441 invoked from network); 20 Dec 2007 11:54:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Dec 2007 11:54:04 -0000 Received: (qmail 35064 invoked by uid 500); 20 Dec 2007 11:53:53 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 35039 invoked by uid 500); 20 Dec 2007 11:53:53 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 35030 invoked by uid 99); 20 Dec 2007 11:53:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Dec 2007 03:53:53 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Dec 2007 11:53:39 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 14974714276 for ; Thu, 20 Dec 2007 03:53:43 -0800 (PST) Message-ID: <8249957.1198151623073.JavaMail.jira@brutus> Date: Thu, 20 Dec 2007 03:53:43 -0800 (PST) From: "Vasily Zakharov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-4501) [drlvm][netbeans] NetBeans Profiler doesn't recognize DRLVM In-Reply-To: <11498170.1184861946359.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-4501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12553650 ] Vasily Zakharov commented on HARMONY-4501: ------------------------------------------ Verified, yes, the issue is still actual. > [drlvm][netbeans] NetBeans Profiler doesn't recognize DRLVM > ----------------------------------------------------------- > > Key: HARMONY-4501 > URL: https://issues.apache.org/jira/browse/HARMONY-4501 > Project: Harmony > Issue Type: Bug > Components: App-Oriented Bug Reports, DRLVM > Reporter: Vasily Zakharov > Priority: Minor > > NetBeans Profiler doesn't recognize Harmony as a Java platform usable for profiling. > The problem was detected while running NetBeans 5.5 and 5.5.1 on Windows, with NetBeans Profiler installed. > How to reproduce: > - Install NetBeans. > - Install NetBeans Profiler. > - Start NetBeans (on RI). > - Add RI 1.4, 1.5, 1.6, BEA 1.4, 1.5, and Harmony DRLVM to the Java Platform Manager (see HARMONY-4498 for instructions). > - Go to Tools - Options - Profiler. > - Open the 'Profiler Java Platform' drop-down list. > - RI 1.5, 1.6, BEA 1.5 is there, RI 1.4, BEA 1.4 and Harmony are not there. > When adding a JDK to Java Platform Manager, NetBeans performs a 'Detecting JDK' operation where it calls the JDK and finds out its features. It seems that only JDKs with certain features get to the Profiler Java Platform list. > I replaced java.exe with a dummy executable that dumps its parameters to a file. It revealed that Detecting JDK runs the following command line: > java.exe -classpath "C:\Program Files\netbeans-5.5.1\ide7\modules\ext\org-netbeans-modules-java-j2seplatform-probe.jar" org.netbeans.modules.java.j2seplatform.wizard.SDKProbe > SDKProbe class, as seen from its source, simply dumps the system properties to the specified file. > So, it's very probable that the reason for NetBeans Profiler not recognizing Harmony lays in values of some system properties set by VMs. Otherwise, the situation is unclear and needs additional investigation. Probably Profiler expects "1.5" or "1.6" substring in java.vm.version property. > This issue can be a bug in NetBeans (binding to RI/BEA too tightly), or a compatibility issue in DRLVM. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.