From owner-freebsd-hackers Sun Jan 18 14:16:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA18955 for hackers-outgoing; Sun, 18 Jan 1998 14:16:09 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp04.primenet.com (smtp04.primenet.com [206.165.6.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA18836 for ; Sun, 18 Jan 1998 14:14:38 -0800 (PST) (envelope-from tlambert@usr04.primenet.com) Received: (from daemon@localhost) by smtp04.primenet.com (8.8.8/8.8.8) id PAA24983; Sun, 18 Jan 1998 15:14:34 -0700 (MST) Received: from usr04.primenet.com(206.165.6.204) via SMTP by smtp04.primenet.com, id smtpd024976; Sun Jan 18 15:14:31 1998 Received: (from tlambert@localhost) by usr04.primenet.com (8.8.5/8.8.5) id PAA04062; Sun, 18 Jan 1998 15:14:28 -0700 (MST) From: Terry Lambert Message-Id: <199801182214.PAA04062@usr04.primenet.com> Subject: Re: dladdr hax To: hasty@rah.star-gate.com (Amancio Hasty) Date: Sun, 18 Jan 1998 22:14:28 +0000 (GMT) Cc: jdp@polstra.com, hackers@FreeBSD.ORG In-Reply-To: <199801181942.LAA19375@rah.star-gate.com> from "Amancio Hasty" at Jan 18, 98 11:42:07 am X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk > > > Thats an interesting approach so what happens to a vnode of a > > > running executable when is mark for delete? I kind doubt that the > > > vnode goes away while the image is still executing 8) > > > > Of course not. But there is no longer a pathname for it. Actually, there is; it's in /proc. 8-). I kind of doubt that Classes.zip is located relative to /proc, however. 8-(. > So whats wrong with just simply calling getwcd in the main of the > program? > > That should get us the current working directory which is what is > needed by java to locate its class libraries. Because it will return the directory name of where you ran it from, not the directory name of where the image that is executng is located? 8-) 8-). The classes are located relative to the image, not relative to where the image was run from... The real PITA here is that most of the kludge workarounds being discussed will not allow the creation of a correct JRE for a java applet that is being run by an execution class loader from the kernel. So they aren't even good workarounds, since they preclude future work. And that's a bad thing. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.