This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

eclipse plug-in architecture jars

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
jan dressen
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 suggest huckleberry pie. But the only thing on the gluten free menu is this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic