diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 90825e2392b2d70e43c7a25b8a3752299a933894 (patch) | |
tree | e33aa27f02b74604afbfd0ea4f1cfca8833d882a /kdejava/README | |
download | tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.tar.gz tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdejava/README')
-rw-r--r-- | kdejava/README | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/kdejava/README b/kdejava/README new file mode 100644 index 00000000..4dcd53e5 --- /dev/null +++ b/kdejava/README @@ -0,0 +1,50 @@ +/*************************************************************************** + * (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: + +KDESupport.cpp +KDESupport.h + C++ static type conversion methods; Java <--> C++ + +BUILD INSTRUCTIONS + +1) Ensure that the kdebindings/qtjava project has been built first. + $ cd kdebindings/kdejava + $ 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 + kdejava/koala/examples/kscribble by typing: + + $ 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(); + kdejava.initialize(); + } + +It will load the KDE Java 'libkdejava.so' and 'libqtjava.so' shared libraries + +4) +# Generate documentation +cd kdejava/koala/api +javadoc -classpath "../koala.jar:../../../qtjava/javalib/qtjava.jar" \ + -author -version -splitindex -windowtitle "Koala KDE 3.2 Java api" ../org/kde/koala/*.java -J-Xmx128m + |