From owner-freebsd-questions Wed Oct 2 12:13:56 2002 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 84C5637B401 for ; Wed, 2 Oct 2002 12:13:54 -0700 (PDT) Received: from hughes-fe01.direcway.com (hughes-fe01.direcway.com [66.82.20.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC6DA43E42 for ; Wed, 2 Oct 2002 12:13:53 -0700 (PDT) (envelope-from wmprice@direcway.com) Received: from jerusalem ([66.82.49.69]) by hughes-fe01.direcway.com (InterMail vK.4.04.00.00 201-232-137 license dcc4e84cb8fc01ca8f8654c982ec8526) with ESMTP id <20021002191419.JAUH1393.hughes-fe01@jerusalem>; Wed, 2 Oct 2002 15:14:19 -0400 Content-Type: text/plain; charset="iso-8859-1" From: "Weston M. Price" To: Matt Smith , MET Subject: Re: JDK13 Date: Wed, 2 Oct 2002 15:05:26 +0000 User-Agent: KMail/1.4.3 Cc: freebsd-questions@freebsd.org References: <000101c26a39$4482ad10$0200a8c0@SURVIVAL> <1033581828.4785.9.camel@localhost> In-Reply-To: <1033581828.4785.9.camel@localhost> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200210021505.26113.wmprice@direcway.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Actually, for binaries aka java, javac the soft link should work just fin= e.=20 The CLASSPATH variable only comes into play when actually executing class= =20 files within the JVM, thus, the variable really has nothing to do with bi= nary=20 execution.=20 Many Java applications require the JAVA_HOME variable to be set to run=20 properly. I don't know what shell you use but for the Korn shell you woul= d=20 put this in your .profile JAVA_HOME=3D/path/to/where/you/installed/the/jdk.=20 export JAVA_HOME.=20 Regards, Weston On Wednesday 02 October 2002 06:03 pm, Matt Smith wrote: > either add /usr/local/jdk1.3.1/bin/ to your PATH, or simply make > soft-links (or hard links, at your preference): > > ln -s /usr/local/jdk1.3.1/bin/java /usr/local/bin/java > > HOWEVER, I believe (from my minimal Java experience) that the Java > utilities will look for CLASS_PATHs and other java "Stuff" relative to > location of java binaries. Executing via link from another location > (like /usr/local/bin) may cause issues. > But again, my Java experience is minimal, and I may be waaay off. > Perhaps someone on this list can clarify? > -Matt > > On Wed, 2002-10-02 at 13:29, MET wrote: > > Is there any way that I could make java and javac global commands lik= e > > other programs? So that way I can be in any folder and type java and > > have it execute the file through the VM? > > > > ~ Matthew > > > > P.S. I'm picky but thanks a lot > > > > -----Original Message----- > > From: Matt Smith [mailto:matt@forsetti.com] > > Sent: Wednesday, October 02, 2002 1:19 PM > > To: MET > > Cc: freebsd-questions@FreeBSD.ORG > > Subject: Re: JDK13 > > > > > > try: > > > > /usr/local/jdk1.3.1/bin/java > > > > and > > > > /usr/local/jdk1.3.1/bin/javac > > > > -Matt > > > > On Wed, 2002-10-02 at 13:15, MET wrote: > > > So I installed the JDK13 and would like to start coding. However, > > > java and javac commands seem to do nothing. Do I have to make them > > > alias's to the programs (didn't actually check if they're installed= ) > > > or something else? > > > > > > Ideas? > > > > > > ~ Matthew > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message