• 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
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Rob Spoor
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:

Classpaths and Jar files.

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If a directory is provided in the classpath, and that directory contains jar files, do the jar files get included? or must you additionally specify each jar file in the classpath?

Regards,
TY.
 
author and iconoclast
Posts: 24204
44
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In Java 6 (and no previous version), you can use classpath wildcards -- i.e. entries like "/path/to/jardirectory/*". Otherwise, including a directory in which jars exist does nothing -- the jars are not automatically included.
 
Thomas Young
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ernest,
Thanks for the clarification, especially in highlighting the Java 6 difference.

Regards,
TY.
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your quote:
---------------------------------------------------------------------------
"If a directory is provided in the classpath, and that directory contains jar files, do the jar files get included? or must you additionally specify each jar file in the classpath?"
--------------------------------------------------------------------------
According to my experience,If we include a directory/Folder to classpath , then all the jar files will be searched. No need to maintion each and every jar file explicitly
[ November 04, 2008: Message edited by: ashok ballu ]
 
If you send is by car it's a shipment, but if by ship it's cargo. This tiny ad told me:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic