The Artima Developer Community
Sponsored Link

Java Buzz Forum
Code to find files on your classpath

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Goldy Lukka

Posts: 1008
Nickname: xyling
Registered: Jan, 2004

Goldy Lukka is a Java Developer and an Entrepreneur. He is Founder of xyling.com.
Code to find files on your classpath Posted: Jul 19, 2005 3:18 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Goldy Lukka.
Original Post: Code to find files on your classpath
Feed Title: Xyling Java Blogs
Feed URL: http://www.javablogs.xyling.com/thisWeek.rss
Feed Description: Your one stop source for Java Related Resources.
Latest Java Buzz Posts
Latest Java Buzz Posts by Goldy Lukka
Latest Posts From Xyling Java Blogs

Advertisement
Have you ever wanted to get a list of the files on your classpath or perhaps get a list of the classes on your classpath? It's not exactly trivial. You have to parse the classpath, root through the jar files, and root through the directories. Here is some code that will enable you to do just that and it also allows you to provide a filter so that you can find all of the jpeg files for example.
(taken from the blog post by mlconnor)

[Resource-Type: Source Code; Category: Java; XRating: 3]
Refer title of this post for the complete source code

Read: Code to find files on your classpath

Topic: Automated builds with WSAD and WebSphere Previous Topic   Next Topic Topic: The best things in life are free…

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use