Hi Derek, Do you have your Qt and Jambi dlls in windows path?
Bye Karim --- On Sat, 6/9/08, Derek Fountain <[EMAIL PROTECTED]> wrote: > From: Derek Fountain <[EMAIL PROTECTED]> > Subject: [Qt-jambi-interest] Cannot find the main class error > To: [email protected] > Date: Saturday, 6 September, 2008, 2:10 PM > I'm trying to get QtJambi running from Eclipse under > Windows. I've > installed the Ganymede JEE package and the QTJambi Win 32 > package, and > added the Eclipse integration package. Things seem to work > correctly in > Eclipse: I can create a QtJambi project and create a dialog > using > designer integrated into Eclipse. The juic compiler tool > runs to create > a java file containing my design, and the project builds > without error. > > When I run it, however, I get a dialog pop up saying > "Could not find the > main class. Program will exit." The Eclipse console > contains the text > I've pasted below. The file > qtjambi-win32-msvc2005-4.4.0_01.jar it > appears to be trying to read exists in that location and is > readable. I > can unpack it in WinRar and it looks fine to me. > > I've got things working from Linux, so I think I've > got the installation > procedure right, and the Eclipse integration works fine > from Windows. > I've tried backing out my 1.6 JDK to 1.5, deleting > workspaces, and > reinstalling everything. I've tried 2 different > versions of the Eclipse > package (JEE and the more basic Java one). I've even > set up a virtual > machine and done a fresh install of everything in there to > ensure I'm > not getting contamination. Same error. > > Has anyone got any idea what I've done wrong? The error > in the Eclipse > console is: > > java.lang.ExceptionInInitializerError > at > com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:40) > Caused by: java.lang.RuntimeException: Loading library > failed, progress > so far: > Unpacking .jar file: > 'file:/C:/Documents%20and%20Settings/derek/My%20Documents/Tools/qtjambi-win32-gpl-4.4.0_01/qtjambi-win32-msvc2005-4.4.0_01.jar' > > at > com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:420) > at > com.trolltech.qt.internal.NativeLibraryManager.loadQtLibrary(NativeLibraryManager.java:352) > at > com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:120) > at > com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:116) > at > com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:36) > ... 1 more > Caused by: java.lang.RuntimeException: Failed to unpack > native > libraries, progress so far: > Unpacking .jar file: > 'file:/C:/Documents%20and%20Settings/derek/My%20Documents/Tools/qtjambi-win32-gpl-4.4.0_01/qtjambi-win32-msvc2005-4.4.0_01.jar' > > at > com.trolltech.qt.internal.NativeLibraryManager.unpack(NativeLibraryManager.java:365) > at > com.trolltech.qt.internal.NativeLibraryManager.loadLibrary_helper(NativeLibraryManager.java:426) > at > com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:415) > ... 5 more > Caused by: java.lang.NullPointerException > at > com.trolltech.qt.internal.NativeLibraryManager.readDeploySpec(NativeLibraryManager.java:483) > at > com.trolltech.qt.internal.NativeLibraryManager.unpackJarFile_helper(NativeLibraryManager.java:570) > at > com.trolltech.qt.internal.NativeLibraryManager.unpackJarFile(NativeLibraryManager.java:249) > at > com.trolltech.qt.internal.NativeLibraryManager.unpack_helper(NativeLibraryManager.java:382) > at > com.trolltech.qt.internal.NativeLibraryManager.unpack(NativeLibraryManager.java:360) > ... 7 more > Exception in thread "main" > _______________________________________________ > Qt-jambi-interest mailing list > [email protected] > http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest _______________________________________________ Qt-jambi-interest mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
