« Back to General Discussion - All Versions

Compile Custom Java Elements via command line.

Combination View Flat View Tree View
Threads [ Previous | Next ]
Compile Custom Java Elements via command line.
custom element call studio call studio cvp custom java
Answer
6/6/12 10:15 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?

>>>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

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
 
 

>>>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

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