[Kde-java] qtjava (kdebindings-3.5.4-1mdv2007.0.src.rpm)

Kevin Krammer kevin.krammer at gmx.at
Wed Oct 11 09:43:41 CEST 2006


On Wednesday 11 October 2006 07:55, Rafael Lopez wrote:
> Hello,
>
> I have the following problem with qtjava: on my suse 10.0 (and 10.1), using
> the suse packages, I can get my own programs to compile fine with gcj and
> then run. However, on mandriva 2007.0, using the source rpm for
> kdebindings, then building them, then installing them to have qtjava.jar,
> it just fails to link (if I try to compile and link) or compiles without
> errors but fails to run (both with gcj and javac/java).
>
> The code used to test is the one on
> http://www.valdyas.org/fading/index.cgi/hacking/gcj.html
>
> Logs are below:
> Compiles with gcj but won't run:
> [endless at localhost ~]$ export CLASSPATH=/usr/lib64/java/qtjava.jar
> [endless at localhost ~]$ gcj -C -classpath ${CLASSPATH} Hello.java
> [endless at localhost ~]$ gij -classpath ${CLASSPATH} Hello
> Exception in thread "main" java.lang.NoClassDefFoundError: Hello
>    at gnu.java.lang.MainThread.run(libgcj.so.7)
> Caused by: java.lang.ClassNotFoundException: Hello not found in
> gnu.gcj.runtime.SystemClassLoader{urls=[file:/usr/lib64/java/qtjava.jar],
> parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
>    at java.net.URLClassLoader.findClass(libgcj.so.7)
>    at java.lang.ClassLoader.loadClass(libgcj.so.7)
>    at java.lang.ClassLoader.loadClass(libgcj.so.7)
>    at java.lang.Class.forName(libgcj.so.7)
>    at gnu.java.lang.MainThread.run(libgcj.so.7)
> [endless at localhost ~]$

Maybe you need to explicitly add the current directory or "." to the classpath

Cheers,
Kevin
-- 
Kevin Krammer, KDE developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-java/attachments/20061011/7fb68d9f/attachment.pgp 


More information about the Kde-java mailing list