From: <php...@li...> - 2006-03-21 16:51:27
|
php...@li... wrote: > Just to say I digg into this problem all day and still find no solution. > What I do not understand is why a thread does not inherit the > classpath from the creating thread I guess that's not the problem. The problem is, that javac does not inherit the classpath. i.e. just because the classes are available to the compiler in it's runtime environment does not mean that he has access to the class definitions. (i.e. class files) - nor that he knows how to find them. I have done something similar once, and you definitely need to tell javac explicitly where to find the classes it needs. If they are in /jre/lib/ext he will look there anyway, but it's not really a classloader problem - it's just that javac does not utilize it's own classloader to look for classes - it uses the system classpath, plus classpaths he has been explicitly told to use. Try System.setProperty to change the system classpath and try again, I guess that will help. best regards, Kai Londenberg |