path tool

From: Roedy Green (see_at_mindprod.com.invalid)
Date: 04/29/04


Date: Thu, 29 Apr 2004 03:54:55 GMT

Has anyone written a tool like this?

Path Tool

This suggested student project is a tool that helps you deal with
duplicates on the path and classpath. It also helps you find files
that should be on the path or classpath but are not.

It displays the path and classpath with one element per line. It lists
the jar names in the currently active ext directory, and the name of
that directory.

I tell it someprog.exe then it tells me all the places on the path it
found someprog.exe

I tell it someprog and it tells me all the places on the path it found
someprog.exe, someprog.com, someprog.bat, and someprog.btm then tells
me which one I would get.

I tell it com.mindprod.bulk.SomeClass.class It tells me all the places
on the classpath (including the active ext jars) that it finds this
class, and tells me which one java would actually use. The package
name is optional.

I tell it com.mindprod.bulk.SomeClass.java It tells me all the places
on the classpath (including src.zip) that it finds this class, and
tells me which one javac would actually use. The package name is
optional.

I ask it to search my entire hard disk and the contents of all jars
and report as above.

See screen mockup at http://mindprod.com/projpathtool.html

--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming. 
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.


Relevant Pages

  • Re: path to ant; ant launcher
    ... ..ant folder in /home/thufir. ... [thufir@localhost java]$ ant ... 153 # Build local classpath using just the launcher in non-rpm mode ... 158 # request optional jars and their dependencies via the ...
    (comp.lang.java.help)
  • Re: references on all Java classes within the same package
    ... You can use the current classpath to open all Jars and all ... which would also include the system class loader. ... most part after doing all that, you could get all classes in a package. ...
    (comp.lang.java.programmer)
  • Re: netbeans doesnt create lib directory under dist
    ... Under those circumstances I could just keep appending jars ... NetBeans ties pieces together according to a different set of rules. ... NetBeans communicates the CLASSPATH some other way. ... and only the Class-Path: in the manifest prevails. ...
    (comp.lang.java.programmer)
  • Re: How can you find all classes that implements your interface ?
    ... approximate the feature by manually parsing the classpaths and peeking ... inside the jars to find the classes to see which implement an interface. ... Package isn't synonymous with jar or location. ... hence the emphasis on looking at the classpath and in jars. ...
    (comp.lang.java.programmer)
  • Re: Accessing external jar from servlet
    ... > classpath variable doesn't help Tomcat to find the library, ... Within this directory are, among other things, a classes directory ... The lib directory is where JARs go. ... application's WEB-INF/lib to gain access to it. ...
    (comp.lang.java.help)