LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-04-2005, 10:11 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.

Last edited by JungMin; 12-04-2005 at 10:17 PM.
 
Old 12-04-2005, 10:18 PM   #2
JungMin
Member
 
Registered: Dec 2005
Posts: 40

Original Poster
Rep: Reputation: 15
Maybe should posted this in the programming thread....oppss. i moved it to the programming forum, but dunno how to delete this one.

Last edited by JungMin; 12-04-2005 at 10:26 PM.
 
Old 12-05-2005, 03:18 AM   #3
vikrambhimbar
Member
 
Registered: Aug 2005
Location: India
Posts: 33

Rep: Reputation: 15
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
 
Old 12-05-2005, 06:32 AM   #4
JungMin
Member
 
Registered: Dec 2005
Posts: 40

Original Poster
Rep: Reputation: 15
I tried the above, restarted my session with no luck. I also added it to /etc/profile:

Code:
# /etc/profile -*- Mode: shell-script -*- 
# (c) MandrakeSoft, Chmouel Boudjnah <chmouel@mandrakesoft.com>

loginsh=1

# Users generally won't see annoyng core files
[ "$UID" = "0" ] && ulimit -S -c 1000000 > /dev/null 2>&1

if ! echo ${PATH} |grep -q /usr/X11R6/bin ; then
    PATH="$PATH:/usr/X11R6/bin"
fi

if [ "$UID" -ge 500 ] && ! echo ${PATH} |grep -q /usr/games ; then
    PATH=$PATH:/usr/games
fi

umask 022

USER=`id -un`
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
HISTCONTROL=ignoredups
HOSTNAME=`/bin/hostname`
HISTSIZE=1000

if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
    INPUTRC=/etc/inputrc
fi

# some old programs still use it (eg: "man"), and it is also
# required for level1 compliance for LI18NUX2000
NLSPATH=/usr/share/locale/%l/%N

export PATH PS1 USER LOGNAME MAIL HOSTNAME INPUTRC NLSPATH
export HISTCONTROL HISTSIZE 

for i in /etc/profile.d/*.sh ; do
	if [ -x $i ]; then
		. $i
	fi
done

unset i

export PATH=$PATH:/usr/java/j2sdk1.4.2_10/bin
JAVA_HOME=/usr/java/j2sdk1.4.2_10
When i run ´java´ or ´javac´ in the shell it works, but it doesnt work as root - Is this the problem?? When i try to configure it, i tried both ways and still now luck.
 
Old 12-05-2005, 11:20 PM   #5
JungMin
Member
 
Registered: Dec 2005
Posts: 40

Original Poster
Rep: Reputation: 15
Anyone???? Any other ideas???
 
  


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
E17 compile error edje cannot find "brushed.png" inkysplat Linux - Software 1 01-06-2006 12:48 AM
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
"configure: error: can not find sources in <dir>" naveenkoneru Linux - Software 0 05-31-2004 05:08 PM
./configure error - "no acceptable cc found in #PATH" datawebcorp Linux - Newbie 3 01-03-2002 09:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:55 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration