Guest sog777 Posted September 22, 2004 Report Share Posted September 22, 2004 After installing j2re-1_4_2_05 into its own directory (home/joseph/java2/j2re-1_4_2_05) and adding this to my .bash_profile--- PATH=$PATH:$HOME/bin:home/joseph/java2/j2re-1_4_2_05/bin export PATH JAVA_HOME=home/joseph/java2/j2re-1_4_2_05/bin:$PATH I made a mistake and just installed the JRE into a created directory. Afterwards I tried to reinstall it by first trying to save it into usr/java but mandrake will only allow it to be saved into home/joseph/..... so i left it there. i then tried to set up my PATH Variables but when i try to ./configure a program "Azureus" it states an error that it can not find java and it searches for it in usr/java. Can someone please give me some assistance with this small problem? Thanks [moved from Software by spinynorman - welcome aboard :)] Quote Link to comment Share on other sites More sharing options...
phunni Posted September 22, 2004 Report Share Posted September 22, 2004 If your path points to your $JAVA_HOME/bin directory then you shouldn't have any problems with java being located. If azeurus (or any other app) is looking for java in a particular place then it's badly written. However, since I have run azeurus and have java installed in my home directory also - I know this isn't the case. Did you log out and then in again after changing you env variables? What do you get when you echo $PATH - is the java bin directory in there? Quote Link to comment Share on other sites More sharing options...
Guest sog777 Posted September 23, 2004 Report Share Posted September 23, 2004 RESULTS of echo $PATH [joseph@localhost azureus]$ echo $PATH /usr/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin/:/usr/games:/home/joseph/bin:home/joseph/java2/j2re-1_4_2_05/bin RESULTS of round 4 with azureus... [joseph@localhost azureus]$ ./azureus Starting Azureus... Java exec not found in PATH, starting auto-search... OOPS, unable to locate java exec in /usr/java/ hierarchy You need to upgrade to JRE 1.4.x or newer from http://java.sun.com I noticed 2 syntax errors in my .bash_profile that i caused. i fixed them and i am retrying it now. Quote Link to comment Share on other sites More sharing options...
phunni Posted September 23, 2004 Report Share Posted September 23, 2004 I think I spotted the problem. If you look at the section of your path pointing to your java install there is no leading / on that entry. That's causing it to fail to find your java and then it (presumably) defaults to looking in /usr/java Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.