From owner-freebsd-questions@FreeBSD.ORG Mon Aug 9 14:56:03 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D527416A4CE for ; Mon, 9 Aug 2004 14:56:03 +0000 (GMT) Received: from ns1.tiadon.com (SMTP.tiadon.com [69.27.132.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D0DF43D31 for ; Mon, 9 Aug 2004 14:56:03 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from [69.27.131.0] ([69.27.131.0]) by ns1.tiadon.com with Microsoft SMTPSVC(6.0.3790.0); Mon, 9 Aug 2004 09:52:28 -0500 Message-ID: <41179080.8080407@daleco.biz> Date: Mon, 09 Aug 2004 09:56:00 -0500 From: "Kevin D. Kinsey, DaleCo, S.P." User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7) Gecko/20040712 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pryan@singnet.com.sg References: <1092031417.411713b9defae@arrowana.singnet.com.sg> In-Reply-To: <1092031417.411713b9defae@arrowana.singnet.com.sg> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 09 Aug 2004 14:52:28.0943 (UTC) FILETIME=[7DE501F0:01C47E20] cc: FreeBSD Subject: Re: Setting environmental variable for Netbeans X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2004 14:56:03 -0000 Peter Ryan wrote: >I am treading more unknown ground trying >to get NetBeans to run on 4.10. > >I installed jdk 1.4.2 (thanks to help from >here), and have installed this Netbeans >via the ports collection. > >Now when i try to run it, it wants an >environmental variable called JDK_HOME to >be set. > >Using tips from searching the net, I am >under the impression I have to change a >a file called csh.cshrc or maybe .cshrc >Then I did a find files on .cshrc, and >found 2 copies - one under >root/ and the other under usr/home/peter. > >I am logged in under root, so I am not sure >which file I should change, or even if this >is the correct file. > >Could someone point me in the right >direction before I fiddle enough to have >to resinstall again :) > >Thanks, >Peter > > Reinstall? I don't think it'll get that severe just from this. BSD and XP rhyme ... that's about it. Very simply, the file ".cshrc" is the C-shell's "resource" file. It is read after login by the shell as the shell is starting up. So, if you are logging in as "peter", it will read /usr/home/peter/.cshrc and set up things like your shell prompt, some aliases, and environment variables... The same is true for a root login; root's shell reads "/root/.cshrc" (assuming, of course, that root's shell is csh or tcsh ...) The line could appear anywhere in .cshrc, and the syntax for the var would be: setenv JDK_HOME /somedir/here That's assuming, of course, that Netbeans is looking for a path, and not a boolean or other data type. While I'm mentioning stuff, it might be a Good Thing(tm) to mention that root logins are *not* considered a Good Thing(tm) [1].... HTH, Kevin Kinsey DaleCo, S.P. [1] www.freebsd.org/handbook/users-superuser.html