PDA

View Full Version : Provided Sample for demonstrating the Build Automation Layer doesn't work



installD
05-15-2006, 07:17 AM
The Sample given for the Build Automation Layer is not getting executed. These sample files can be found at this location on a windows installation "C:\Program Files\Macrovision\IS11.5MP\HelpLibrary\SampleCode\AutomationLayer".
I recompiled all the java files provided and tried to execute this command

>java SimpleInstallerCreationExample

This yields into the following error message.

com.installshield.isje.project.AutomationException: failed to create project
at com.installshield.isje.project.ProjectAutomation.createNewProjectInstance(Unknown Source)
at com.installshield.isje.project.ProjectAutomation.createNewProjectInstance(Unknown Source)
at com.installshield.isje.project.ProjectAutomation.createNewProjectInternal(Unknown Source)
at com.installshield.isje.product.UniversalProjectAutomation.createNewProject(Unknown Source)
at SimpleInstallerCreationExample.main(SimpleInstallerCreationExample.java:48)

Also note that in the CLASSPATH variable is set to include all the jar files provided in the lib and distributables folders.The CLASSPATH value is :
CLASSPATH=.;C:\Progra~1\Macrovision\IS11.5MP\lib\ant.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\bootstrap.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\builder.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\derby.jar;C:\Progra~1\Macr
ovision\IS11.5MP\lib\dim.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\hsqldb.jar;C:\Progra~1\Macrovision\IS11.5MP\
lib\ib5core.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\ib5swing.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\ib5util.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\icebrowserbean.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\icebrowserlitebean.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\ide.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\iswi.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\jce1_2_2.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\jhall.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\jsearch.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\local_policy.jar;C:\Progra~1\Macrovision\IS11
.5MP\lib\parser.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\platform.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\pro
duct.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\sunjce_provider.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\swing.j
ar;C:\Progra~1\Macrovision\IS11.5MP\lib\ui.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\us.jar;C:\Progra~1\Macrovi
sion\IS11.5MP\lib\US_export_policy.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\wizard.jar;C:\Progra~1\Macrovision
\IS11.5MP\lib\xalan.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\xercesImpl.jar;C:\Progra~1\Macrovision\IS11.5MP\l
ib\xml-apis.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\xt.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\ppk\aixppk.ja
r;C:\Progra~1\Macrovision\IS11.5MP\lib\ppk\as400ppk.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\ppk\genericunixpp
k.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\ppk\hpuxppk.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\ppk\linuxppk.j
ar;C:\Progra~1\Macrovision\IS11.5MP\lib\ppk\macosxppk.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\ppk\solarisppk.
jar;C:\Progra~1\Macrovision\IS11.5MP\lib\ppk\webppk.jar;C:\Progra~1\Macrovision\IS11.5MP\lib\ppk\win32ppk.jar;
C:\Progra~1\Macrovision\IS11.5MP\distributables\platform\ext\aixppk.jar;C:\Progra~1\Macrovision\IS11.5MP\distr
ibutables\platform\ext\as400ppk.jar;C:\Progra~1\Macrovision\IS11.5MP\distributables\platform\ext\genericunixpp
k.jar;C:\Progra~1\Macrovision\IS11.5MP\distributables\platform\ext\hpuxppk.jar;C:\Progra~1\Macrovision\IS11.5M
P\distributables\platform\ext\linuxppk.jar;C:\Progra~1\Macrovision\IS11.5MP\distributables\platform\ext\macosx
ppk.jar;C:\Progra~1Macrovision\IS11.5MP\distributables\platform\ext\solarisppk.jar;C:\Progra~1\Macrovision\IS11.5MP\distributables\platform\ext\windowsppk.jar;C:\Progra~1\Macrovision\IS11.5MP\distributables\engine\engin
e.jar;C:\Progra~1\Macrovision\IS11.5MP

PS: Using ANT also yield to the same problem.

Can anyone suggest why the creation of the project is failing ?