1 follower Follow

Action Plan Optimizer - Command line

When you launch the Action Plan Optimizer from CAST AIP Installation, you may come across the below error - 


This occurs when you have an open JDK installed or an incompatible version of JRE running. 

As a workaround, you can force use the CAST Embedded JRE to launch the Action Plan Optimizer from the command line. 

I have given below an example for AIP Version 8.3.5. 

To get the command line that needs to be used, you need to first launch the Action Plan Optimizer. (double click on the CAST-ActionPlanOptimizer.exe) from the CAST-AIP Installation.

From Task Manager, generate the dump file. 



Open the Dump file in Notepad++ and search for CAST-ActionPlanOptimizer.exe

You will get the command line that is launched

The command line to be launched from CMD is below for AIP Version 8.3.5 - 

<CAST Installation Folder>\JRE\bin\java.exe -classpath "<Cast Installation Folder>\CAST-ActionPlanOptimizer.exe;anything;CAST-Utilities-8.3.5-SNAPSHOT.jar;commons-logging-1.1.1.jar;commons-io-2.0.1.jar;CAST-CommandLineApplications-8.3.5-SNAPSHOT.jar;CAST-AMTMetaModel-8.3.5-SNAPSHOT.jar;dom4j-1.6.1.jar;xml-apis-1.0.b2.jar;CAST-DataSets-8.3.5-SNAPSHOT.jar;CAST-ObjectSets-8.3.5-SNAPSHOT.jar;CAST-Connectivity-8.3.5-SNAPSHOT.jar;postgresql-9.2-1004-jdbc3.jar;hsqldb-2.2.8.jar;oracle-ojdbc6-;jtds-1.2.jar;db2jcc-1.4.2.jar;db2jcc_license_cu-1.4.2.jar;sqljdbc4-4.0.jar;jconn2-5.5.jar;CAST-Java-8.3.5-SNAPSHOT.jar;javassist-3.18.0-GA.jar;commons-lang3-3.4.jar;CAST-Swing-8.3.5-SNAPSHOT.jar;gettext-commons-0.9.8.jar;cglib-nodep-2.2.2.jar;jna-3.4.0.jar;platform-3.4.0.jar;protobuf-java-2.4.1.jar" com.castsoftware.actionplanoptimizer.ActionPlanOptimizerApplication

Please sign in to leave a comment.