Qt-jambi-interest Archive, November 2007
I: UnsatisifiedLinkError
Message 1 in thread
Another aspect that I?ve noticed is the fact that if I don?t load my lib
calls to QtCoreApplication.initialize an QtCoreApplication.exec are executed
without problems?
Best regards,
Marco Bnà
Da: Marco Bnà [mailto:bna.marco@xxxxxxxxx]
Inviato: domenica 4 novembre 2007 16.16
A: 'qt-jambi-interest@xxxxxxxxxxxxx'
Oggetto: UnsatisifiedLinkError
Hi! Running the following program :
/*
* Main.java
*
* Created on 2 novembre 2007, 14.20
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package qjambitest;
import com.trolltech.qt.core.*;
import com.trolltech.qt.network.*;
/**
*
* @author Marco
*/
public class Main {
/** Creates a new instance of Main */
public Main() {
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
QCoreApplication.initialize(args);
//QTcpServer server = new QTcpServer();
//QHostAddress addr = new QHostAddress("127.0.0.1");
//server.listen(addr, 55000);
QCoreApplication.exec();
}
static
{
System.loadLibrary("jiaxclient");
}
}
I have the following exception:
Exception in thread "main" java.lang.UnsatisfiedLinkError:
com.trolltech.qt.core.QtJambi_LibraryInitializer.__qt_initLibrary()V
at
com.trolltech.qt.core.QtJambi_LibraryInitializer.__qt_initLibrary(Native
Method)
at
com.trolltech.qt.core.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryIni
tializer.java:10)
at
com.trolltech.qt.core.QAbstractFileEngineHandler.<clinit>(QAbstractFileEngin
eHandler.java:10)
at
com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitiali
zer.java:24)
at com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:29)
at qjambitest.Main.main(Main.java:29)
Java Result: 1
The line System.loadLibrary(?jiaxclient?) loads a library that make use
inside its code of classes QTcpServer, QTcpSocket, QHostAddress? The dll
compiled to use this classes inside c++ are build for VS2005? QtJambi has
been download from open source link.
Could someone help me to solve the problem?
Best regards,
Marco Bnà