LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 12-04-2005, 10:25 PM   #1
JungMin
Member
 
Registered: Dec 2005
Posts: 40

Rep: Reputation: 15
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.
 
Old 12-05-2005, 02:54 PM   #2
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,094

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
i think this should be in software.

try doing './configure' without swt to see if it exports the $PATH correctly.

if you need swt (not sure what it is, i think it comes with eclipse ide), try
Code:
 cd /; find . | grep swt.jar
hth
 
Old 12-05-2005, 11:18 PM   #3
JungMin
Member
 
Registered: Dec 2005
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by schneidz
i think this should be in software.

try doing './configure' without swt to see if it exports the $PATH correctly.

if you need swt (not sure what it is, i think it comes with eclipse ide), try
Code:
 cd /; find . | grep swt.jar
hth

I download the SWT package....no problem there. But still no luck....
 
Old 12-06-2005, 11:24 AM   #4
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,094

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
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.

Last edited by schneidz; 12-06-2005 at 11:25 AM.
 
Old 12-06-2005, 05:10 PM   #5
JungMin
Member
 
Registered: Dec 2005
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by schneidz
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....

Code:
./configure javac=/usr/java/j2sdk1.4.2_10/bin --with-swt=/home/jungmin/SWT/swt.jar
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.

Last edited by JungMin; 12-06-2005 at 05:14 PM.
 
Old 12-07-2005, 05:04 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
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
Code:
#!/bin/sh
export JAVA_HOME=/usr/lib/java
export MANPATH="$MANPATH:/usr/lib/java/man"
export PATH="$PATH:/usr/lib/java/bin:/usr/lib/java/jre/bin"
(obviously modified to match your actual paths).


Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
configure: error: Can't find "javac" in your PATH, when install/compile a program... JungMin Linux - Software 4 12-05-2005 11:20 PM
checkinstall error : *** The "rpm" program is not in your PATH! logicalfuzz Linux - Software 2 09-11-2005 06:40 AM
Can't install "glibmm" library. "configure" script can't find "sigc++-2.0&q kornerr Linux - General 4 05-10-2005 02:32 PM
little help ;) "configure: error: can not find install-sh or install.sh" pertek Linux - Software 0 03-19-2004 11:20 AM
./configure error - "no acceptable cc found in #PATH" datawebcorp Linux - Newbie 3 01-03-2002 09:54 PM


All times are GMT -5. The time now is 12:49 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration