Trolltech Home | Qt-jambi-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-jambi-interest Archive, November 2006
Error trying to compile any example


Message 1 in thread

Hello,

I succedded trying the demo, I'm able to see all demos.
But when I try to compile a demo (any) I get the following error.
I'm using j2se 1.5.08.
If I remove all the .class files in the launcher directory I get the
same error while running qtjambi.sh

Exception in thread "main" java.lang.NoClassDefFoundError:
com.trolltech.qt.gui.QWidget
   at java.lang.Class.initializeClass(libgcj.so.7)
   at java.lang.Class.initializeClass(libgcj.so.7)
   at java.lang.Class.forName(libgcj.so.7)
   at gnu.java.lang.MainThread.run(libgcj.so.7)
Caused by: java.lang.ClassNotFoundException: java.lang.Enum not found
in gnu.gcj.runtime.SystemClassLoader{urls=[file:/home/pablo/workspace/Qt-AnalogClock/,file:/home/pablo/Desktop/Download/qt/qtjambi-linux-1.0.0-tp3/qtjambi.jar,file:/home/pablo/Desktop/Download/qt/qtjambi-linux-1.0.0-tp3/com/],
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.VMClassLoader.defineClass(libgcj.so.7)
   at java.lang.ClassLoader.defineClass(libgcj.so.7)
   at java.security.SecureClassLoader.defineClass(libgcj.so.7)
   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 java.lang.Class.initializeClass(libgcj.so.7)


Thanks,
Paul


Message 2 in thread

Hi, Paul.

Paul Vicenti wrote:

>
> But when I try to compile a demo (any) I get the following error.
> I'm using j2se 1.5.08.
> If I remove all the .class files in the launcher directory I get the
> same error while running qtjambi.sh
>
[...]

> Caused by: java.lang.ClassNotFoundException: java.lang.Enum not found
> in 
> gnu.gcj.runtime.SystemClassLoader{urls=[file:/home/pablo/workspace/Qt-AnalogClock/,file:/home/pablo/Desktop/Download/qt/qtjambi-linux-1.0.0-tp3/qtjambi.jar,file:/home/pablo/Desktop/Download/qt/qtjambi-linux-1.0.0-tp3/com/], 
>


The class loader is apparently not able to find some of the core 
components in the Java class library. Which class library are you using? 
It looks like you are compiling with GJC. Would you be able to download 
Sun's Java SDK and use their compiler and class library?

qtjambi.sh will only work if there are precompiled .class files in the 
launcher directory, so that error is to be expected.

-- Eskil


Message 3 in thread

The problem was that Eclipse was configured with an old version of Java (1.4)

Thank you,
Paul

On 11/22/06, Eskil A. Blomfeldt <eblomfel@xxxxxxxxxxxxx> wrote:
> Hi, Paul.
>
> Paul Vicenti wrote:
>
> >
> > But when I try to compile a demo (any) I get the following error.
> > I'm using j2se 1.5.08.
> > If I remove all the .class files in the launcher directory I get the
> > same error while running qtjambi.sh
> >
> [...]
>
> > Caused by: java.lang.ClassNotFoundException: java.lang.Enum not found
> > in
> > gnu.gcj.runtime.SystemClassLoader{urls=[file:/home/pablo/workspace/Qt-AnalogClock/,file:/home/pablo/Desktop/Download/qt/qtjambi-linux-1.0.0-tp3/qtjambi.jar,file:/home/pablo/Desktop/Download/qt/qtjambi-linux-1.0.0-tp3/com/],
> >
>
>
> The class loader is apparently not able to find some of the core
> components in the Java class library. Which class library are you using?
> It looks like you are compiling with GJC. Would you be able to download
> Sun's Java SDK and use their compiler and class library?
>
> qtjambi.sh will only work if there are precompiled .class files in the
> launcher directory, so that error is to be expected.
>
> -- Eskil
>