Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Oct 2002 15:05:26 +0000
From:      "Weston M. Price" <wmprice@direcway.com>
To:        Matt Smith <matt@forsetti.com>, MET <met@uberstats.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: JDK13
Message-ID:  <200210021505.26113.wmprice@direcway.com>
In-Reply-To: <1033581828.4785.9.camel@localhost>
References:  <000101c26a39$4482ad10$0200a8c0@SURVIVAL> <1033581828.4785.9.camel@localhost>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?200210021505.26113.wmprice>