class compilerJava::ClassPath

sys::Obj
  compilerJava::ClassPath

Source

ClassPath models a Java classpath to resolve package names to types. Since the standard Java APIs don't expose this, we have go thru a lot of pain.

close

This close()

Source

dump

This dump(OutStream out := Env.cur().out())

Source

forRuntime

static ClassPath forRuntime(File[] addCp := File#.emptyList())

Source

Get the classpath for the current Java runtime.

The following are also searched when constructing the class path:

  • {fan}lib/java/ext
  • {fan}lib/java/ext/{plat}
  • Locations specified in the -classpath (as made available in the java.class.path system property)
  • Any additional locations specified via the addCp parameter
main

static Void main()

Source

packages

Str:ClassPathPackage packages()

Source

toStr

virtual override Str toStr()

Source

Return list of sources.