---
title: "Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpat"
author: "hebenben"
date: "2010-08-03T11:41:28Z"
tags: ["Java", "SUN", "Tomcat"]
categories: ["企业架构"]
slug: "unable-to-find-a-javac-compiler-com-sun-tools-javac-main-is-not-on-the-classpat"
draft: false
lastmod: "2010-08-03T11:41:28Z"
id: 727854
url: "https://hebenben.iteye.com/blog/727854"
---

解决办法：把JAVA_HOME（java的安装目录）/lib/tools.jar拷到TOMCAT_HOME（tomcat的安装目录）\common\lib下，重新启动Tomcat。  