aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes eclipse plug-in architecture jars Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "eclipse plug-in architecture jars" Watch "eclipse plug-in architecture jars" New topic
Author

eclipse plug-in architecture jars

jan dressen
Ranch Hand

Joined: Oct 25, 2007
Posts: 47
Hello,

this is a follow up of this problem: XMLBeans problem

the problem in that link is the same as this problem. but i dont think its a threading problem like I stated in the link forum thread...

I have a problem with a JFace application.
I have some jars in different eclipse plug-in projects. and i can access those jars by manipulating the manifest. I can also run code compiled in those jars from other plug-in projects. But NOT when i try to run code inside a jar from the User Interface.
so basically: I can run code from JUnit tests and from main methods. but when I run my application and the GUI shows up, the classes in my jar cannot be found. the manifest is updated: so all may jars are referenced to in the manifest

I hope you understand my problem. kinda hard to explain

Thanks for the help
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10523
    
    9

You mention a manifest. Is this the typical manifest.mf file?
Have you made a self executable jar of your application and trying to run that?
Have you packaged the external jars inside your jar?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
jan dressen
Ranch Hand

Joined: Oct 25, 2007
Posts: 47
Maneesh Godbole wrote:You mention a manifest. Is this the typical manifest.mf file?
Have you made a self executable jar of your application and trying to run that?
Have you packaged the external jars inside your jar?


1: yes, this is the MANIFEST.MF file
2: yes and no: I have a 'product configuration file' that I am running. I have not yet created an executable from it. I run it directly from eclipse as an 'Eclipse Application'
3: the external jars are added to the classpath of my Manifest. and all 'exported packages(in manifest)' from the jar are also added in the manifest

it seems that the UI cant 'see' the jars, but my code can. It works when I call the same code in a main method, but not when i run it from the 'product configuration file'. so I think some jars are invisible for the UI..
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10523
    
    9

To confess, I do not really understand the "product configuration file" concept.

The manifest will be picked up on in a jar. Have you defined the classpath in your eclipse project>
Project->Right click->Properties->Java build path->Libraries->Add jars/Add external jars.

Looks more like an Eclipse related issue.
Moving to the IDE forum.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: eclipse plug-in architecture jars