This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: GCJ and C++ (calling Java from C++)
Lothar Werzinger writes:
> On Tuesday 29 November 2005 10:16, Andrew Haley wrote:
> > That NullPointerException is the clue. It's happening when some class
> > is being resolved, and it's probably being casued by some sort of
> > linking problem.
> >
> > (I was guessing that you weren't calling JvCreateJavaVM(), which would
> > cause this problem. But you are, so it's not that.)
> >
> > > [exec] ...4 more
> > >
> > > So I am a kind of stuck here :-(
> >
> > Forgive me if I still can't see something obvious, but I really do need to
> > know how you built this program.
>
> Well, that's why I attached the example as a tar file in the first place. I
> assumed I might have done something wrong building the whole thing (this is
> my first use of gcj I only used gcc/g++ before).
>
> I attached the example again with the latest source changes. the
> build.xml in org.eclipse.emf.examples.library.edit should tell you
> enough about how the program is built.
But it does not work. Why not just tell us what commands you execute
to do the build?
aph@zorro org.eclipse.emf.examples.library.edit]$ ant
Buildfile: build.xml
headers:
[exec] find: ../org.eclipse.emf.examples.library/bin: No such file or directory
[exec] find: bin: No such file or directory
[exec] using CNI
[exec] mkdir: created directory `cpp/include'
[exec] mkdir: created directory `cpp/include/test'
objects:
[exec] gcj: bin/test/LibraryTest.class: No such file or directory
[exec] gcj: no input files
BUILD FAILED
/home/aph/tmp/org.eclipse.emf.examples.library.edit/build.xml:108: exec returned: 1
Total time: 0 seconds
Andrew.