From owner-freebsd-hackers Fri Feb 28 18:07:38 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id SAA04130 for hackers-outgoing; Fri, 28 Feb 1997 18:07:38 -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 SAA04125 for ; Fri, 28 Feb 1997 18:07:33 -0800 (PST) Received: from localhost (adrian@localhost) by obiwan.aceonline.com.au (8.8.5/8.8.5) with SMTP id QAA00275 for ; Sat, 1 Mar 1997 16:10:39 +0800 (WST) Date: Sat, 1 Mar 1997 16:10:39 +0800 (WST) From: Adrian Chadd To: freebsd-hackers@freebsd.org Subject: Re : java support under FreeBSD. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk hi. Just a quick question bout something I'm trying to do to get Java to run under FreeBSD. Basically I'm looking at the source for imgact_shell.c and I've got it to recognise a java binary, doing the sysctl stuff, etc, but I fail to see how you can play with the argc and environment space. When you execute a java class, the interpreter expects the NAME of the class, not the path. So I have to crreate a new classpath every time I run the interpreter. That bit is easy. The hard bit is deciding where to put it. I can either set an environment variable CLASSPATH everytime, or on the command line do this : java -classpath /usr/local/java/classes.zip:/path/to/java/class classname or just set the envir variable CLASSPATH. Now I don't know which overrides which, or if they augment each other, but I do know that if I set the env variable then the user wont' be able to override it, which may or may not be a good thing. Question is, how would I do either? :) Thanks. Adrian.