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.
Hi,
I hope you tried starting only 1 problematic application.
If you are active customer then you can contact PTC Support.
Yes, I tried several ways, even starting it separately, but no success yet. Juraj
@JurajKosmel wrote:
Yes, I tried several ways, even starting it separately, but no success yet. Juraj
Hi,
my suggestions:
1.] cut the application code, compile it and test it
If it works then return part of the program code -AND- repeat the same procedure.
If it does not work then cut part of the program code -AND- repeat the same procedure.
2.] send the code to PTC Support and ask them to test it
I am not sure if PTC Support will help you because Creo 7.0 is not supported anymore.
I've tried several options/java versions and whatever and finally I'm able to start plugin to a Running state without fail (with most of initialization code commented out as it fails with it anyway) after editing creo config.pro file and moving lines
add_java_class_path path/to/openjfx
jlink_java_command java --module-path path/to/openjfx --add-modules javafx.controls,javafx.fxml,javafx.swing
before
add_java_class_path path/to/my/plugin/myPlugin.jar
Now I continue with the application code to find out what is failing there.
@JurajKosmel wrote:
I've tried several options/java versions and whatever and finally I'm able to start plugin to a Running state without fail (with most of initialization code commented out as it fails with it anyway) after editing creo config.pro file and moving lines
add_java_class_path path/to/openjfx jlink_java_command java --module-path path/to/openjfx --add-modules javafx.controls,javafx.fxml,javafx.swing
before
add_java_class_path path/to/my/plugin/myPlugin.jar
Now I continue with the application code to find out what is failing there.
Hi,
I wish you good luck.
It's really weird. As I wrote before, moving the plugin add_java_class_path line after openjfx/jlink lines, the plugin is able to start, but other two plugins start then fails. When switching the lines back, the plugin won't start and other two plugins are running. And finally, when I comment out classpath entry for the failing plugin, the other two plugins are not able to start, even though there is no application dependency between plugins.
It seems there is some relation between lines order or order of loading plugins and their dependencies, but I can't see any sense there.
Hi,
If you want to save your time, then contact PTC Support, too.
Firstly try to run your plugins with "live" version, that means with Creo 8.0 or higher.
If you will be able to reproduce the problem then report it to PTC Support.