SWT plugin missing from 64 bit RCP build

2019-08-19 04:06发布

问题:

I have set up a headless build environment to build our RCP products for windows 32 and 64 bit. My problem is that the 64 bit build is missing the SWT plugin and the application will not start until I manually copy in the SWT plugin.

In the log files this exception can be found:
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.SWTError

Looking in the plugin directory of the 64 bit build I found org.eclipse.swt_3.6.2.v3659c.jar which does not contain any class files but only the manifest and some about files. To properly make use of SWT, another plugin must also be present in the plugin directory - org.eclipse.swt.win32.win32.x86_64_3.6.2.v3659c.jar This plugin contains the 64 bit specific code and/or resources. The 32 bit version of this plugin is added to the 32 bit build, but not to the 64 bit. So the question now is - Why not?