From owner-freebsd-java@FreeBSD.ORG Mon Apr 30 02:33:20 2007 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9870116A401 for ; Mon, 30 Apr 2007 02:33:20 +0000 (UTC) (envelope-from dom@bishnet.net) Received: from carrick.bishnet.net (carrick.bishnet.net [84.234.17.56]) by mx1.freebsd.org (Postfix) with ESMTP id 5342813C457 for ; Mon, 30 Apr 2007 02:33:20 +0000 (UTC) (envelope-from dom@bishnet.net) Received: from cpc1-warw1-0-0-cust384.sol2.cable.ntl.com ([86.20.169.129] helo=magellan.dom.bishnet.net ident=mailnull) by carrick.bishnet.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.66 (FreeBSD)) (envelope-from ) id 1HiLGF-000308-HD for freebsd-java@freebsd.org; Mon, 30 Apr 2007 03:05:07 +0100 Received: from monster.dom.bishnet.net ([192.168.3.100] helo=deimos) by magellan.dom.bishnet.net with esmtp (Exim 4.66 (FreeBSD)) (envelope-from ) id 1HiLGE-0009lp-DN for freebsd-java@freebsd.org; Mon, 30 Apr 2007 03:05:06 +0100 From: "Dominic Bishop" To: Date: Mon, 30 Apr 2007 03:06:48 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 thread-index: AceKzDV0N/5y8dIVQGi0Kf0+4mJenA== X-Bishnet-MailScanner-Information: Contact postmaster@bishnet.net X-Bishnet-MailScanner-VirusCheck: Found to be clean X-Bishnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=0.042, required 5, autolearn=not spam, AWL -0.09, BAYES_50 0.00, FORGED_RCVD_HELO 0.14, SPF_PASS -0.00) X-Bishnet-MailScanner-From: dom@bishnet.net Message-Id: <20070430023320.5342813C457@mx1.freebsd.org> Subject: diablo-jdk and jmap etc tools X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Apr 2007 02:33:20 -0000 I'm currently trying to analyse memory usage etc in some java applications running on FreeBSD and whilst googling came across mention of tools such as jmap, jstack and so on in the JDK distribution. I cannot however get any of these to work, I set my JAVA_HOME environment to the jdk dir but still get the following error with all of them (or equivalent error anyway): %jmap Exception in thread "main" java.lang.NoClassDefFoundError: sun/jvm/hotspot/tools/Jmap Have I forgotten to do something or is it just the case that these tools are non-functional on FreeBSD. I did briefly browse the JDK jars on the machine and couldn't actually find the class it is looking for, or the equivalent ones for other tools like jstack, jsadebug etc which fail with similar messages. System is: FreeBSD 6.2-RELEASE-p3 i386 diablo-jdk-1.5.0.07.01_3