* me lyman [Wed,  3 Nov 2004 at 14:26 -0700]
> When I go through all of the steps, it ends up giving me the right
> information for java -version (1.5.0), but when I ask for javac
> -version it says:
> 
> debwin:~# bash: javac: command not found
Setup a link to point to the alternatives file, or just skip that and
link directly to the executable, see below...

> Also - when I ran the update-alternatives commands ( --config java and
> --config javac ) it said:
> 
> There is only 1 program which provides java
> (/usr/bin/java-vm). Nothing to configure.
> 
> ... and... 
> 
> There is only 1 program which provides javac
> (/usr/local/lib/jdk/bin/javac). Nothing to configure.

You're almost there. This alternatives configuration means that there is
a link named javac (/etc/alternatives/javac) which now points to
/usr/local/lib/jdk/bin/javac. Now you can link /usr[/local]/bin/javac to
/etc/alternatives/javac ('cd /usr/bin/; ln -s /etc/alternatives/javac').
This is usefull if later on you install some other java compiler like
kaffe or whatever, then all you have to do is run update-alternatives to
use whichever one you feel like. You could, of course, also just link
/usr/bin/javac directly to /usr/local/lib/jdk/bin/javac, if you don't
feel like messing with the alternatives approach.

The java interpreter should be good to go already. If not, then you just
need to edit /etc/java-vm . First line is the path to the 'java'
program, the second line is your classpath configuration. (list of colon
seperated paths)

Hope that helps.

Von Fugal

Attachment: signature.asc
Description: Digital signature

____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to