From owner-freebsd-java@FreeBSD.ORG Mon May 7 16:07:43 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 D1B2B16A400 for ; Mon, 7 May 2007 16:07:43 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (gerbercreations.com [71.39.140.16]) by mx1.freebsd.org (Postfix) with ESMTP id 9C62E13C4B9 for ; Mon, 7 May 2007 16:07:43 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.1/8.13.3) with ESMTP id l47G7Bpm037591; Mon, 7 May 2007 09:07:11 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.1/8.13.3/Submit) id l47G7AiR037590; Mon, 7 May 2007 09:07:10 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Mon, 7 May 2007 09:07:09 -0700 From: Greg Lewis To: Dominic Bishop Message-ID: <20070507160709.GC36747@misty.eyesbeyond.com> References: <20070430023320.5342813C457@mx1.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070430023320.5342813C457@mx1.freebsd.org> User-Agent: Mutt/1.4.2.2i Cc: freebsd-java@freebsd.org Subject: Re: 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, 07 May 2007 16:07:43 -0000 On Mon, Apr 30, 2007 at 03:06:48AM +0100, Dominic Bishop wrote: > 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 Looks like the appropriate classes aren't being compiled in. That might be fixable by simply finding where they get compiled and enabling it, but its more likely that there is a native piece associated with those tools which hasn't been ported. You'd need to dig into the code to find out for sure. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org