On Mon, 18 Dec 2006, Tim Jenness wrote:
> I'm a bit confused as to how the starjava command is meant to work on 64bit
> since it doesn't recognize a uname -m or x86_64 or amd64. I've patched it.
OK, thanks, should have done that already. When LD_LIBRARY_PATH is set
correctly this is just a handy backup, so I hadn't noticed the problem (it
also puts the arch library first so that any older versions are avoided,
not an issue since we've only the one 64 bit release).
> Also, the standard starlink usage indicates that a file
> in $STARLINK/java/jrehome declares where the JRE is on a starlink system so
> I've modified "starjava" to understand that.
Back in 2002 I undid that behaviour, the CVS log says Martin Bly said to
just rely on a "jre" softlink, instead of this file (probably for a
release that never happened). I guess if you're happy with the "jrehome"
file arrangement, we should go back.
> Last outstanding problem I'm having is that starjava doesn't have a starlink
> path burned into it at install time so my 64-bit system using /star64 keeps
> trying to run up the 32bit version of java in /star.
>
> Should we change $STARLINK/etc/login to set $STAR_JAVA ?
Maybe, the STARJAVA system doesn't actually know where the Starlink tree
is installed, except if you define "stardev" (which is only picked up by
packages that build JNI libraries), so install editting isn't possible
from that side.
BTW, while we're talking about this I've noticed some issues with Brad's
32bit Java setup I keep meaning to mention. It's a little naughty as it
includes the JDK, which shouldn't be distributed (although now that Java
is going open source, that will become a none issue), plus STARJAVA itself
(well some jar files, but definitely the JNI libraries) is installed as an
extension, that is shares the "lib" and "lib/i386" directories with Java.
That gives them special status, so for instance it's not possible to load
any other versions of the JNI libraries. Tricky for development, for that
reason it's best to keep "java" and "starjava" separate.
Want to know more? Google for "The Java Extension Mechanism".
Cheers,
Peter.
|