[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Error during product build using export wizard

Hi,
I'd appreciate any help I could get on this.

When building an RCP product using the product export wizard from within a product, for deployment on the win32 platform I receive a build error:
The log indicates that the class org.eclipse.swt.dnd.TransferData is not being recognized.


Log excerpt:
1.  ERROR in /?/workspace/rcp_project/src/com/?Logo.java (at line 39)
	d.data =  new byte[][] {imageAsByteArray};
	^^^^^^
d.data cannot be resolved or is not a field
----------
2. ERROR in /?/workspace/rcp_project/src/com/?Logo.java (at line 54)
	imageAsByteArray = td.data[0];//byte[] of ImageData		
	                   ^^^^^^^
td.data cannot be resolved or is not a field

Code Snippet: that generates the error:

import org.eclipse.swt.dnd.TransferData;
import org.eclipse.swt.graphics.ImageData;

private byte[] imageAsByteArray;

error #1
38		TransferData d = new TransferData();
39		d.data =  new byte[][] {imageAsByteArray};

error #2
51		td = new TransferData();
54		imageAsByteArray = td.data[0];	

Upon inspection of the plugins exported to the product plugins folder I found the plugin containing the class TransferData: "org.eclipse.swt.win32.win32.x86_3.4.1.v3449c.jar".

The overview is this. I don't receive an error when building an OSX 86 or PPC version of the application, I far as I can tell the class is available. Any ideas on this?

My development environment is: OSX 10.5.5
Eclipse 3.4.1