问题
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?
来源:https://stackoverflow.com/questions/23979924/swt-plugin-missing-from-64-bit-rcp-build