On 03/03/2011 16:52, John Alexander wrote:
> A fellow of mine sent me some code to open a workflow:
>
> public class ServiceMapBuilder {
>
> public ServiceMapBuilder(){}
>
>          // fileLocation :: ""C:/Documents and Settings/admin/My
> Documents/Downloads/_lymphoma_type_prediction_based_on_microarray_data__547084.t2flow"
>
> public void openWorkflow(String fileLocation){
>   File fileObject = new File(fileLocation);
> FileManager fileManager = FileManager.getInstance();
>   try {
> fileManager.openDataflow(new T2FlowFileType(), fileObject);
> } catch (OpenException e) {
> // TODO Auto-generated catch block
> e.printStackTrace();
> }
>   System.out.println("Did we make it?");
> }
> }
>
> When I run it, I get the following error:
>
> Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError:
> net/sf/taverna/t2/workbench/file/impl/T2FlowFileType

T2FlowFileType is in 
net.sf.taverna.t2.workbench.file.impl.T2FlowFileType.  You will need to add

<dependency>
        <groupId>net.sf.taverna.t2.ui-impl</groupId>
        <artifactId>file-impl</artifactId>
        <version>${t2.ui.impl.version}</version>
</dependency>

to the maven pom.xml for your plugin.

Alan

------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/
Developers Guide: http://www.taverna.org.uk/developers/

Reply via email to