How can I use the DPSS within Java?

Document created by cdnadmin on Jan 25, 2014
Version 1Show Document
  • View in full screen mode
This document was generated from CDN thread

Created by: Joseph Clarke on 08-12-2012 11:48:13 AM
I would love to use the Swing UI to build an app that interacts with the DPSS.  Unfortunately, there doesn't appear to be any DPSS APIs for Java.  Did I miss something?  Is there a way to use DPSS from within Java?  Thanks.

Subject: RE: How can I use the DPSS within Java?
Replied by: Matthew J Denapoli on 15-12-2012 09:27:20 AM
I would love to use the Swing UI to build an app that interacts with the DPSS.  Unfortunately, there doesn't appear to be any DPSS APIs for Java.  Did I miss something?  Is there a way to use DPSS from within Java?  Thanks.
  There are two ways you can accomplish this.  One is to write a DPSS program in C that can be called using Runtime.exec() from your Java application.  The other, slightly cleaner way to do this, is to build a Java Native Interface (JNI) library that your Java application loads to interface with the DPSS.  Attached is a sample packet generator app written in Java with a DPSS JNI shim that handles injecting the packets on the network element.  This app is distributed under the Cisco BSD license with no implied support.

Attachments

    Outcomes