So I’ve run into error that I’ve not encountered before when using VP and more specifically, using the plugin scripts mechanism.
To give some context, we use a Mac VM to execute scripts throughout the day. When I’m connected to the device using Screen Sharing, I am able to execute these commands from within the terminal no problem. eg; example of updating a VP project using the plugin script
cd "/Applications/Visual Paradigm.app/Contents/Resources/app/scripts/" && sh UpdateTeamworkProject.sh -workspace "/Users/x/Library/Application Support/VisualParadigm/ws/" -project "/Users/x/Library/Application Support/VisualParadigm/ws/teamwork_client/projects/y/y.vpp"
However when accessing the device using
ssh and running the same script as above, I get the following error from java:
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class sun.lwawt.macosx.LWCToolkit at java.desktop/sun.awt.PlatformGraphicsInfo.createToolkit(PlatformGraphicsInfo.java:47) at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:592) at java.desktop/sun.awt.CGraphicsEnvironment.<clinit>(CGraphicsEnvironment.java:73) at java.desktop/sun.awt.PlatformGraphicsInfo.createGE(PlatformGraphicsInfo.java:43) at java.desktop/java.awt.GraphicsEnvironment$LocalGE.createGE(GraphicsEnvironment.java:93) at java.desktop/java.awt.GraphicsEnvironment$LocalGE.<clinit>(GraphicsEnvironment.java:84) at java.desktop/java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:106) at v.aid.ad.a(:299) at v.aid.ad.g(:261) at v.avz.bm.a(:834) at v.avz.bm.a(:239) at v.avc.b.a(:83) at com.vp.cmd.UpdateTeamworkProject.a(:38) at com.vp.cmd.UpdateTeamworkProject.main(:23)
I am running the following version of VP: 16.1 and the current Java version is: 8 update 301.
Any help on this would be much appreciated.