You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.8 KiB
51 lines
1.8 KiB
15 years ago
|
/***************************************************************************
|
||
|
* (C) 2000-2003 Lost Highway Ltd. All rights reserved. *
|
||
|
* *
|
||
|
* This program is free software; you can redistribute it and/or modify *
|
||
|
* it under the terms of the GNU Library General Public License as *
|
||
|
* published by the Free Software Foundation; either version 2 of the *
|
||
|
* License, or (at your option) any later version. *
|
||
|
* *
|
||
|
***************************************************************************/
|
||
|
|
||
|
Here are Java JNI based api bindings for KDE 3.2.
|
||
|
|
||
|
All the C++/Java files in this project are generated from the KDE 3.2 C++ headers,
|
||
|
apart from the following:
|
||
|
|
||
11 years ago
|
TDESupport.cpp
|
||
|
TDESupport.h
|
||
15 years ago
|
C++ static type conversion methods; Java <--> C++
|
||
11 years ago
|
|
||
15 years ago
|
BUILD INSTRUCTIONS
|
||
|
|
||
13 years ago
|
1) Ensure that the tdebindings/qtjava project has been built first.
|
||
11 years ago
|
$ cd tdebindings/tdejava
|
||
15 years ago
|
$ make
|
||
|
$ make install
|
||
|
|
||
|
The koala.jar file is installed in $(kde_libraries)/java.You will need to add
|
||
|
qtjava.jar and koala.jar to your classpath.
|
||
|
|
||
|
2) That's it - you should be able to compile and run the Java example
|
||
11 years ago
|
tdejava/koala/examples/kscribble by typing:
|
||
15 years ago
|
|
||
|
$ javac *.java
|
||
|
$ java Main
|
||
|
|
||
|
3) If you wish to write KDE Java applications, include the following in the class which has a main() function:
|
||
|
|
||
|
static {
|
||
|
qtjava.initialize();
|
||
11 years ago
|
tdejava.initialize();
|
||
15 years ago
|
}
|
||
|
|
||
11 years ago
|
It will load the KDE Java 'libtdejava.so' and 'libqtjava.so' shared libraries
|
||
15 years ago
|
|
||
|
4)
|
||
|
# Generate documentation
|
||
11 years ago
|
cd tdejava/koala/api
|
||
15 years ago
|
javadoc -classpath "../koala.jar:../../../qtjava/javalib/qtjava.jar" \
|
||
11 years ago
|
-author -version -splitindex -windowtitle "Koala KDE 3.2 Java api" ../org/trinitydesktop/koala/*.java -J-Xmx128m
|
||
15 years ago
|
|