Setup Java

To use the Bayes Server Java API from follow the steps below to create and build a new Java project:

  • Create a new Java project in your favorite IDE (e.g. IntelliJ IDE)
  • Add a reference to the Bayes Server Java API BayesServer.jar (e.g. in C:\Program Files\Bayes Server\Bayes Server x.x\API\Java\)
  • Replace the Main function in your new Java project with the Main function from one of the Java examples in the code center.
  • Build and run the project

You can also call the Bayes Server Java API from other JVM languages such as Scala.