From owner-freebsd-hackers Sun Mar 2 00:24:10 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id AAA28881 for hackers-outgoing; Sun, 2 Mar 1997 00:24:10 -0800 (PST) Received: from obiwan.aceonline.com.au (obiwan.aceonline.com.au [203.103.90.67]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id AAA28876 for ; Sun, 2 Mar 1997 00:24:05 -0800 (PST) Received: from localhost (adrian@localhost) by obiwan.aceonline.com.au (8.8.5/8.8.5) with SMTP id WAA02071 for ; Sun, 2 Mar 1997 22:27:32 +0800 (WST) Date: Sun, 2 Mar 1997 22:27:32 +0800 (WST) From: Adrian Chadd To: hackers@freebsd.org Subject: Re: Java binary support in FreeBSD ... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > As Adrian Chadd wrote: > > > Again - its just one file (imgact_java.c) which has the code to recognise > > java binaries, and then do some magic to execute it with the right > > interpreter and command args, etc. > > So easy said -- so hard to accomplish. > > If i'm not very mistaken, the image activator gets a vnode, but it > doesn't have the slightest idea about the pathname that caused this > vnode reference. (Heck, the pathname might even no longer exist at > all already.) However, since the java interpreter doesn't allow > reading off stdin, it _needs_ to be passed a pathname, and even worse, > it _needs_ to be done by tweaking the $CLASSPATH environment setting. > That's quite a little more than 15 minutes of work. > Well, I was going to pass the java interpreter the classpath on the command line, eg : say you're running /home/adrian/test/HelloWorld.class it expands to this: $JAVAINTERPRETER -classpath $JAVACLASSPATH:/home/adrian/test HelloWorld Back to fiddling. Adrian.