configure: error: Can't find "javac" in your PATH, when install/compile a program...
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
what happens when you try './configure' without the '--with-swt=' option (your not literally using /path/to/swt.jar are you, that path prolly doesnt exist). <@
swt's actual path will be the return of the 'find' command.
what happens when you try './configure' without the '--with-swt=' option (your not literally using /path/to/swt.jar are you, that path prolly doesnt exist). <@
swt's actual path will be the return of the 'find' command.
else i'm not sure what it is.
yeah....already tried that. I actually got it to work - well, get past that error. I tried this....
It worked, I used the actual path!?!?! Because it was in the file i downloaded from eclipse. but then i got a whole bunch of exceptions at the end.....may just have to give up as i know nuthing about this stuff - WAY over my head.
I suppose the question is: when you installed your JDK, did
you edit any (or did your distro, depending on how you installed)
any files that are required for the set-up of environment variables?
The "clean" way of setting them would be to create a file
/etc/profile/jdk.sh
with content like
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.