---
title: "Java 默认三个ClassLoader的加载路径"
author: "shellfj"
date: "2012-01-11T21:39:38Z"
tags: []
categories: ["编程语言"]
slug: "java-classloader"
draft: false
lastmod: "2012-01-11T21:40:08Z"
id: 1342356
url: "https://shellfj.iteye.com/blog/1342356"
---

```java

String bootstrapPath = System.getProperty("sun.boot.class.path");
		System.out.println("BootStrapClassLoader Path : " + bootstrapPath);
		String extPath = System.getProperty("java.ext.dirs");
		System.out.println("ExtClassLoader Path : " + extPath);
		String appPath = System.getProperty("java.class.path");
		System.out.println("AppClassLoader Path : " + appPath);
```