The Qt Jambi package comes prebuilt for Linux, Mac OS X and Windows. The package requires Java 1.5 or later to be installed. On Mac Os X and Linux, the PATH environment variable must also be set for examples to run.
Enjoy !
To run the examples and demo launcher on Windows run the
qtjambi.exe
executable from the root directory. On Linux and Mac OS X run the
qtjambi.sh
shell script. Running these files will also verify the virtual machine version and set the correct environment for running Qt Jambi applications.
To manually run Qt Jambi, the CLASSPATH environment variable must include the qtjambi.jar file to get access to the library. To run the examples or launcher, the classpath must also include the Qt Jambi root directory.
Finally, Qt Jambi must be enabled to find the native libraries:
| Platform | Comment |
|---|---|
| Windows | Set the PATH environment variable to include the bin directory in the Qt Jambi directory. |
| Linux | Set the LD_LIBRARY_PATH environment variable to include the lib directory in the Qt Jambi directory. |
| Mac OS X | Set the DYLD_LIBRARY_PATH environment variable to include the lib directory in the Qt Jambi directory. |
See also the qtjambi.sh file for details on which environment variables to set.
| Platform | Comment |
|---|---|
| Mac OS X | When running a Qt Jambi application, it is necessary to pass the -XstartOnFirstThread argument to the Java executable. |
| Linux / 64 bit: | Install a 32 bit virtual machine, e.g., on Ubuntu, install the ia32-sun-java5-bin package and put /usr/lib/jvm/ia32-java-1.5.0-sun-1.5.0.06/jre/bin into the PATH environment variable. The final release will of course ship with sources, so you can compile and run it with the full 64 bit version of Java. |
The generator is a Qt application which can be used to map C++ based Qt APIs onto equivalent Java APIs. The Qt Jambi package provides an example on how to use the Qt Jambi Generator, located in the path/to/Qt Jambi/generator_example directory.
To generate the example's Java library run the
generator_example.bat
script on Windows. On Linux and Mac OS X run
generator_example.sh
These scripts will generate and compile the Java source code, as well as compile the C++ side of the example. See the script files for details.
Warning: The Qt Jambi generator is written to handle Qt based source code, and is not intended for mapping C++ libraries in general.
| Copyright © 2007 Trolltech | Trademarks | Qt Jambi |