Difficult basics

Gunnar Sletta gunnar at trolltech.com
Tue Feb 26 09:55:02 CET 2008


Mikael Lundin wrote:
> Dear group,
> 
> I am trying to get started with qt-jambi and the first "Hello world" example:
> 
> HelloWorld.java
> --------------------------------------------------
> import com.trolltech.qt.gui.*;
> 
>     public class HelloWorld
>     {
>         public static void main(String args[])
>         {
>             QApplication.initialize(args);
> 
>             QPushButton hello = new QPushButton("Hello World!");
>             hello.resize(120, 40);
>             hello.setWindowTitle("Hello World");
>             hello.show();
> 
>             QApplication.exec();
>         }
>     }
> 
> ----------------------------------------------------
> I include qt-jambi bin directory in my PATH var:
> 
>         PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Java\jdk1.6.0_02\bin;"C:\program files\qtjambi-win32-gpl-4.3.3_01\bin"

Hi,

The binaries are loaded from "bin" on windows and "lib" on Linux and Mac 
OS X, so "bin" should be enough. Could you try without the quotes?

If that doesn't help, you can try starting the application with

java -Dcom.trolltech.qt.verbose-loading [your other options]

And see if the output gives any clearer indication of what is wrong.

-
best regards,
Gunnar



More information about the Qt-jambi-interest mailing list