You can just use java-package to create a java debian package.
apt-get install java-package
On Wed, May 24, 2006 at 11:22:34AM -0600, Ed wrote:
> Thanks. I've been in a windows world lately and have forgotten so much
> simple stuff.
>
> Here's what I did:
> I modified the .bash_profile with
>
> # set PATH so it includes Java stuff if it exists
> if [ -d /usr/local/jdk1.5.0_06 ] ; then
> PATH=:"${PATH}":/usr/local/jdk1.5.0_06/bin:/usr/local/jdk1.5.0_06/jre/bin
> fi
>
> Thanks again.
>
> Ed
>
> Daniel wrote:
>
> I presume that you are referring to Sun's jdk. In this case if
> you've=20 installed it under /usr/local, then you should have a
> directory called=20 "jdk1.5.0_06" (or similar :).
> The problem with your setup is that the binaries aren't in your PATH.
> You have a lot of options, and I'm going to write just a few:
>
> =2D Adjust your path (refer to your shell's documentation in order to
> make = it=20
> permanent) to contain "/usr/local/jdk1.5.0_06/bin" and=20
> "/usr/local/jdk1.5.0_06/jre/bin"
>
> =2D Symlink the executables to a directory which is searched after
> binaries= =20 (usually /usr/local/bin). (mixing this with creating a
> symlink=20 under /usr/local/ named java which points to your
> jdk1.5.0_06 directory, wi= ll=20 have the advantage of not braking the
> symlinks of you install a newer versi= on=20 of sun's java, you just
> have to redirect the java symlink)
>
> There are of corse plenty other possibilities which you can adopt...
>
> HTH,
>
> Daniel
>
> --
> Ed
Attachment:
signature.asc
Description: Digital signature