KX Connect (Java)
This section assumes that you have Java installed in your system. If not, install before proceeding further.
Check JAVA installation
- Check if a valid jdk is on the path by typing
- Check if a valid jdk compiler is on the path by typing
Output should look similarly.
java -version openjdk version "1.8.0_222" OpenJDK Runtime Environment (build 1.8.0_222-8u222-b10-1ubuntu1~16.04.1-b10) OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode) javac -version javac 1.8.0_222
- Create a folder
- Later, place the java code in this folder.
- Create another folder
libin the same layer as
There are required jar files that must added to run the code provided below. Take the time now to install what you need and put them in the
Provided is an example code of how to authenticate with KX Connect. For further detail, refer to the KX Connect documentation or the JS, Python examples.
Copy and paste the following code into a file
ConnectSample.java. If using another file name, also change the class name in the code.
Below includes CSV Export:
KX Connect Document
Details of KX Connect can be found in your deployed system at
This should include dynamically generated API documentation of your analytics.
ConnectSample.java from your Java root folder.
javac -cp ".:lib/*" com/fd/connect/ConnectSample.java
To run with default parameters:
java -cp ".:lib/*" com.fd.connect.ConnectSample
To run with override parameters:
java -cp ".:lib/*" com.fd.connect.ConnectSample <host>:<port> <username> <password> <method>
When you use the -cp option, it overrides the default classpath (which is current directory). Always add in the current directory to the classpath.
If you've coded to print the result out to console, it should look like this: