Skip to content

PyramidTechnologies/Java-API-desktop-sample

Repository files navigation

Java API Dekstop Example

Sample application utilizing the Pyramid Java API for Pyramid bill validators. With this API you can quickly configure your application to operate with a bill validator. This application shows RS-232 state transition and reports the denomination of accepted notes.

This is provided as both a Netbeans and Intellij project.

Important

If youa re using an Apex 7000 or Spectra, please make sure that all of your dip switches are in the off position. The unit msust be in RS-232 mode to use this library. For more information about configuration, please see our faq.

Requirements

  1. A supported bill validator
    • Spectra
    • Apex 7000
    • Apex 5000
    • Trilogy requires RS-232 firmware
    • Curve require RS-232 firmware
  2. Communication Harness
  3. Your favorite Java editor (we use Netbeans because projects are easy to share)

Setup

If you are using Netbeans, simply open the project and satisfy the PTalk.jar dependency. You will then be able to run and debug the application.

If you are using Intellij, the project should import and handle all of the depency stuff for you via gradle. NOTE: When exporting the JAR, you must have the forms_rt.jar on your classpath!

Notes for Linux users running Java 8

We have had mixed reports of this application not finding all available ports. The fix seems to be to run the app from terminal using the -jar switch

java -jar your_app.jar

Dependencies

If you prefer to handle your own dependencies, here is what you will need

  1. The ptalk.jar file from this project (which itself include its bundled dependencies)
  2. (log4j12-1.7.12)[http://mvnrepository.com/artifact/log4j/log4j/1.2.17]
  3. (Already in PTalk) jSSC latest

Please note that you may omit logging or swap out log4j for another framework.

Questions

Please let us know.

About

Pyramid Technologies API sample for the desktop

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages