---
title: "intellij idea把目录加到classpath中"
author: "wangyanlong0107"
date: "2017-03-14T15:29:01Z"
tags: []
categories: ["开源软件"]
slug: "intellij-idea-classpath"
draft: false
lastmod: "2017-03-14T15:29:01Z"
id: 2362158
url: "https://bigdragon.iteye.com/blog/2362158"
---

You can right click on any directory in your IntelliJ project, select "Mark Directory As...", and choose "Source Root". That director folder will change color from yellow to blue; IntelliJ considers all those directories to be in your CLASSPATH.