Date: Thu, 22 Nov 2001 11:31:54 +0000 From: Rasputin <rasputin@submonkey.net> To: Ernst de Haan <znerd@freebsd.org> Cc: java@freebsd.org Subject: Re: tomcat port (PATCH) Message-ID: <20011122113154.A14283@shikima.mine.nu> In-Reply-To: <200111221108.fAMB8Ne07123@zaphod.euronet.nl>; from znerd@freebsd.org on Thu, Nov 22, 2001 at 12:08:23PM %2B0100 References: <20011119161722.A56021@shikima.mine.nu> <200111201351.fAKDpBZ24104@zaphod.euronet.nl> <20011121110415.A12931@shikima.mine.nu> <200111221108.fAMB8Ne07123@zaphod.euronet.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
* Ernst de Haan <znerd@freebsd.org> [011122 11:15]: > Hey Rasputin, > > > 1] makes a dependency on 'javac' rather than an explicit path - > > so long as there is a java compiler in your path, it should work. > > Uhm, will javac be in the path? I don't think you get javac in the path if > you install a JDK. The JDK's just install into a subdir of ${PREFIX}. The > scripts and binaries are then in the bin/ subdir, they are *not* copied to > /usr/local/bin nor is a symlink placed there, AFAIK. I'm sort of assuming that if you've installed a JDK you'll have added the toolchain to your path? The alternative is setting a dependency for JAVA_HOME/bin/javac, but again this assumes that you set JAVA_HOME (or JDK_HOME, JRE_HOME, whatever is decided on).... > > 2] makes files/patch-aa correctly set java_home in workers.properties > > (dependant on JAVA_HOME; I have a symlink, /usr/java, that I repoint to > > /usr/local/jdk1,1,8, /usr/local/linux-jdk1.3.1 or whatever other JDK I'm > > using that day) > > Well, this is specific to your situation. It's not official that /usr/java > points to a JDK. And I would not want to introduce that either... *If* some > directory like that would be introduced, then it would at *least* be below > ${PREFIX} (normally /usr/local/) Sure - that's why you can override it to point to wherever your JDK lives. > > 3] Makes tomcat.sh rc script correctly read JAVA_HOME > > (overridable by 'make JAVA_HOME=/usr/local/jdk1.1.8' or whatever) > > 'read'? Where from? Uh, the environment? > Do you replace it? I haven't looked at the diff yet, Have a look - I'm horribly hungover today, so I'm not in any state to explain it properly. > don't really have time yet.... > Hope this helps :-) Sure - the more feedback the better. I was also wondering if there was any reason why tomcat needs to run as root? I managed to get it to run happily over here as user 'tomcat', but I've only be running it about 4 days, so does anyone else know a reason it needs to be root? Only thing I can think of is if you want it as your standard webserver, you'd need root to bind to port 80 - but that could be got around with a port forwarder... -- Rasputin :: Jack of All Trades - Master of Nuns :: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011122113154.A14283>