This might not be an actual Java problem, but its name does come up...
Trying to run a help app for IDL, a software tool popular with astronomers and other scientician types. see https://www.ittvis.com/ if you're curious. IDL itself runs fine but its little buddy program idlhelp ought to running from the bash command line. We're getting no joy but only this error message:
/usr/local/bin/idlhelp: 476: /usr/local/itt/idl/idlde/bin.linux.x86/jre/bin/java: not found
This might look like a case of the "java" file at the mentioned location being missing, but it's really there:
This is happening on an Ubuntu 7.10 (?) system. Already did the obvious thing three weeks ago - call ITT-VIS help, but they're stumped. Rumor is that other Linux/GNU users are having this problem. It may have something to do with 32/64-bit issues, or maybe java is being found just fine but some other file isn't found, and the error message is slightly insane.
One bit of excitement today - on another machine which is quite similar, it works fine. That machine has java-6 installed. The bad machine didn't. Installed java-6 using synaptic. Problem remains.
Maybe one of you old hands around has an idea what's going on?
on the good machine, in the directory where it is: bash> ./java ...spews a long list of options etc....
on the bad machine: bash> ./java not found
*any* file in this particular bin/ directory will do the same thing on the "bad" machine. strace won't run it. i keep thinking something to do with executable permission or ownership, but files are identical between the two machines. might not be anything java-related at all...but no idea what.
If it's an old enough version of Java, it might be a.out/COFF based instead of ELF. In this case whether it works it depends on your kernel version and modules, and what versions of libc you have installed.
That's just speculation. Try the "file" on the java executables on each machine to see what kind of programs they are.
naw, nuttin' *that* old on any machine 'round here. COFF = grandma's antique rocking chair.
On the good machine, all executable files in the java's bin directory run fine (griping about not being given any input, but that's okay for now) while on the other machine, none of the executables there work - always something like "not found". I checked again that these files are identical sizes, permissions etc to their identical twins on the good machine, as well as for the bin/ directory containing them. And i'm logged in as the same user. Also stepped outside and looked up to make it's not weird UFO effects ;-) Elsewhere on the machine, executable files act normal.
These files are 32bit while the machines are running 64-bit. Since it all runs fine on the one machine, whatever allows the 64bit machine to execute 32bit binary is doing its magic just fine, while on the other machine, perhaps there's a problem. It's not clear still if this really is a java-related problem or a 32/64bit problem or what. So far only the proprietary IDL software's java installation is the only place i find this problem.