How to compile Java code that uses the Spotfire Server API (com.spotfire.server.*).
When compiling Java code that uses the Spotfire Server Java API, it must be linked with classes in the package com.spotfire.server.* that is contained within one of the server jar files. Which exact jar file depends on the version you are using.
An example of extensions that need this jar file for compilation include Custom Authentication Filter, Post Authentication Filter and JAAS module.
1. Start by locating <Spotfire Server installation directory>\tomcat\webapps\spotfire\WEB-INF\lib\spotfire-public-java-api.jar file that comes with the Spotfire Server installation.
2. The jar file from the previous step should now be added to the class path to javac:
javac -classpath ".;/path/to/spotfire-public-java-api.jar;" MyCode.java
Example compile command if the compiler runs on the Spotfire Server itself:
javac -classpath ".;C:\spotfire\spotfireserver\14.0.9\tomcat\webapps\spotfire\WEB-INF\lib" MyCode.java
API Reference - Spotfire Server API:
https://docs.tibco.com/pub/sfire_dev/area/doc/api/TIB_sfire_server_Server_API_Reference/index.html
API Reference - CustomAuthenticator:
API Reference - PostAuthenticationFilter:
Comments
0 comments
Article is closed for comments.