Skip to main content
10-Marble
November 13, 2024
Solved

jLink Java application startup failed - Creo 7 + JDK 11

  • November 13, 2024
  • 1 reply
  • 2245 views

Hello,

 

We have 3 jLink (java) applications/plugins correctly running on PTC Creo 7 + Java 8. Now we're testing Creo 7 + Java 11 (because of future upgrade to Creo 9/10 with Java 11). We've compiled plugins files with a same JDK11 but one of the plugins fails running with message 'Startup of application "app name" failed.' Plugins configuration is same, they're using same otk/pfc dependency, same java version for compilation and same Creo 7 instance. 

 

I've found this article but most of points are not suitable as other two plugins are running properly. Is there a more detailed log file of creo application startup to see any detailed information what goes wrong when starting plugin? Any other idea how to debug/investigate it?

 

Thank you very much.

Best answer by JurajKosmel

Sorry for a late answer - I forgot on it 🙂 Finally I was able to run the stuff by locating all libraries in one folder (with OpenJFX libs too) and adding plugins dependencies directly via Creo management tool configuration instead of manual records in configuration file. Now it is working and all plugins are running.

1 reply

24-Ruby III
November 13, 2024

Hi,

I hope you tried starting only 1 problematic application.

If you are active customer then you can contact PTC Support.

10-Marble
November 14, 2024

Yes, I tried several ways, even starting it separately, but no success yet. Juraj

10-Marble
November 18, 2024
Finally I've found out that plugin which dependency is added as the first, is not able to run. I'm using this configuration in this order:
 
jlink_java_command java --module-path D:\java\javafx-sdk-17.0.13\lib --add-modules javafx.controls,javafx.fxml,javafx.swing,javafx.base,javafx.embed,javafx.graphics,javafx-swt
jlink_java2 on
add_java_class_path plugin\Creo7\lib\plugin1.jar
add_java_class_path plugin\Creo7\lib\plugin2.jar
add_java_class_path plugin\Creo7\lib\plugin3.jar
add_java_class_path plugin\Creo7\lib\plugin4.jar
add_java_class_path D:\java\javafx-sdk-17.0.13\lib\*
add_java_class_path Creo7\lib\fx-gson\3.1.2\fx-gson-3.1.2.jar
add_java_class_path Creo7\lib\gson\2.8.6\gson-2.8.6.jar
 
If I switch plugin1 path with other plugin, then the other plugin is not working. It's really weird and I have no solution/cause of it. I've even tried to create a dummy empty plugin and put its jar file on first place, but in this case whole Creo crashes on startup.