0

I am following the guide shown in https://molteni.wordpress.com/2012/10/16/connect-hp-quality-center-with-java-using-com4j-tutorial/ to generate resources of COM4J.

This is how the COM4J folder looks like

enter image description here

I tried to create an Eclipse plugin based on it and show as below

enter image description here

However when I added the plugin as one of the dependencies of my application I am unable to import the file.

I get the following error when I tried to search it through "Open Type" in Eclipse as follow

enter image description here

What steps am I missing here ?

abiieez
  • 3,139
  • 14
  • 57
  • 110

2 Answers2

2

Usually it is done like this: in Eclipse go to File -> New -> Plugin Development -> Plugin From Existing Jar Files

enter image description here

Though it might not help in this case: please see this issue: https://java.net/jira/browse/COM4J-57

Alex K.
  • 3,294
  • 4
  • 29
  • 41
2

It sounds like you have not specified which classes are exported by the plugin.

Open the MANIFEST.MF editor for the plugin and select the Runtime tab. In the 'Exported Packages' section click Add and select all the packages which should be available to other plugins.

greg-449
  • 109,219
  • 232
  • 102
  • 145
  • the `com` folder contains the Java files. In the `Exported Package` I don't see the `com` folder. All I see is the `com4` which have been listed there. I am not able to add the `com` folder through here. What should I do ? – abiieez Mar 06 '15 at 08:11
  • Having a quick look at the download I don't immediately see any 'com' packages. You are going to have to examine this code in more detail. – greg-449 Mar 06 '15 at 08:21