---
title: "Could not find artifact com.sun:tools:jar:1.5.0"
author: "simon_zhang"
date: "2012-01-11T09:58:09Z"
tags: []
categories: ["移动开发"]
slug: "could-not-find-artifact-com-sun-tools-jar-1-5-0"
draft: false
lastmod: "2012-01-11T09:58:09Z"
id: 1340793
url: "https://mogee.iteye.com/blog/1340793"
---

当你遇到Could not find artifact com.sun:tools:jar:1.5.0 这个问题时，是因为在jre中找不到的相应的包导致的。为什么会找不到呢？是eclipse在启动时默认是通过你安装的jre进行启动的，而jre中没有tools.jar这个包。

所以我们只要修改eclipse启动时使用jdk就可以了，具体操作如下：

      在eclipse.in文件中增加下面的两行即可。

      -vm  
      D:/java/jdk160\_05/bin/javaw.exe