public class JRE extends Object
| Constructor and Description |
|---|
JRE() |
| Modifier and Type | Method and Description |
|---|---|
static URL[] |
getClasspath(ClassLoader classLoader)
Returns the classpath of either a URLClassLoader or a Java9+ AppClassLoader.
|
static int |
majorVersion()
Returns 8, 9, 10, etc.
|
public static int majorVersion()
Returns 8, 9, 10, etc.
public static URL[] getClasspath(ClassLoader classLoader) throws Exception
Returns the classpath of either a URLClassLoader or a Java9+ AppClassLoader.
Exception