Author Topic: Basic example for Voice Platform SDK in Java  (Read 9622 times)

Offline victor

  • Administrator
  • Hero Member
  • *****
  • Posts: 1416
  • Karma: 18
Basic example for Voice Platform SDK in Java
« on: April 23, 2007, 07:45:58 AM »
Hi, does anyone have a basic sample for voice platform SDK in Java?
I can find one for C# but nothing in Java  :-[

Thanks in advance,
Vic

Offline catanirex

  • Sr. Member
  • ****
  • Posts: 272
  • Karma: 11
Re: Basic example for Voice Platform SDK in Java
« Reply #1 on: April 23, 2007, 08:44:02 AM »
Have you checked on Genesys Devzone?

https://devzone.genesyslab.com/devportal/downloads.aspx

Offline victor

  • Administrator
  • Hero Member
  • *****
  • Posts: 1416
  • Karma: 18
Re: Basic example for Voice Platform SDK in Java
« Reply #2 on: April 24, 2007, 04:04:17 AM »
Holy molly!!!

I just looked at the devzone and it has quite a few examples! You are right!
Of course, they are for 7.5 and I have 7.2, but it seems to be pretty cool!
Most of them are in C# and not in Java. The only thing I can find in Java is "blocks"...
And I cannot find example of how to use them anywhere... >:(

I tried compiling WARM STANDBY with ANT and get this:

[quote]
[tt]
init:
    [mkdir] Created dir: C:\test\Warm Standby for Platform SDK Java\dist

build-java:
    [mkdir] Created dir: C:\test\Warm Standby for Platform SDK Java\dist\classes
    [javac] Compiling 5 source files to C:\test\Warm Standby for Platform SDK Java\dist\classes

BUILD FAILED
C:\test\Warm Standby for Platform SDK Java\build.xml:67: C:\lib not found.

Total time: 0 seconds
[/tt]

What is this mysterious c:\lib?!!!!

Here is my env setting:

[tt]ALLUSERSPROFILE=C:\Documents and Settings\All Users
ANT_HOME=C:\Program Files\apache-ant-1.7.0
APPDATA=C:\Documents and Settings\Victor\Application Data
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=C3PO
ComSpec=C:\WINDOWS\system32\cmd.exe
DevEnvDir=C:\Program Files\Microsoft Visual Studio 8\Common7\IDE
DXSDK_DIR=C:\Program Files\Microsoft DirectX SDK (February 2007)\
FP_NO_HOST_CHECK=NO
FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework
FrameworkSDKDir=C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0
FrameworkVersion=v2.0.50727
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\Victor
INCLUDE=C:\Program Files\Microsoft Visual Studio 8\VC\ATLMFC\INCLUDE;C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE;C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\include;
JAVA_HOME=C:\j2sdk1.4.1_03
LIB=C:\Program Files\Microsoft Visual Studio 8\VC\ATLMFC\LIB;C:\Program Files\Microsoft Visual Studio 8\VC\LIB;C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\lib;
LIBPATH=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 8\VC\ATLMFC\LIB
LOGONSERVER=\\C3PO
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Path=C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;C:\Program Files\Microsoft Visual Studio 8\VC\BIN;C:\Program Files\Microsoft Visual Studio 8\Common7\Tools;C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\bin;C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\bin;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 8\VC\VCPackages;C:\Program Files\Microsoft DirectX SDK (February 2007)\Utilities\Bin\x86;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\j2sdk1.4.1_03\bin;C:\Sun\SDK\bin;C:\Program Files\apache-ant-1.7.0\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 79 Stepping 2, AuthenticAMD
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=4f02
ProgramFiles=C:\Program Files
PROMPT=$P$G
SESSIONNAME=Console
SonicCentral=C:\Program Files\Common Files\Sonic Shared\Sonic Central\
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\Victor\LOCALS~1\Temp
TMP=C:\DOCUME~1\Victor\LOCALS~1\Temp
USERDOMAIN=C3PO
USERNAME=Victor
USERPROFILE=C:\Documents and Settings\Victor
VCINSTALLDIR=C:\Program Files\Microsoft Visual Studio 8\VC
VS80COMNTOOLS=C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\
VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 8
windir=C:\WINDOWS
[/tt]
[/quote]

Any help would be greatly appreciated!

On a bit related topic: the more I look at it, the more I find the similarity between Universal SDK and ActiveX and TLib. Is it just me or did Genesys decide to clamp down on third-party programming by requiring everyone to order SDK and on top of it register a "connector"? I liked the availibility of ActiveX which allowed us create additional features for existing Genesys without being required to pay additional fees for using their product.

It is like requiring Firefox developers to purchase "Internet Browsing License" for Windows... Can someone please explain to me why Genesys started to require paying extra to use what is already paid for? Am I the only one confused and perturbed? ???



Best regards,
Vic
« Last Edit: April 24, 2007, 07:04:47 AM by victor »

Peter J

  • Guest
Re: Basic example for Voice Platform SDK in Java
« Reply #3 on: April 24, 2007, 07:36:56 AM »
Vic,

check if your application block is two directories down from the main SDK directory. Like this:

C:\Program Files\GCTI\Platform SDK for Java 7.2\applicationblocks\warmstandby

I bet that you probably copied the block from the web and have stored it somewhere else.

Peter J.