• 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

How many jars to use at the maximum for a swing deployment

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am working on a desktop swing application. The application uses a lot of jars. I am using a whole lot of apache jars, itext, swingfx, etc etc. At the moment when I deploy the application there are a total of 60 jars. Is there a problem if I keep adding more jars into a project? Will this slow down anything? I was thinking that jvm should be able to handle any number of jars. After all it will load a class and once there are no more instances (or at some time the JVM thinks fit) it will unload the class. So it should only be a problem when the JVM needs to search a huge number of jars to load a class. Is this true? I am just rambling..
The bottom line is, is there anything defined in any spec regarding the maximum number of jars (or classes) an application should have after which things will start getting really slow.

Thanks
Sethu
 
Saloon Keeper
Posts: 24499
167
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Somebody asked that question not long ago. It's always a good idea to keep the resources required for an application to a minimum, but our conclusion, I believe, was that the classloading mechanism slowed that much by having extra jars.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic