---
title: "Error : \\Java\\jdk1.6.0_17\\lib\\tools.jar was unexpected at this time"
author: "shift8"
date: "2012-02-14T21:26:38Z"
tags: []
categories: ["行业应用"]
slug: "error-java-jdk1-6-0-17-lib-tools-jar-was-unexpected-at-this-time"
draft: false
lastmod: "2012-02-14T21:26:38Z"
id: 1405872
url: "https://shift8.iteye.com/blog/1405872"
---

when our application server fails to start with the message ***\\Java\\jdk1.6.0\_17\\lib\\tools.jar was unexpected at this time***., we thought it is because the version is not supported in our application server.

we have installed in c:\\program files(x86)\\java and set the java home for the same.

But later I came across the following link

[http://www.coderanch.com/t/444603/JBoss/tools-jar-unexpected-error-when](http://www.coderanch.com/t/444603/JBoss/tools-jar-unexpected-error-when)

then came to know the jdk it is because of the space that was available in the installation path of java.

Then we reinstalled java in a path without spaces. changed the java\_home correspondingly.

then tried starting the application server it worked. ![:)](http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1317345057g)