cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
310
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: Asher Schweigart on 06-06-2012 05:15:20 PM
I am trying to start coding some custom java elements, and I would like to use a text editor to code instead of call studio. I am learning how to compile via command line, but what I don't know how to do is get the class files that the custom elements  import:
 

import com.audium.server.AudiumException;
import com.audium.server.voiceElement.ActionElementBase;
import com.audium.server.voiceElement.Dependency;
import com.audium.server.voiceElement.ElementInterface;
import com.audium.server.voiceElement.Setting;
import com.audium.server.voiceElement.ElementData;
import com.audium.server.voiceElement.ElementException;
import com.audium.server.xml.ActionElementConfig;

 
I'm assuming these can be found somewhere inside the call studio directory, but I have no idea where, and I don't know where to put them on my machine. I'm guessing they would go somewhere in the JDK directory?
 
Has anyone else tried to code custom elements this way?

Subject: RE: Compile Custom Java Elements via command line.
Replied by: Janine Graves on 06-06-2012 07:50:28 PM
Hi Ascher,
 
Most everything you need is in the framework.jar and servlet2.3.jar - you can search for these, they're in the eclipse/plugins directory somewhere. Occasionally you may need the elements.jar or sayitsmart.jar files. I usually include all 4 in my classpath so I don't ever need to worry about not having them.
 
If you look in the pdf from class named: cvp_801_ProgrammingGuide_8.0.pdf (Programming Guide for Cisco Unified CVP VXML Server and Cisco Unified CallStudio) it'll tell you that you need these jar files. It'll also get you started with the classes to extend or interfaces to implement to create different components. 
 
You'll need access to the javadocs (located on the VXMLServer in the directory C:/Cisco/CVP/VXMLServer/docs/javadocs) to make heads or tails of the java.
 
Regards, Janine
 
 

Subject: RE: New Message from Asher Schweigart in Customer Voice Portal (CVP) - Gene
Replied by: GEOFFREY THOMPSON on 06-06-2012 05:54:13 PM
>>>I am trying to start coding some custom java elements, and I would like to use a text editor to code instead of call studio.

Good idea. I use Apache Ant to help with the compilation and always code by hand. Tip: get a decent editor like GVIM or Notepad++.

Here’s a bit of the Ant build file

  <property name="audium" value="C:\Cisco\CallStudio\eclipse\plugins\com.audiumcorp.studio.library.framework_8.5.1" />
  <path id="classpath">
    <fileset dir="${audium}" includes="framework.jar" />
  </path>

So you can see how it works. Your java classpath has to include that JAR.

Regards,
Geoff

Subject: RE: New Message from Janine Graves in Customer Voice Portal (CVP) - General
Replied by: GEOFFREY THOMPSON on 06-06-2012 08:12:13 PM
>>>I usually include all 4 in my classpath so I don't ever need to worry about not having them.

I don’t work that way. As an old Java programmer, I only add JARs when the compiler complains. That way you learn what classes are in each jar.

Regards,
Geoff

Subject: RE: Compile Custom Java Elements via command line.
Replied by: Hemal Mehta on 07-06-2012 08:26:26 AM
While using textpad is ok, I would suggest using studio or some IDE for writing your program. As there are lot of features built in. Once you define your import statements etc you will be able to see the methods available etc.  You will be able to move faster. Just my two cents.
Hemal
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links