Date: Fri, 4 May 2001 08:00:04 -0700 (PDT) From: Maxim Sobolev <sobomax@FreeBSD.ORG> To: freebsd-ports@FreeBSD.org Subject: Re: ports/27079: Improvements for javavmwrapper? Message-ID: <200105041500.f44F04d27158@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/27079; it has been noted by GNATS. From: Maxim Sobolev <sobomax@FreeBSD.ORG> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105041500.f44F04d27158>