summaryrefslogtreecommitdiffstats
path: root/tdejava/README
blob: 273df90902b0dba564871f84b94ac1aafa28f4e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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:

TDESupport.cpp
TDESupport.h
	C++ static type conversion methods; Java <--> C++

BUILD INSTRUCTIONS

1)  Ensure that the tdebindings/qtjava project has been built first.
    $ cd tdebindings/tdejava
    $ 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
   tdejava/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();
		tdejava.initialize();
	}

It will load the KDE Java 'libtdejava.so' and 'libtqtjava.so' shared libraries

4)
# Generate documentation
cd tdejava/koala/api
javadoc -classpath "../koala.jar:../../../qtjava/javalib/qtjava.jar" \
  -author -version -splitindex -windowtitle  "Koala KDE 3.2 Java api" ../org/trinitydesktop/koala/*.java -J-Xmx128m