---
title: "java 编译时添加多个classpath时需要注意的问题"
author: "aixinnature"
date: "2011-07-01T00:20:47Z"
tags: []
categories: ["编程语言"]
slug: "java-classpath"
draft: false
lastmod: "2011-07-01T00:22:45Z"
id: 1111669
url: "https://sind.iteye.com/blog/1111669"
---

虽然是很基础的小问题，不过还是记录一下，因为忽视了这个导致半天没编译成功
就是添加多个classpath时，不同的classpath需要用分隔符分开

<span style="color:red">这个分隔符在windows  下是 分号“;”  但在mac os，linux/unix下是冒号“:”</span>

在windows下习惯了，转到 其它环境下开发容易忽视这个问题