This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Newbie - cannot find file for class - how to debug?
- From: Marco Trudel <mtrudel at gmx dot ch>
- To: Scott Goldstein <Scott dot Goldstein at bluejungle dot com>
- Cc: java at gcc dot gnu dot org
- Date: Fri, 01 Sep 2006 09:23:03 +0200
- Subject: Re: Newbie - cannot find file for class - how to debug?
- References: <6706FC7F3CAB114DB6B3138860290BD35834DB@NEVIS.bluejungle.com>
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