Troubleshooting: Java Error When Config Tools Used From Command Line

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Troubleshooting: Java Error When Config Tools Used From Command Line

No ratings

Troubleshooting: Java Error When Config Tools Used From Command Line

For S32 Design Studio v3.5 and earlier, there is a known issue when the S32 Configuration Tools are invoked from command line from a location outside of the S32DS installation directory.

The following error is reported:

java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
        at com.nxp.swtools.common.utils.runtime.SingletonProvider.getSingletonInstance(SingletonProvider.java:46)
        at com.nxp.swtools.common.ui.utils.swt.internal.SWTFactory.getSingletonInstance(SWTFactory.java:421)
        at com.nxp.swtools.common.ui.utils.swt.SWTFactoryProxy.getSingletonInstance(SWTFactoryProxy.java:448)
        at com.nxp.swtools.dcd.controller.DCDController.getInstance(DCDController.java:84)
        at com.nxp.swtools.dcd.DCDStartup.earlyStartup(DCDStartup.java:23)
        at com.nxp.swtools.provider.SWToolsPlatform.initializeAllTools(SWToolsPlatform.java:702)
        at com.nxp.swtools.framework.Application.start(Application.java:475)
        at com.nxp.swtools.framework.Application.start(Application.java:445)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:654)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1462)
Caused by: java.lang.NoClassDefFoundError: javafx/beans/property/SimpleBooleanProperty
        at com.nxp.swtools.bootimage.controller.ABootController.<init>(ABootController.java:37)
        at com.nxp.swtools.dcd.dcf.common.DCDCommonController.<init>(DCDCommonController.java:90)
        at com.nxp.swtools.dcd.controller.DCDController.<init>(DCDController.java:43)
        ... 24 more
Caused by: java.lang.ClassNotFoundException: javafx.beans.property.SimpleBooleanProperty cannot be found by com.nxp.swtools.bootimage_1.0.0.202207251223
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:519)
        at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:170)
        at java.base/java.lang.ClassLoader.loadClass(Unknown Source)

 

Resolution:

To resolve the issue:

  1. Invoke the command from within the installation directory, for example, from 'C:\NXP\S32DS.3.5\eclipse'
    OR
  2. Change "{S32DS Installation Folder}\eclipse\s32ds.ini" by setting the javafx path from relative to absolute. So, if default installation is used, then:

    Change

    -Defxclipse.java-modules.dir=jre/javafx-sdk-11.0.2/lib

    To

    -Defxclipse.java-modules.dir=C:/NXP/S32DS.3.5/eclipse/jre/javafx-sdk-11.0.2/lib

 

In addition, if it is desired to suppress unimportant warning messages:

go to {S32DS installation folder}\eclipse\configuration, open logging.properties file and change com.nxp.swtools.level = SEVERE

Version history
Last update:
‎01-19-2023 01:29 PM
Updated by: