Skip to main content
10-Marble
December 24, 2020
Solved

Startup of application failed - otk_java_appl CREO 7.0

  • December 24, 2020
  • 4 replies
  • 5532 views

Hi,


I am trying to work with CREO Object Toolkit Java, there are few sample apps such as "InstallTest" and a User Guide, I followed the User Guide but still unable to run java apps, I get this error when starting any auxiliary application, "Startup of application failed".  My version is 7.0. Can anyone help me?


Thanks,
Hamza

Best answer by MartinHanak

@hamzawaseem wrote:

Hi,


I am trying to work with CREO Object Toolkit Java, there are few sample apps such as "InstallTest" and a User Guide, I followed the User Guide but still unable to run java apps, I get this error when starting any auxiliary application, "Startup of application failed".  My version is 7.0. Can anyone help me?


Thanks,
Hamza


Hi,

1.]

Install Creo Parametric 7.0.2.0 ... do not forget install item containing Java OTK and J-Link.

2.]

Install 64bit version of Java ... JDK and JRE

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 

3.]

Compile "InstallTest" ... see my following batch file

@echo off

set CLASSPATH=E:\PTC\Creo7_020_Jlink\Creo 7.0.2.0\Common Files\text\java\otk.jar;%CLASSPATH%
set CLASSPATH=E:\PTC\Creo7_020_Jlink\Creo 7.0.2.0\Common Files\text\java\pfcasync.jar;%CLASSPATH%
echo CLASSPATH=%CLASSPATH%

del *.jar

del *.class

del trail.txt.*

D:\programy\jdk1.8.0_271\bin\javac.exe *.java

D:\programy\jdk1.8.0_271\bin\jar.exe cvf mh.jar *.class

pause

4.]

Add following option into config.pro file, for example

jlink_java_command D:\programy\jre1.8.0_271_64bit\bin\java.exe

5.]

Start Creo and run application.

 

 

4 replies

KenFarley
21-Topaz II
December 24, 2020

Try typing "startup failed" in the "Search all content" window at the top right of the page you're viewing this on. Lots of results there, since this question is an oft-repeated one. Likely something to do with not having the JRE installed or your path specification being incomplete or wrong, I guess. I'm not doing any J-Link stuff with Creo, so I can't help with specifics.

17-Peridot
December 26, 2020

Could it be a missing license for JOTK?

 

I am not sure you can develop JOTK without one.

 

Dave

24-Ruby III
December 26, 2020

@hamzawaseem wrote:

Hi,


I am trying to work with CREO Object Toolkit Java, there are few sample apps such as "InstallTest" and a User Guide, I followed the User Guide but still unable to run java apps, I get this error when starting any auxiliary application, "Startup of application failed".  My version is 7.0. Can anyone help me?


Thanks,
Hamza


Hi,

1.]

Install Creo Parametric 7.0.2.0 ... do not forget install item containing Java OTK and J-Link.

2.]

Install 64bit version of Java ... JDK and JRE

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 

3.]

Compile "InstallTest" ... see my following batch file

@echo off

set CLASSPATH=E:\PTC\Creo7_020_Jlink\Creo 7.0.2.0\Common Files\text\java\otk.jar;%CLASSPATH%
set CLASSPATH=E:\PTC\Creo7_020_Jlink\Creo 7.0.2.0\Common Files\text\java\pfcasync.jar;%CLASSPATH%
echo CLASSPATH=%CLASSPATH%

del *.jar

del *.class

del trail.txt.*

D:\programy\jdk1.8.0_271\bin\javac.exe *.java

D:\programy\jdk1.8.0_271\bin\jar.exe cvf mh.jar *.class

pause

4.]

Add following option into config.pro file, for example

jlink_java_command D:\programy\jre1.8.0_271_64bit\bin\java.exe

5.]

Start Creo and run application.

 

 

10-Marble
December 28, 2020

Thank you Martin, this and also your solution on another post helped.