All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gnu.util.Classpath Maven / Gradle / Ivy

Go to download

Escher is a collection of libraries for X Window System written purely in Java.

The newest version!
package gnu.util;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.StringTokenizer;


/** Classpath utility. */
public class Classpath {
  public static final String CLASSPATH 
    = System.getProperty ("java.class.path");


  public static final File [] CLASSPATH_DIRS;
  static {
    StringTokenizer st = new StringTokenizer (CLASSPATH, 
      File.pathSeparator);
    int count = st.countTokens ();
    CLASSPATH_DIRS = new File [count];
    for (int i = 0; inull if not found
   */
  public static File find_file (File [] dirs, String name) {
    for (int i=0; i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy