Newbie - cannot find file for class - how to debug?

Marco Trudel mtrudel@gmx.ch
Fri Sep 1 07:23:00 GMT 2006


Hello Scott
This is a common problem. Here googles answer:
http://72.14.221.104/search?q=cache:zqxXVGPomEAJ:home.cc.umanitoba.ca/~umjenki5/articles/gcjQuestion.html
(I had to use the cached site, the original seems to be down)
Another possibility would be to use JavaCompiler 
(http://javacompiler.sf.net). It's basically a frontend for gcj with 
some additional tools...
Marco
Scott Goldstein wrote:
> I'm trying to compile my .class files into native byte code and I'm running into the following messages:
>> ...: error: cannot find file for class...
>> I've tried adding the jar containing the missing classes into the classpath argument, "--classpath". I've also tried adding it to the list of "source" files at the end of the gcj command, with each source file separated by a space. Still, these classes cannot be found.
>> I know the -classpath variable I've set is taking affect, because there's another jar that I've added to the classpath parameter which, when removed, causes a different class to not be found.
>> Is there a good way to debug this? Can I print to the console where gcj is looking for the class?
>> Thanks.
>> Scott
>>


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /