[H-GEN] Strace on a binary get full path details on a stat

Anthony Irwin anthony at server101.com
Wed Oct 11 02:19:45 EDT 2006


jmcp at jmcp.id.au wrote:

 > That's actually quite common for 3rd party vendors. It's a method
 > of them ensuring that a known version of the JRE and JDK are available
 > to their app.
 >

Ok but isn't java somewhat backward compatible?

I can understand having a 1.4 and a 1.5 series if they differ in some
way kind of like having qt2 and qt3 librarys but do people really want
to have multiple versions of the same jre series because some vendor
decided to force a certain version on you?

 >
 > * download the jdk v1.4.2 from java.sun.com
 >   (http://java.sun.com/j2se/1.4.2/download.html)
 >
 > * install it to /opt/j2sdk1.4.2
 >
 > * re-run the application installer.
 >

I have installed the jre provided by the vendor which is version
1.4.2_02. I have tried creating multiple symbolic links with different
names back to the installation directory without any luck.

The binary installation of the software checks multiple locations for
java but I cut them out of the original email to trim it down. Below
are the listed locations it checks.

stat("/usr/jre1.4.../bin/java", 0xbfb06eb8) = -1 ENOENT (No such file
or directory)
write(1, ".", 1.)                        = 1
write(1, ".", 1.)                        = 1
stat("/usr/local/jre1.4.../bin/java", 0xbfb06eb8) = -1 ENOENT (No such
file or directory)
write(1, ".", 1.)                        = 1
write(1, ".", 1.)                        = 1
stat("/opt/jre1.4.../bin/java", 0xbfb06eb8) = -1 ENOENT (No such file
or directory)
write(1, ".", 1.)                        = 1
write(1, ".", 1.)                        = 1
stat("/usr/j2sdk1.4.../bin/java", 0xbfb06eb8) = -1 ENOENT (No such
file or directory)
write(1, ".", 1.)                        = 1
write(1, ".", 1.)                        = 1
stat("/usr/local/j2sdk1.4.../bin/java", 0xbfb06eb8) = -1 ENOENT (No
such file or directory)
write(1, ".", 1.)                        = 1
write(1, ".", 1.)                        = 1
stat("/opt/j2sdk1.4.../bin/java", 0xbfb06eb8) = -1 ENOENT (No such
file or directory)
write(1, ".", 1.)                        = 1
write(1, ".", 1.)

I have the java path listed in the PATH and JAVA_HOME environment
variables and have tried everything that I can think of before
resorting to strace.

So at this stage I am trying to find out the path it wants as I have
already tried the latest java 1.4.2_12 version before using the one
they provide as their version is quite old.

If anyone can suggest how to find out the path it expects with strace
or another method then it would be appreciated.

Kind Regards,
Anthony Irwin




More information about the General mailing list