Quote:
Originally Posted by YankeePride13
You can set it up the same way you did JAVA_HOME in DBabo's comment. I am not sure if that answers your question.
|
weeelll. here is some internal info.
so i have thinkorswim which requires Oracle Java. on OpenJDK it won't run - that is the fact. I removed all java, installed openjdk - no go. Replaced it with Oracle - works fine.
Next step is i'm trying to "marry" Oracle and OpenJDK in such a way that thinkorswim works and all other apps that require Open ( libreOffice for example) work too.
So i had Oracle 1.7 installed on an empty ( no openjdk) machine and confirmed that thnkorswim work.
Next i installed openJDK 1.7 and confirmed that everything else works but thinkorswim.
Next i set Java_HOME=/usr/bin/java/default:
Code:
echo $JAVA_HOME
/usr/java/default
[xxxx@localhost thinkorswim]$ ls -l /usr/java/default
lrwxrwxrwx 1 root root 16 Jul 15 11:25 /usr/java/default -> /usr/java/latest
which java
/usr/bin/java
[xxxx@localhost thinkorswim]$ java -version
java version "1.7.0_60"
OpenJDK Runtime Environment (fedora-2.5.0.1.fc20-x86_64 u60-b30)
OpenJDK 64-Bit Server VM (build 24.60-b09, mixed mode)
when i run thinkorswim it just sits and "applying updates".
here is the strace on the java call. I removed all non relevent info. As you can see it somehow picks up openjdk which is the problem.
Code:
6609 open("/usr/bin/java", O_RDONLY) = 3
6609 open("/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.5.0.1.fc20.x86_64/jre/lib/amd64/jli/tls/x86_64/libpthread.so.0", O_RDONLY|O_
CLOEXEC) = -1 ENOENT (No such file or directory)
6609 open("/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.5.0.1.fc20.x86_64/jre/lib/amd64/jli/tls/libpthread.so.0", O_RDONLY|O_CLOEXEC
) = -1 ENOENT (No such file or directory)
6609 open("/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.5.0.1.fc20.x86_64/jre/lib/amd64/jli/x86_64/libpthread.so.0", O_RDONLY|O_CLOE
XEC) = -1 ENOENT (No such file or directory)
6609 open("/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.5.0.1.fc20.x86_64/jre/lib/amd64/jli/libpthread.so.0", O_RDONLY|O_CLOEXEC) =
-1 ENOENT (No such file or directory)
6609 open("/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.5.0.1.fc20.x86_64/lib/amd64/tls/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC)
= -1 ENOENT (No such file or directory)
6609 open("/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.5.0.1.fc20.x86_64/lib/amd64/tls/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 E
NOENT (No such file or directory)
6609 open("/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.5.0.1.fc20.x86_64/lib/amd64/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -
1 ENOENT (No such file or directory)
6609 open("/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.5.0.1.fc20.x86_64/lib/amd64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOEN
T (No such file or directory)
6609 open("/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.5.0.1.fc20.x86_64/jre/lib/amd64/tls/x86_64/libpthread.so.0", O_RDONLY|O_CLOE
XEC) = -1 ENOENT (No such file or directory)
6609 open("/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.5.0.1.fc20.x86_64/jre/lib/amd64/tls/libpthread.so.0", O_RDONLY|O_CLOEXEC) =
-1 ENOENT (No such file or directory)
6609 open("/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.5.0.1.fc20.x86_64/jre/lib/amd64/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC)
= -1 ENOENT (No such file or directory)
6609 open("/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.5.0.1.fc20.x86_64/jre/lib/amd64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 E
NOENT (No such file or directory)
6609 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
6609 open("/lib64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
6609 open("/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.5.0.1.fc20.x86_64/jre/lib/amd64/jli/libjli.so", O_RDONLY|O_CLOEXEC) = 3
6609 open("/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.5.0.1.fc20.x86_64/jre/lib/amd64/jli/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 EN
OENT (No such file or directory)
6609 open("/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.5.0.1.fc20.x86_64/jre/lib/amd64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT
(No such file or directory)
6609 open("/lib64/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
[xxxx@localhost thinkorswim]$ locate libpthread
/usr/lib64/libpthread-2.18.so
/usr/lib64/libpthread.so
/usr/lib64/libpthread.so.0
/usr/lib64/libpthread_nonshared.a
/var/oracle/product/11.2.0/client_1/lib/stubs/libpthread-2.3.4-stub.so
/var/oracle/product/11.2.0/client_1/lib/stubs/libpthread.so
/var/oracle/product/11.2.0/client_1/lib/stubs/libpthread.so.0
/var/oracle/product/11.2.0/client_1/lib/stubs/libpthread.tmp
[xxxx@localhost thinkorswim]$ ls -l /usr/lib64/libpthread.so
-rw-r--r--. 1 root root 222 Jan 23 05:38 /usr/lib64/libpthread.so
[azyman@localhost thinkorswim]$ ls -l /usr/lib64/libpthread.so
libpthread.so libpthread.so.0
[xxxx@localhost thinkorswim]$ ls -l /usr/lib64/libpthread.so.0
lrwxrwxrwx. 1 root root 18 Jul 10 14:36 /usr/lib64/libpthread.so.0 -> libpthread-2.18.so
[xxxx@localhost thinkorswim]$ rpm -qf /usr/lib64/libpthread.so.0
glibc-2.18-12.fc20.x86_64
[xxxx@localhost thinkorswim]$ locate libjli
/usr/java/jre1.7.0_60/lib/amd64/jli/libjli.so
/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.5.0.1.fc20.x86_64/jre/lib/amd64/jli/libjli.so
any ideas?