configure: error: Can't find "javac" in your PATH, when install/compile a program...
I searched the other threads, but couldnt find one that addressed my problem.....
I have installed (on Mandriva 2006) the J2RE-SDK and J2RE from Sun. At first if i typed ¨java¨ or ¨javac¨ it said that it wasnt in my path. So i searched on here and found a topic that solved that - I added a line to my ¨.bashrc¨. I logged in and out, now when i type ´java´ or ´javac´ at the command line they both work. BUT, i am trying to compile a program.....but when i run ´./configure´ I get an error saying ¨configure: error: Can't find "javac" in your PATH¨ This is how it says to install it.... $ tar -xvjf iriverter-VER.tar.bz2 $ cd iriverter-VER $ ./configure --with-swt=/path/to/swt.jar $ make # make install I have downloaded the swt.jar file inserted it in the above. Any ideas??? I am trying to install iriverter-0.14. Thanks. |
Maybe should posted this in the programming thread....oppss. i moved it to the programming forum, but dunno how to delete this one.
|
Hi
Try to do below things... 1)First set the path using command "PATH = $PATH:<PAth where u r java "bin" folder>" eg:- PATH=$PATH:/usr/java/j2sdk1.4.2_07/bin 2) Then type export PATH 3) ALso set JAVA_HOME this is the location of u r java instllation dir. eg:/ JAVA_HOME=/usr/java/j2sdk1.4.2_07 4)also write physicaly in /etc/profile |
I tried the above, restarted my session with no luck. I also added it to /etc/profile:
Code:
# /etc/profile -*- Mode: shell-script -*- |
Anyone???? Any other ideas???
|
All times are GMT -5. The time now is 10:20 PM. |