Hi I hit quite strange problem,
FindJava insist  that my java is located in /usr/lib/jvm/java
and try to execute java -verson from /usr/lib/jvm/java/bin/java

which hast to fail. /usr/lib/jvm do not exist
I had set  env variables
> echo $JAVA_HOME
/usr/lib64/jvm/java
> echo $JAVA_ROOT 
/usr/lib64/jvm/java

> echo $JAVA_BINDIR 
/usr/lib64/jvm/java/bin

My /usr/lib64 dir contains
> ll /usr/lib64/jvm/
celkem 16
lrwxrwxrwx 1 root root   26 31. čec  2009 java -> /etc/alternatives/java_sdk
lrwxrwxrwx 1 root root   30 31. čec  2009 java-sun -> 
/etc/alternatives/java_sdk_sun
lrwxrwxrwx 1 root root   10 19. čec 15.58 java-1.5.0 -> java-1.6.0
lrwxrwxrwx 1 root root   32 31. čec  2009 java-1.6.0 -> 
/etc/alternatives/java_sdk_1.6.0
drwxr-xr-x 3 root root 4096 30. čec  2009 java-1.6.0-openjdk-1.2_b11
drwxr-xr-x 2 root root 4096 17. čen 10.16 java-1.6.0-openjdk-1.6.0
lrwxrwxrwx 1 root root   20 12. srp 12.33 java-1.6.0-sun -> java-1.6.0-sun-1.6.0
drwxr-xr-x 7 root root 4096 12. srp 12.33 java-1.6.0-sun-1.6.0
lrwxrwxrwx 1 root root   21 30. čec  2009 jre -> /etc/alternatives/jre
lrwxrwxrwx 1 root root   25 31. čec  2009 jre-sun -> /etc/alternatives/jre_sun
lrwxrwxrwx 1 root root   27 31. čec  2009 jre-1.6.0 -> 
/etc/alternatives/jre_1.6.0
lrwxrwxrwx 1 root root   24 12. srp 12.32 jre-1.6.0-sun -> 
java-1.6.0-sun-1.6.0/jre
lrwxrwxrwx 1 root root    3 16. srp 10.51 jvm -> jvm
-rw-r--r-- 1 root root   96 19. čec 15.58 README


I also check /etc/alternatives that none java stuff link to /usr/lib/jvm

I add message command to FindJava and realize that for some reason
FIND_PROGRAM(Java ...) return 
/usr/lib/jvm/java/bin/java 

which is nonexisting directory.

What can be wrong?


-- Thidney





_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to