[Kde-bindings] Undefined Reference to 'typeinfo for ....

Richard Dale Richard_Dale at tipitina.demon.co.uk
Wed May 19 10:11:58 UTC 2004


On Wednesday 19 May 2004 10:42, Fabien Renaud wrote:
> Fabien Renaud wrote:
> > Ok, I now have all the .java
> > What is the easiest way to compile them all ?
> > javac searches in org.kde.qt ( and of course doesn´t find ).
> > Have I to put all .java in this directory first ?
> >
> >
> > Fabien
> >
> > _______________________________________________
> > Kde-bindings mailing list
> > Kde-bindings at kde.org
> > https://mail.kde.org/mailman/listinfo/kde-bindings
>
> I move the files in org/kde/qt that I created and now I have this :
>  > javac QXmlLocator.java
>
> QXmlLocator.java:4: cannot access org.kde.qt.Qt
> bad class file:
> /home/commgw/renaud/commbox/qtjava_definitive/org/kde/qt/Qt.java
> file does not contain class org.kde.qt.Qt
> Please remove or make sure it appears in the correct subdirectory of the
> classpath.
> import org.kde.qt.Qt;
>
> whereas I´m in this directory
> /home/commgw/renaud/commbox/qtjava_definitive/org/kde/qt
> and there is Qt.java
I think that's because you've only specified a single source file to javac. 
You need all the files and to add ../../.. to the classpath:

javac -d ../../..  -classpath ./../../.. *.java

Normally automake would generate the Makefile, so you can just type 'make'.



More information about the Kde-bindings mailing list