I'm trying to install this Python library (works with Java) and the read me file says to tell it the path to my JDK installation.

Any ideas how I would find this? What is it asking for, a directory?

I tried which java but that just said /user/bin/java. I don't think that's what it wants.

I also tried > sudo find / iname="*jdk*" but that seemed to just list 1000s of directories for some reason.

I'm on Fedora release 14 (Laughlin)

link|improve this question

79% accept rate
feedback

2 Answers

up vote 1 down vote accepted

It's a Fedora installation, so you can try rpm -qa | grep jdk to get an idea of which java package is installed. You should see a java-x.x.x-openjdk and hopefully, a java-x.x.x-openjdk-devel package. If so, your java environment will probably be in /usr/lib/jvm/java/.

link|improve this answer
The alternatives subsystem, used by the distro's Java packages, put the relevant executables in /usr/bin. – Ignacio Vazquez-Abrams May 9 '11 at 14:58
Well, is his app/library looking for the executable or the environment directory? Sometimes, I encounter applications that require environment variables to be defined like: export JAVA_PATH=/usr/lib/jvm/java/bin – ewwhite May 9 '11 at 15:02
feedback

Install the java-1.6.0-openjdk-devel package.

link|improve this answer
I ended up having to do this too, thanks. – Greg_the_Ant May 9 '11 at 17:42
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.