Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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)

share|improve this question
add comment

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/.

share|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
add comment

Install the java-1.6.0-openjdk-devel package.

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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