I have recently installed binfmt_misc on my linux system using kernel
2.2.1.
I have this game application I've written. It lives in its own package
in its own directory one level down from ./usr/local/java.
Following the suggestions of people here, I have gotten into the habit
of NOT defining classpath variables but using the -classpath switches in
javac and java. Therefore I had to rewrite the "javawrapper" that comes
as a sample with the binfmt_misc documentation.
Now for the wierd part. It all works just fine when I am logged in as
root. But when logged in as myself, java reports that it can't find my
class. What could cause this? I have loaded up my javawrapper script
with a bunch of echo statements and am convinced that it produces the
same output under both logins. Neither as root nor as myself do I have
a CLASSPATH variable defined. So what else could it be?
Or is it just a bad idea to use a package member class as the class
holding main()?