• 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
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

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 ]
 
This will take every ounce of my mental strength! All for a tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic