<commit_before>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](http://pyramidacceptors.com/support/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
   - [Recommended Harness](http://shop.pyramidacceptors.com/usb-rs-232-communication-cable-harness-for-apex-05aa0023/)
   - Or a DB9 RS-232 connection or USB UART cable of your choice
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.

## 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](https://github.com/PyramidTechnologies/Java-API-desktop-sample/issues/new).


![](https://googledrive.com/host/0B79TkjL8Nm20QjU0UGhObnBTUE0/logo_2.jpg)<commit_msg>mention forms_rt.jar<commit_after>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](http://pyramidacceptors.com/support/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
   - [Recommended Harness](http://shop.pyramidacceptors.com/usb-rs-232-communication-cable-harness-for-apex-05aa0023/)
   - Or a DB9 RS-232 connection or USB UART cable of your choice
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](https://github.com/PyramidTechnologies/Java-API-desktop-sample/issues/new).


![](https://googledrive.com/host/0B79TkjL8Nm20QjU0UGhObnBTUE0/logo_2.jpg)
{'fraction_non_alphanumeric': 0.06840098676833371, 'fraction_numerical': 0.030051581071989235, 'mean_word_length': 4.028184892897407, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6826106', 'n_tokens_mistral': 1400, 'n_tokens_neox': 1257, 'n_words': 587}