Date: Sun, 2 Mar 1997 22:27:32 +0800 (WST) From: Adrian Chadd <adrian@obiwan.aceonline.com.au> To: hackers@freebsd.org Subject: Re: Java binary support in FreeBSD ... Message-ID: <Pine.BSF.3.95q.970302222452.2034C-100000@obiwan.aceonline.com.au> In-Reply-To: <Mutt.19970301123934.j@uriah.heep.sax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.970302222452.2034C-100000>