From owner-freebsd-ports Fri May 4 8: 0: 7 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5322A37B423 for ; Fri, 4 May 2001 08:00:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f44F04d27158; Fri, 4 May 2001 08:00:04 -0700 (PDT) (envelope-from gnats) Date: Fri, 4 May 2001 08:00:04 -0700 (PDT) Message-Id: <200105041500.f44F04d27158@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: Maxim Sobolev Subject: Re: ports/27079: Improvements for javavmwrapper? Reply-To: Maxim Sobolev Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR ports/27079; it has been noted by GNATS. From: Maxim Sobolev To: ernst@heinz.jollem.com Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: ports/27079: Improvements for javavmwrapper? Date: Fri, 4 May 2001 17:48:54 +0300 (EEST) > As I expressed before, I really like the concept of javavmwrapper, but I'm > still struggling to make effective use of it. When I install a JDK from the > ports, the javavmwrapper port is installed as well. This allows me to use > multiple Java VMs and to switch between them. The 'current' Java runtime > can be called using 'javavm'. Problem is that most programs that use Java > expect the command 'java' to point to the Java runtime, 'javac' to the Java > compiler and 'javadoc' to the Javadoc documentation generation tool (to name > a few). And they also expect the JAVA_HOME environment variable to have a > sensible value. The javavmwrapper system still doesn't provide this level > of transparency. > > >How-To-Repeat: > Install a JDK. Run 'javac' or 'javadoc' or 'javah' after that. > >Fix: > My suggestion: Make sure that none of the JDKs install a 'java', 'javah', > 'javadoc' (etc) executable in /usr/local/bin/ but make javavmwrapper install > these in /usr/local/bin/. They may all be symlinks to the same shell script. > Now make sure these scripts work as expected, similar to the current 'javavm' > shell script, written by Maxim Sobolev. > If this idea is appreciated, *and* if Maxim would like me to, then I could > have a look at this and try to come up with a first attempt to implement > this approach. Hehe, great minds think alike ;). This idea has been already implemented by me. I've rewrote javavmwrapper in plain old C with support for all above mentioned features plus several others, including a possibility to set/modify per-VM environment variables, command line options etc. The only thing my new wrapped is lacking is the documentation, and that is why it is not announced yet. Therefore, if you have some free time and willing to help me out then you could take this piece of work. Please drop me a note if you could help with that. -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message