Codota Logo
ClassPathException.<init>
Code IndexAdd Codota to your IDE (free)

How to use
bsh.ClassPathException
constructor

Best Java code snippets using bsh.ClassPathException.<init> (Showing top 10 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: beanshell/beanshell

public static URL [] getUserClassPathComponents()
  throws ClassPathException
{
  if ( userClassPathComp != null )
    return userClassPathComp;
  String cp=System.getProperty("java.class.path");
  String [] paths = cp.split(File.pathSeparator);
  URL [] urls = new URL[ paths.length ];
  try {
    for ( int i=0; i<paths.length; i++)
      // We take care to get the canonical path first.
      // Java deals with relative paths for it's bootstrap loader
      // but JARClassLoader doesn't.
      urls[i] = new File(
        new File(paths[i]).getCanonicalPath() ).toURI().toURL();
  } catch ( IOException e ) {
    throw new ClassPathException("can't parse class path: "+e, e);
  }
  userClassPathComp = urls;
  return urls;
}
origin: jitlogic/zorka

public static URL [] getUserClassPathComponents() 
  throws ClassPathException
{
  if ( userClassPathComp != null )
    return userClassPathComp;
  String cp=System.getProperty("java.class.path");
  String [] paths=StringUtil.split(cp, File.pathSeparator);
  URL [] urls = new URL[ paths.length ];
  try {
    for ( int i=0; i<paths.length; i++)
      // We take care to get the canonical path first.
      // Java deals with relative paths for it's bootstrap loader
      // but JARClassLoader doesn't.
      urls[i] = new File( 
        new File(paths[i]).getCanonicalPath() ).toURL();
  } catch ( IOException e ) {
    throw new ClassPathException("can't parse class path: "+e);
  }
  userClassPathComp = urls;
  return urls;
}
origin: jitlogic/zorka

/**
  Get the boot path including the lib/rt.jar if possible.
*/
public static BshClassPath getBootClassPath() 
  throws ClassPathException
{
  if ( bootClassPath == null )
  {
    try 
    {
      //String rtjar = System.getProperty("java.home")+"/lib/rt.jar";
      String rtjar = getRTJarPath();
      URL url = new File( rtjar ).toURL();
      bootClassPath = new BshClassPath( 
        "Boot Class Path", new URL[] { url } );
    } catch ( MalformedURLException e ) {
      throw new ClassPathException(" can't find boot jar: "+e);
    }
  }
  return bootClassPath;
}
origin: beanshell/beanshell

/**
  Get the boot path including the lib/rt.jar if possible.
*/
public static BshClassPath getBootClassPath()
  throws ClassPathException
{
  if ( bootClassPath == null )
  {
    try
    {
      bootClassPath = new BshClassPath(
          "Boot Class Path", new URL[] { getRTJarPath() } );
    } catch ( MalformedURLException e ) {
      throw new ClassPathException(" can't find boot jar: "+e, e);
    }
  }
  return bootClassPath;
}
origin: beanshell/beanshell

/**
  Reload all classes in the specified package: e.g. "com.sun.tools"
  The special package name "<unpackaged>" can be used to refer
  to unpackaged classes.
*/
@Override
public void reloadPackage( String pack )
  throws ClassPathException
{
  Collection classes =
    baseClassPath.getClassesForPackage( pack );
  if ( classes == null )
    classes =
      BshClassPath.getUserClassPath().getClassesForPackage( pack );
  // no point in checking boot class path, can't reload those
  if ( classes == null )
    throw new ClassPathException("No classes found for package: "+pack);
  reloadClasses( (String[])classes.toArray( new String[0] ) );
}
origin: jitlogic/zorka

/**
  Reload all classes in the specified package: e.g. "com.sun.tools"
  The special package name "<unpackaged>" can be used to refer 
  to unpackaged classes.
*/
@Override
public void reloadPackage( String pack )
  throws ClassPathException 
{
  Collection classes = 
    baseClassPath.getClassesForPackage( pack );
  if ( classes == null )
    classes = 
      BshClassPath.getUserClassPath().getClassesForPackage( pack );
  // no point in checking boot class path, can't reload those
  if ( classes == null )
    throw new ClassPathException("No classes found for package: "+pack);
  reloadClasses( (String[])classes.toArray( new String[0] ) );
}
origin: beanshell/beanshell

/**
  Support for super import "*";
  Get the full name associated with the unqualified name in this
  classpath.  Returns either the String name or an AmbiguousName object
  encapsulating the various names.
*/
public String getClassNameByUnqName( String name )
  throws ClassPathException
{
  insureInitialized();
  UnqualifiedNameTable unqNameTable = getUnqualifiedNameTable();
  Object obj = unqNameTable.get( name );
  if ( obj instanceof AmbiguousName )
    throw new ClassPathException("Ambigous class names: "+
      ((AmbiguousName)obj).get() );
  return (String)obj;
}
origin: jitlogic/zorka

/**
  Support for super import "*";
  Get the full name associated with the unqualified name in this 
  classpath.  Returns either the String name or an AmbiguousName object
  encapsulating the various names.
*/
public String getClassNameByUnqName( String name ) 
  throws ClassPathException
{
  insureInitialized();
  UnqualifiedNameTable unqNameTable = getUnqualifiedNameTable();
  Object obj = unqNameTable.get( name );
  if ( obj instanceof AmbiguousName )
    throw new ClassPathException("Ambigous class names: "+
      ((AmbiguousName)obj).get() );
  return (String)obj;
}
origin: jitlogic/zorka

throw new ClassPathException("Nothing known about class: "
  +name );
throw new ClassPathException("Cannot reload class: "+name+
  " from source: "+ classSource );
origin: beanshell/beanshell

throw new ClassPathException("Nothing known about class: "
  +name );
throw new ClassPathException("Cannot reload class: "+name+
  " from source: "+ classSource );
bshClassPathException<init>

Popular methods of ClassPathException

    Popular in Java

    • Making http post requests using okhttp
    • orElseThrow (Optional)
      Return the contained value, if present, otherwise throw an exception to be created by the provided s
    • onRequestPermissionsResult (Fragment)
    • setRequestProperty (URLConnection)
      Sets the general request property. If a property with the key already exists, overwrite its value wi
    • GridBagLayout (java.awt)
      The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
    • PrintStream (java.io)
      A PrintStream adds functionality to another output stream, namely the ability to print representatio
    • SimpleDateFormat (java.text)
      Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
    • BlockingQueue (java.util.concurrent)
      A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
    • ZipFile (java.util.zip)
      This class provides random read access to a zip file. You pay more to read the zip file's central di
    • BasicDataSource (org.apache.commons.dbcp)
      Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now