Date: Sat, 1 Mar 1997 16:10:39 +0800 (WST) From: Adrian Chadd <adrian@obiwan.aceonline.com.au> To: freebsd-hackers@freebsd.org Subject: Re : java support under FreeBSD. Message-ID: <Pine.BSF.3.95q.970301155914.236A-100000@obiwan.aceonline.com.au>
next in thread | raw e-mail | index | archive | help
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 <args to pass to the java class> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.970301155914.236A-100000>