• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

only absolute references work

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

Christoph

JAPH Senior
Joined
Oct 8, 2001
Location
Redmond, WA
I've been trying to complie a java file, but I found out that I had some funky older version installed instead of the 1.4.0 version I wanted. So I uninstalled it and installed the newer one. Now it won't even recognize any of the bin files unless I use an absolute reference (ie /usr/java/j2sdk1.4.0/bin/java -version to find the version vs. java -version) even if I'm in the ..../bin directory.
Any fixes?
 
Just add a new symlink in /bin:
rm /bin/java
ln -s /usr/java/j2sdk1.4.0/bin/java /bin/java

Viola! :D
 
Back